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