Skip to content

Commit

Permalink
added vendor views
Browse files Browse the repository at this point in the history
  • Loading branch information
abixalmon committed Oct 29, 2016
1 parent 973938a commit c1a6188
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions resources/views/vendor/flash/message.blade.php
@@ -0,0 +1,19 @@
@if (session()->has('flash_notification.message'))
@if (session()->has('flash_notification.overlay'))
@include('flash::modal', [
'modalClass' => 'flash-modal',
'title' => session('flash_notification.title'),
'body' => session('flash_notification.message')
])
@else
<div class="alert alert-{{ session('flash_notification.level') }}">
<button type="button"
class="close"
data-dismiss="alert"
aria-hidden="true">&times;</button>

{!! session('flash_notification.message') !!}
</div>
@endif
@endif

19 changes: 19 additions & 0 deletions resources/views/vendor/flash/modal.blade.php
@@ -0,0 +1,19 @@
<div id="flash-overlay-modal" class="modal fade {{ $modalClass or '' }}">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>

<h4 class="modal-title">{{ $title }}</h4>
</div>

<div class="modal-body">
<p>{!! $body !!}</p>
</div>

<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>

0 comments on commit c1a6188

Please sign in to comment.