<script type="text/javascript">
  toastr.options = {
    "closeButton": true,
    "debug": false,
    "newestOnTop": true,
    "progressBar": true,
      "positionClass": "toast-bottom-right",
    "preventDuplicates": false,
    "onclick": null,
    "showDuration": "300",
    "hideDuration": "1000",
    "timeOut": "5000",
    "extendedTimeOut": "1000",
    "showEasing": "swing",
    "hideEasing": "linear",
    "showMethod": "fadeIn",
    "hideMethod": "fadeOut"
  }
</script>
@if ($message = Session::get('success'))
<!-- <div class="alert alert-success alert-dismissible fade show" role="alert">
  <strong>{{ $message }}</strong>
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div> -->
<script type="text/javascript">
  toastr.success("{{ $message }}", 'Success.');  
</script>
@endif 
    
@if ($message = Session::get('error'))
<!-- <div class="alert alert-danger alert-dismissible fade show" role="alert">
  <strong>{{ $message }}</strong>
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div> -->
<script type="text/javascript">
  toastr.error("{{ $message }}", 'Error!');  
</script>
@endif
     
@if ($message = Session::get('warning'))
<!-- <div class="alert alert-warning alert-dismissible fade show" role="alert">
  <strong>{{ $message }}</strong>
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div> -->
<script type="text/javascript">
  toastr.warning("{{ $message }}", 'Alert!');  
</script>
@endif
     
@if ($message = Session::get('info'))
<!-- <div class="alert alert-info alert-dismissible fade show" role="alert">
  <strong>{{ $message }}</strong>
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div> -->
<script type="text/javascript">
  toastr.info("{{ $message }}", 'Info!');  
</script>
@endif

@if ($message = Session::get('message'))
<!-- <div class="alert alert-info alert-dismissible fade show" role="alert">
  <strong>{{ $message }}</strong>
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div> -->
<script type="text/javascript">
  toastr.info("{{ $message }}", 'Info!');  
</script>
@endif
    
@if ($errors->any())
<!-- <div class="alert alert-danger alert-dismissible fade show" role="alert">
  <strong>Please check the form below for errors</strong>
  <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> -->
  <!-- <ul>
        @foreach ($errors->all() as $error)
            <li>{{ $error }}</li>
        @endforeach
        </ul>
</div> -->
<script type="text/javascript">
  toastr.error("Please check the form below for errors", 'Error!');  
</script>
@endif