Update (admin): Add message flashing
This commit is contained in:
38
resources/views/admin/partials/flash_messages.blade.php
Normal file
38
resources/views/admin/partials/flash_messages.blade.php
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
@if ($message = Session::get('success'))
|
||||||
|
<div class="alert alert-success alert-block">
|
||||||
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
<strong>{{ $message }}</strong>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
@if ($message = Session::get('error'))
|
||||||
|
<div class="alert alert-danger alert-block">
|
||||||
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
<strong>{{ $message }}</strong>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
@if ($message = Session::get('warning'))
|
||||||
|
<div class="alert alert-warning alert-block">
|
||||||
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
<strong>{{ $message }}</strong>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
@if ($message = Session::get('info'))
|
||||||
|
<div class="alert alert-info alert-block">
|
||||||
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
<strong>{{ $message }}</strong>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
@if ($errors->any())
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||||
|
Please check the form below for errors
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
@@ -20,6 +20,9 @@
|
|||||||
<body class="theme-light">
|
<body class="theme-light">
|
||||||
<div class="page" id="app">
|
<div class="page" id="app">
|
||||||
<div class="sticky-top">
|
<div class="sticky-top">
|
||||||
|
|
||||||
|
@include('admin.partials.flash_messages')
|
||||||
|
|
||||||
@include('layouts.admin.header')
|
@include('layouts.admin.header')
|
||||||
|
|
||||||
@include('layouts.admin.navigation')
|
@include('layouts.admin.navigation')
|
||||||
|
|||||||
Reference in New Issue
Block a user