@if(Session::has('message'))
    <script>alert("{!! nl2nr(Session::get('message')) !!}");</script>
    {{ Session::forget('message') }}
@endif
@if($errors->any())
    <script>alert("{{ nl2nr($errors->first()) }}");</script>
    {{ Session::forget('message') }}
@endif
