@foreach (['danger', 'warning', 'success', 'info'] as $msg) @if(Session::has('alert-' . $msg))
@endif @endforeach @if (count($errors) > 0)
@endif