2018-02-25 05:38:25 +08:00
|
|
|
@if($aircraft)
|
|
|
|
<table class="table table-hover table-responsive">
|
|
|
|
<thead>
|
2018-05-12 02:53:24 +08:00
|
|
|
<th>Fare</th>
|
2018-02-25 05:38:25 +08:00
|
|
|
<th>Count</th>
|
|
|
|
</thead>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($aircraft->subfleet->fares as $fare)
|
|
|
|
<tr>
|
2018-03-13 06:58:12 +08:00
|
|
|
<td>{{ $fare->name }} ({{ $fare->code }})</td>
|
2018-02-25 05:38:25 +08:00
|
|
|
<td>
|
|
|
|
<div class="form-group">
|
2018-04-10 11:04:59 +08:00
|
|
|
@if($pirep->read_only)
|
2018-03-13 06:58:12 +08:00
|
|
|
<p>{{ $pirep->{'fare_'.$fare->id} }}</p>
|
|
|
|
{{ Form::hidden('fare_'.$fare->id) }}
|
2018-02-25 05:38:25 +08:00
|
|
|
@else
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::number('fare_'.$fare->id, null, [
|
2018-02-25 05:38:25 +08:00
|
|
|
'class' => 'form-control',
|
|
|
|
'min' => 0,
|
2018-04-10 11:04:59 +08:00
|
|
|
'readonly' => $pirep->read_only]) }}
|
2018-02-25 05:38:25 +08:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
@endif
|