@php
$flashTypes = ['success' => 'success', 'status' => 'success', 'error' => 'error', 'warning' => 'warning', 'info' => 'info'];
@endphp
@foreach ($flashTypes as $key => $type)
@if (session()->has($key) && filled(session($key)))
{{ session($key) }}
@endif
@endforeach
@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif