<div class="alert-list">
    @if (session('success_message'))
        <div class="alert alert-dismissible text-success" id="success-alert" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true"><i class="notika-icon notika-close"></i></span></button>
            <strong style="font-size: large">{{ session('success_message') }}</strong>
        </div>
    @endif
    @if (session('error_message'))
        <div class="alert alert-dismissible alert-mg-b-0 text-danger" id="danger-alert" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true"><i class="notika-icon notika-close"></i></span></button>
            <strong style="font-size: large">{{ session('error_message') }}</strong>
        </div>
    @endif
</div>
<script>
    $("#success-alert").fadeTo(6000, 6000).slideUp(6000, function(){
        $("#success-alert").slideUp(6000);
    });

    $("#danger-alert").fadeTo(6000, 6000).slideUp(6000, function(){
        $("#danger-alert").slideUp(6000);
    });
</script>
