@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()) @endif