@if (!request()->routeIs('login')) @php $messages = collect([ 'success' => Session::get('success'), 'error' => Session::get('error'), 'warning' => Session::get('warning'), 'info' => Session::get('info'), 'status' => Session::get('status'), ])->filter(); @endphp @if ($messages->isNotEmpty())
@foreach ($messages as $type => $message)
in_array($type, ['info', 'status']), 'alert-warning' => $type === 'warning', 'alert-danger' => $type === 'error', 'alert-success' => $type === 'success', ]) role="alert">
@if (in_array($type, ['info', 'status'])) @elseif ($type === 'error') @elseif ($type === 'success') @elseif ($type === 'warning') @endif {!! nl2br(e($message)) !!}
@endforeach
@endif @endif