phpvms/resources/views/admin/flash/message.blade.php
2021-04-01 17:31:53 -04:00

32 lines
892 B
PHP

@foreach (session('flash_notification', collect()) as $message)
@if (is_string($message))
<div class="alert alert-error">{!! $message !!}</div>
@else
@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">
@if ($message['important'])
<button type="button"
class="close"
data-dismiss="alert"
aria-hidden="true"
>&times;
</button>
@endif
{!! $message['message'] !!}
</div>
@endif
@endif
@endforeach
{{ session()->forget('flash_notification') }}