Permalink
Switch branches/tags
Find file Copy path
72 lines (65 sloc) 2.73 KB
@if($errors->any())
<div class="alert alert-danger" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
@foreach($errors->all() as $error)
{{ $error }}<br/>
@endforeach
</div>
@elseif(session()->get('flash_success'))
<div class="alert alert-success" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
@if(is_array(json_decode(session()->get('flash_success'), true)))
{{ implode('', session()->get('flash_success')->all(':message<br/>')) }}
@else
{{ session()->get('flash_success') }}
@endif
</div>
@elseif(session()->get('flash_warning'))
<div class="alert alert-warning" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
@if(is_array(json_decode(session()->get('flash_warning'), true)))
{{ implode('', session()->get('flash_warning')->all(':message<br/>')) }}
@else
{{ session()->get('flash_warning') }}
@endif
</div>
@elseif(session()->get('flash_info'))
<div class="alert alert-info" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
@if(is_array(json_decode(session()->get('flash_info'), true)))
{{ implode('', session()->get('flash_info')->all(':message<br/>')) }}
@else
{{ session()->get('flash_info') }}
@endif
</div>
@elseif(session()->get('flash_danger'))
<div class="alert alert-danger" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
@if(is_array(json_decode(session()->get('flash_danger'), true)))
{{ implode('', session()->get('flash_danger')->all(':message<br/>')) }}
@else
{{ session()->get('flash_danger') }}
@endif
</div>
@elseif(session()->get('flash_message'))
<div class="alert alert-info" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
@if(is_array(json_decode(session()->get('flash_message'), true)))
{{ implode('', session()->get('flash_message')->all(':message<br/>')) }}
@else
{{ session()->get('flash_message') }}
@endif
</div>
@endif