34 lines
840 B
PHP
34 lines
840 B
PHP
|
|
@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
|