phpvms/resources/views/admin/pireps/field_values.blade.php

31 lines
870 B
PHP
Raw Normal View History

<table class="table table-responsive table-hover" id="flight-fields-table">
2017-07-14 11:09:38 +08:00
<thead>
<th></th>
2017-07-14 11:09:38 +08:00
<th>Value</th>
<th>Source</th>
</thead>
<tbody>
@foreach($pirep->fields as $field)
<tr>
<td>
{{ $field->name }}
@if($field->required === true)
<span class="text-danger">*</span>
@endif
2017-07-14 11:09:38 +08:00
</td>
<td>
<div class="form-group">
{{ Form::text($field->slug, null, [
'class' => 'form-control'
]) }}
2017-07-14 11:09:38 +08:00
</div>
<p class="text-danger">{{ $errors->first($field->slug) }}</p>
</td>
<td>
{{ PirepSource::label($field->source) }}
2017-07-14 11:09:38 +08:00
</td>
</tr>
@endforeach
</tbody>
</table>