2018-02-25 05:38:25 +08:00
|
|
|
<table class="table table-responsive table-hover" id="flight-fields-table">
|
2017-07-14 11:09:38 +08:00
|
|
|
<thead>
|
2018-02-25 05:38:25 +08:00
|
|
|
<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>
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ $field->name }}
|
2018-02-25 05:38:25 +08:00
|
|
|
@if($field->required === true)
|
|
|
|
<span class="text-danger">*</span>
|
|
|
|
@endif
|
2017-07-14 11:09:38 +08:00
|
|
|
</td>
|
2018-02-25 05:38:25 +08:00
|
|
|
<td>
|
|
|
|
<div class="form-group">
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::text($field->slug, null, [
|
2018-02-25 05:38:25 +08:00
|
|
|
'class' => 'form-control'
|
2018-03-13 06:58:12 +08:00
|
|
|
]) }}
|
2017-07-14 11:09:38 +08:00
|
|
|
</div>
|
2018-02-25 05:38:25 +08:00
|
|
|
<p class="text-danger">{{ $errors->first($field->slug) }}</p>
|
|
|
|
</td>
|
|
|
|
<td>
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ PirepSource::label($field->source) }}
|
2017-07-14 11:09:38 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|