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

5 lines
296 B
PHP
Raw Normal View History

2015-07-13 03:01:42 +08:00
<textarea id="{{ $name }}" name="{{ $name }}"
@if($errors->has($name)) class="neg" @endif>@if(isset($model) || old($name)){{ old($name) ? old($name) : $model->$name}}@endif</textarea>
@if($errors->has($name))
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
@endif