@csrf
@foreach (['danger', 'success', 'info'] as $msg) @if(Session::has('alert-' . $msg))

{{ Session::get('alert-' . $msg) }}

@endif @endforeach
@if(Session::has('errors')) @foreach($errors->all() as $error)

{{ $error }}

@endforeach @endif @if(Session::has('error'))

{{ Session::get('error') }}

@endif @if(Session::has('success'))

{{ Session::get('success') }}

@endif