I want my layout
blade
echo
only if the $errors
variable is set:
@section('mensagens')
<div class="container">
<div class="row">
<div class="col-md-2"></div>
{{ isset($errors) ?
'<div class="col-md-8 alert alert-danger">'
$errors->first('prontuario')
$errors->first('senha')
'</div>'
:
''
}}
<div class="col-md-2"></div>
</div>
</div>
@show
How do I just show this div
of class alert-danger
if the $errors
variable of my form is set?