update patch 1
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
@if ($errors->any())
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<div>
|
||||
@foreach ($errors->all() as $error)
|
||||
<p>{{ $error }}</p>
|
||||
@endforeach
|
||||
</div>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (Session::has('success'))
|
||||
<script>
|
||||
Swal.fire({
|
||||
title: "Success!",
|
||||
text: "{{ Session::get('success') }}",
|
||||
icon: "success"
|
||||
});
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@if (Session::has('error'))
|
||||
<script>
|
||||
Swal.fire({
|
||||
title: "Error!",
|
||||
text: "{{ Session::get('error') }}",
|
||||
icon: "error",
|
||||
timer: 5000
|
||||
});
|
||||
</script>
|
||||
@endif
|
||||
Reference in New Issue
Block a user