Created
July 27, 2016 21:48
-
-
Save zach2825/335b8d05e4a225e03b83204157dd5bdc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if (Session::has('flash_notification.message')) | |
@if (Session::has('flash_notification.overlay')) | |
@include('flash::modal', ['modalClass' => 'flash-modal', 'title' => Session::get('flash_notification.title'), 'body' => Session::get('flash_notification.message')]) | |
@else | |
@if(Session::get('flash_notification.level') == 'danger') | |
<script> toastr.error('{{ Session::get('flash_notification.message') }}')</script> | |
@else | |
<script> toastr.{{ Session::get('flash_notification.level') }}('{{ Session::get('flash_notification.message') }}')</script> | |
@endif | |
{{--<div class="alert alert-{{ Session::get('flash_notification.level') }}">--}} | |
{{--<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>--}} | |
{{--{{ Session::get('flash_notification.message') }}--}} | |
{{--</div>--}} | |
@endif | |
@endif | |
@if (Session::has('success')) | |
<script>toastr.success('{{ Session::get('success') }}')</script> | |
{{--<div class="alert alert-success">--}} | |
{{--<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>--}} | |
{{--{{ Session::get('success') }}--}} | |
{{--</div>--}} | |
@endif | |
@if (Session::has('error')) | |
<script>toastr.error('{{ Session::get('error') }}')</script> | |
{{--<div class="alert alert-error">--}} | |
{{--<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>--}} | |
{{--{{ Session::get('error') }}--}} | |
{{--</div>--}} | |
@endif | |
@if (Session::has('warning')) | |
<script>toastr.warning('{{ Session::get('warning') }}')</script> | |
{{--<div class="alert alert-warning">--}} | |
{{--<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>--}} | |
{{--{{ Session::get('warning') }}--}} | |
{{--</div>--}} | |
@endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment