Fix the flash messages not showing up, styling #126

This commit is contained in:
Nabeel Shahzad 2018-01-09 13:33:45 -06:00
parent 26d3a7f4d6
commit 0e36849f16
6 changed files with 46 additions and 46 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -58,7 +58,7 @@
color: $warning-states-color;
}
.alert-danger {
background-color: $bg-danger;
color: $danger-states-color;
background-color: $danger-color;
color: #FFF;
}

View File

@ -246,7 +246,7 @@ $bg-primary: #8ECFD5 !default;
$bg-info: #7CE4FE !default;
$bg-success: #8EF3C5 !default;
$bg-warning: #FFE28C !default;
$bg-danger: #FF8F5E !default;
$bg-danger: #FF4C40 !default;
$topbar-x: topbar-x !default;
$topbar-back: topbar-back !default;

View File

@ -1,12 +1,12 @@
{
"/assets/admin/vendor/paper-dashboard.css": "/assets/admin/vendor/paper-dashboard.css?id=0bf08426b7e1c27e23ab",
"/assets/admin/vendor/paper-dashboard.css": "/assets/admin/vendor/paper-dashboard.css?id=c7165b52e34cc899c789",
"/assets/frontend/css/now-ui-kit.css": "/assets/frontend/css/now-ui-kit.css?id=58ec3dc768f07fee143a",
"/assets/system/js/jquery.js": "/assets/system/js/jquery.js?id=09dd64a64ba840c31a81",
"/assets/fonts/glyphicons-halflings-regular.woff2": "/assets/fonts/glyphicons-halflings-regular.woff2?id=b5b5055c6d812c0f9f0d",
"/assets/admin/fonts/glyphicons-halflings-regular.woff2": "/assets/admin/fonts/glyphicons-halflings-regular.woff2?id=b5b5055c6d812c0f9f0d",
"/assets/admin/css/clear.png": "/assets/admin/css/clear.png?id=0e92f4c3efc6988a3c96",
"/assets/admin/css/loading.gif": "/assets/admin/css/loading.gif?id=90a4b76b4f11558691f6",
"/assets/admin/css/vendor.min.css": "/assets/admin/css/vendor.min.css?id=66c7272ac19511126b55",
"/assets/admin/css/vendor.min.css": "/assets/admin/css/vendor.min.css?id=0a56ecb12ef288da20a9",
"/assets/admin/js/vendor.js": "/assets/admin/js/vendor.js?id=0f6b516f7ea80d70d407",
"/assets/admin/css/blue.png": "/assets/admin/css/blue.png?id=753a3c0dec86d3a38d9c",
"/assets/admin/css/blue@2x.png": "/assets/admin/css/blue@2x.png?id=97da23d47b838cbd4bef",

View File

@ -1,30 +1,30 @@
@foreach ($errors->all() as $message)
<div class="alert alert-danger" role="alert">
<div class="container">
<div class="alert-icon">
<i class="now-ui-icons ui-2_like"></i>
</div>
{!! $message !!}
</div>
</div>
@endforeach
@if (session()->has('flash_notification.message'))
<div class="alert
alert-{{ session('flash_notification.level') }}
{{ session()->has('flash_notification.important') ? 'alert-important' : '' }}">
@if(session()->has('flash_notification.important'))
<button type="button" class="close" data-dismiss="alert">&times;</button>
@endif
<div class="alert alert-danger" role="alert">
<div class="container">
<div class="alert-icon">
<i class="now-ui-icons ui-2_like"></i>
</div>
{!! session('flash_notification.message') !!}
</div>
@foreach (session('flash_notification', collect())->toArray() as $message)
@if ($message['overlay'])
@include('flash::modal', [
'modalClass' => 'flash-modal',
'title' => $message['title'],
'body' => $message['message']
])
@else
<div class="alert
alert-{{ $message['level'] }}
{{ $message['important'] ? 'alert-important' : '' }}"
role="alert"
>
<div class="alert-icon">
<i class="now-ui-icons ui-2_like"></i>
</div>
@if ($message['important'])
@endif
<button type="button"
class="close"
data-dismiss="alert"
aria-hidden="true">&times;</button>
{!! $message['message'] !!}
</div>
</div>
@endif
@endif
@endforeach
{{ session()->forget('flash_notification') }}