2018-02-25 05:38:25 +08:00
|
|
|
@if($aircraft)
|
2018-04-07 06:10:45 +08:00
|
|
|
<div class="form-container">
|
|
|
|
<h6><i class="fas fa-ellipsis-h"></i>
|
|
|
|
Fares
|
|
|
|
</h6>
|
|
|
|
<div class="form-container-body">
|
|
|
|
@foreach($aircraft->subfleet->fares as $fare)
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
{{Form::label('fare_'.$fare->id, $fare->name.' ('.$fare->code.')')}}
|
2018-04-10 11:04:59 +08:00
|
|
|
@if($pirep->read_only)
|
2018-04-07 06:10:45 +08:00
|
|
|
<p>{{ $pirep->{'fare_'.$fare->id} }}</p>
|
|
|
|
{{ Form::hidden('fare_'.$fare->id) }}
|
|
|
|
@else
|
|
|
|
<div class="input-group form-group">
|
|
|
|
{{ Form::number('fare_'.$fare->id, null, ['class' => 'form-control', 'min' => 0]) }}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-25 05:38:25 +08:00
|
|
|
@endif
|