BookStack/resources/views/form/textarea.blade.php

5 lines
310 B
PHP
Raw Normal View History

2015-07-15 23:55:49 +02:00
<textarea id="{{ $name }}" name="{{ $name }}" rows="5"
@if($errors->has($name)) class="text-neg" @endif>@if(isset($model) || old($name)){{ old($name) ? old($name) : $model->$name}}@endif</textarea>
2015-07-12 21:01:42 +02:00
@if($errors->has($name))
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
@endif