@php $displayEndFlash = false; @endphp @foreach (['danger', 'warning', 'success', 'info'] as $msg) @if(Session::has('alert-' . $msg)) @once @php $displayEndFlash = true; @endphp
@endonce

{{ Session::get('alert-' . $msg) }}

@endif @endforeach @if($displayEndFlash)
@endif @section('content') @show @section('extra-js') @show