2018-07-13 10:20:10 +08:00
|
|
|
<tr>
|
2020-02-02 02:05:56 +08:00
|
|
|
<td>
|
|
|
|
{{ $field->name }}
|
|
|
|
@if($field->required === true)
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="input-group input-group-sm form-group">
|
|
|
|
@if(!$field->read_only)
|
|
|
|
{{ Form::text($field->slug, $field->value, [
|
|
|
|
'class' => 'form-control',
|
|
|
|
'readonly' => (!empty($pirep) && $pirep->read_only),
|
|
|
|
]) }}
|
|
|
|
@else
|
|
|
|
{{ $field->value }}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<p class="text-danger">{{ $errors->first($field->slug) }}</p>
|
|
|
|
</td>
|
2018-07-13 10:20:10 +08:00
|
|
|
</tr>
|