2020-01-31 01:44:59 +08:00
|
|
|
@foreach (session('flash_notification', []) as $message)
|
2018-01-10 03:33:45 +08:00
|
|
|
@if ($message['overlay'])
|
|
|
|
@include('flash::modal', [
|
|
|
|
'modalClass' => 'flash-modal',
|
|
|
|
'title' => $message['title'],
|
|
|
|
'body' => $message['message']
|
|
|
|
])
|
|
|
|
@else
|
|
|
|
<div class="alert
|
|
|
|
alert-{{ $message['level'] }}
|
|
|
|
{{ $message['important'] ? 'alert-important' : '' }}"
|
|
|
|
role="alert"
|
|
|
|
>
|
|
|
|
<div class="alert-icon">
|
|
|
|
<i class="now-ui-icons ui-2_like"></i>
|
|
|
|
</div>
|
|
|
|
@if ($message['important'])
|
|
|
|
@endif
|
|
|
|
<button type="button"
|
|
|
|
class="close"
|
|
|
|
data-dismiss="alert"
|
|
|
|
aria-hidden="true">×</button>
|
|
|
|
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ $message['message'] }}
|
2018-01-10 03:33:45 +08:00
|
|
|
|
2017-12-31 02:23:30 +08:00
|
|
|
</div>
|
2018-01-10 03:33:45 +08:00
|
|
|
@endif
|
2017-12-31 02:23:30 +08:00
|
|
|
@endforeach
|
2018-01-08 05:09:22 +08:00
|
|
|
|
2017-12-31 02:23:30 +08:00
|
|
|
{{ session()->forget('flash_notification') }}
|