Created
December 10, 2013 10:54
-
-
Save carbontwelve/7888860 to your computer and use it in GitHub Desktop.
Found this somewhere on the internet and need to keep it safe for future projects. Very nice for using bootstrap notification boxes in Laravel4 views
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 ($errors->any()) | |
<div class="alert alert-error alert-block"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<h4>Error</h4> | |
Please check the form below for errors | |
</div> | |
@endif | |
@if ($message = Session::get('success')) | |
<div class="alert alert-success alert-block"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<h4>Success</h4> | |
{{ $message }} | |
</div> | |
@endif | |
@if ($message = Session::get('error')) | |
<div class="alert alert-error alert-block"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<h4>Error</h4> | |
{{ $message }} | |
</div> | |
@endif | |
@if ($message = Session::get('warning')) | |
<div class="alert alert-warning alert-block"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<h4>Warning</h4> | |
{{ $message }} | |
</div> | |
@endif | |
@if ($message = Session::get('info')) | |
<div class="alert alert-info alert-block"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<h4>Info</h4> | |
{{ $message }} | |
</div> | |
@endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment