@if($message['overlay'])
<div id="flash-overlay-modal" class="modal fade flash-modal">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content @if($message['level'] != 'light') text-white @endif bg-{{ $message['level'] }}">
            <div class="modal-header modal-header-borderless">
                <h4 class="modal-title">{{ $message['title'] }}</h4>
                <button type="button" class="close @if($message['level'] != 'light') text-white @endif" data-dismiss="modal" aria-hidden="true">&times;</button>
            </div>

            <div class="modal-body">
                <p>{!! $message['message'] !!}</p>
            </div>

            <div class="modal-footer modal-footer-borderless">
                <button type="button" class="btn btn-link @if($message['level'] != 'light') text-white @endif" data-dismiss="modal">Zatvoriť</button>
            </div>
        </div>
    </div>
</div>
@endif