@if(!$message['overlay'])
<div class="alert flash 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

    @switch($message['level'])
        @case('success')
            @php $icon = 'check' @endphp
            @break
        @case('warning')
            @php $icon = 'attention' @endphp
            @break
        @case('danger')
            @php $icon = 'alert' @endphp
            @break
        @case('info')
        @default
            @php $icon = 'info' @endphp
    @endswitch
    <span class="icon-{{ $icon }} mr-1"></span>
    {!! $message['message'] !!}
</div>
@endif