Skip to content

Instantly share code, notes, and snippets.

@zach2825
Created July 27, 2016 21:48
Show Gist options
  • Save zach2825/335b8d05e4a225e03b83204157dd5bdc to your computer and use it in GitHub Desktop.
Save zach2825/335b8d05e4a225e03b83204157dd5bdc to your computer and use it in GitHub Desktop.
@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">&times;</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">&times;</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">&times;</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">&times;</button>--}}
{{--{{ Session::get('warning') }}--}}
{{--</div>--}}
@endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment