Created
June 10, 2018 06:41
-
-
Save manuelgeek/1f8281fc08c2a5ceedb1a9c4ea9613b5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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('success')) | |
<div class="alert alert-success" role="alert"> | |
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> | |
{{ Session::get('success')}} | |
</div> | |
@endif | |
@if (Session::has('error')) | |
<div class="alert alert-danger" role="alert"> | |
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> | |
{{ Session::get('error')}} | |
</div> | |
@endif | |
@if (isset($errors) ) | |
@if (count($errors) > 0) | |
<div class="alert alert-danger" role="alert"> | |
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> | |
<strong>Errors:</strong> | |
@foreach ($errors->all() as $error) | |
<li>{{ $error }}</li> | |
@endforeach | |
</div> | |
@endif | |
@endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make it a partial, then include on top of your
tag