<div> 
    @session('Error')
        <div class="alert alert-solid-danger alert-dismissible fade show m-5" id="divFlash">
            {{session()->get('Error')}}
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"><i class="bi bi-x"></i></button>
        </div>
    @endsession
    @session('Message')
        <div class="alert alert-solid-info alert-dismissible fade show m-5" id="divFlash">
            {{session()->get('Message')}}
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"><i class="bi bi-x"></i></button>
        </div>
    @endsession
    @session('Success')
        <div class="alert alert-solid-success alert-dismissible fade show m-5" id="divFlash">
            {{session()->get('Success')}}
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"><i class="bi bi-x"></i></button>
        </div>
    @endsession
    @if(session('Error')||session('Message')||session('Success'))
        <script>
            setTimeout(Close, 5000)
            function Close()
            {
                document.getElementById('divFlash').remove();
            }       
        </script>
    @endif
</div>