30 lines
819 B
PHP
30 lines
819 B
PHP
@if($aircraft)
|
|
<table class="table table-hover table-responsive">
|
|
<thead>
|
|
<th></th>
|
|
<th>Count</th>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($aircraft->subfleet->fares as $fare)
|
|
<tr>
|
|
<td>{!! $fare->name !!} ({!! $fare->code !!})</td>
|
|
<td>
|
|
<div class="form-group">
|
|
@if($read_only)
|
|
<p>{!! $pirep->{'fare_'.$fare->id} !!}</p>
|
|
{!! Form::hidden('fare_'.$fare->id) !!}
|
|
@else
|
|
{!! Form::number('fare_'.$fare->id, null, [
|
|
'class' => 'form-control',
|
|
'min' => 0,
|
|
'readonly' => $read_only]) !!}
|
|
@endif
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@endif
|