2021-04-11 05:19:45 +08:00
|
|
|
@foreach (collect(session('flash_notification', collect()))->toArray() as $message)
|
|
|
|
@if (is_string($message))
|
|
|
|
<div class="alert alert-error">{!! $message !!}</div>
|
2020-02-18 21:23:32 +08:00
|
|
|
@else
|
2021-04-11 05:19:45 +08:00
|
|
|
<div class="alert alert-{{ $message['level'] }}
|
|
|
|
{{ $message['important'] ? 'alert-important' : '' }}"
|
|
|
|
role="alert">
|
|
|
|
@if ($message['important'])
|
|
|
|
<button type="button"
|
|
|
|
class="close"
|
|
|
|
data-dismiss="alert"
|
|
|
|
aria-hidden="true">×</button>
|
2020-02-18 21:23:32 +08:00
|
|
|
@endif
|
|
|
|
|
2021-04-11 05:19:45 +08:00
|
|
|
{!! $message['message'] !!}
|
2017-12-15 06:38:29 +08:00
|
|
|
</div>
|
2020-02-18 21:23:32 +08:00
|
|
|
@endif
|
2021-04-11 05:19:45 +08:00
|
|
|
@endforeach
|
|
|
|
|
|
|
|
{{ session()->forget('flash_notification') }}
|