@if (count($errors) > 0)
{{ trans('messages.check_entry_try_again') }}

@endif @foreach (['danger', 'warning', 'info', 'error'] as $msg) @php $class = $msg; if ($msg == 'error') { $class = 'danger'; } @endphp @if(Session::has('alert-' . $msg))
{{ trans('messages.' . $msg) }}

{!! preg_replace('/[\r\n]+/', ' ', Session::get('alert-' . $msg)) !!}

@endif @endforeach