<div>
    @if (session()->has('message'))
    {{$slot}}
    <div class="p-4 mt-4 mb-4 alert alert-success" role="alert" style="background-color: #abf2bb; border: 1px solid #006c19; border-radius: 10px;">
        <span class="block sm:inline"><small style="color: #006c19">{{session()->get('message')}}</small></span>
    </div> 


    @elseif (session()->has('error'))
    {{$slot}}
    <div class="relative p-4 py-3 mb-4 bg-error-50 text-error-300 alert alert-danger" role="alert" style="background-color: #ffc9c9; border: 1px solid #720000; border-radius: 10px;">
        <span class="block sm:inline"><small style="color: #710000;">{{session()->get('error')}}</small></span>
    </div>

    @elseif(session('status'))
    <div class="p-4 mt-4 mb-4 alert alert-success" role="alert" style="background-color: #abf2bb; border: 1px solid #006c19; border-radius: 10px;">
        <span class="block sm:inline"><small style="color: #006c19">{{ session('status') }}</small></span>
    </div> 

    @endif

</div>