You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
901 B
32 lines
901 B
@if ($errors->any()) |
|
<div class="alert alert-danger"> |
|
<ul> |
|
@foreach ($errors->all() as $error) |
|
<li>{{ $error }}</li> |
|
@endforeach |
|
</ul> |
|
</div> |
|
@endif |
|
|
|
@if (Session::has('success')) |
|
<div class="alert alert-success alert-dismissible fade show" role="alert"> |
|
<strong>{{ Session::get('success') }}</strong> |
|
</div> |
|
@endif |
|
|
|
@if (Session::has('error')) |
|
<div class="alert alert-danger alert-dismissible fade show" role="alert"> |
|
<strong>{{ Session::get('error') }}</strong> |
|
</div> |
|
@endif |
|
|
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> |
|
<script> |
|
$(document).ready(function() { |
|
setTimeout(function() { |
|
$(".alert.alert-danger, .alert.alert-success").fadeOut(500, function() { |
|
$(this).remove(); |
|
}); |
|
}, 3000); // 5 detik |
|
}); |
|
</script>
|
|
|