source: resources/views/layouts/alert.blade.php

Last change on this file was 24a616f, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added documents crud, added last_seen_to_user, edited views

  • Property mode set to 100644
File size: 547 bytes
RevLine 
[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")}}",
[24a616f]18 type: '{{session()->get("alert.type")}}'
[194a359]19 });
[24a616f]20
21
[194a359]22 </script>
23@endif
Note: See TracBrowser for help on using the repository browser.