source:
resources/views/layouts/alert.blade.php@
194a359
Last change on this file since 194a359 was 194a359, checked in by , 3 years ago | |
---|---|
|
|
File size: 543 bytes |
Rev | Line | |
---|---|---|
[194a359] | 1 | {{-- Validation errors --}} |
2 | @if($errors->any()) | |
3 | @foreach ($errors->all() as $error) | |
4 | <script> | |
5 | new Toast({ | |
6 | message: "{{$error}}", | |
7 | type: 'danger' | |
8 | }); | |
9 | </script> | |
10 | @endforeach | |
11 | @endif | |
12 | ||
13 | {{-- Http request alerts --}} | |
14 | @if(session()->has("alert")) | |
15 | <script> | |
16 | new Toast({ | |
17 | message: "{{session()->get("alert.message")}}", | |
18 | type: {{session()->get("alert.type")}} | |
19 | }); | |
20 | </script> | |
21 | @endif |
Note:
See TracBrowser
for help on using the repository browser.