@if (count($errors) > 0 || Session::has('danger') || Session::has('warning') || Session::has('success') || Session::has('info'))
{{--
--}}
@foreach (['danger', 'warning', 'success', 'info'] as $msg)
@if(Session::has($msg))
{{ Session::get($msg) }} {{ Session::forget($msg) }}
@endif
@endforeach
@if (count($errors) > 0)
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@endif