@foreach (session('flash_notification', collect()) as $message) @if ($message['overlay']) @include('flash::modal', [ 'modalClass' => 'flash-modal', 'title' => $message['title'], 'body' => $message['message'] ]) @else @endif @endforeach {{ session()->forget('flash_notification') }}