phpvms/resources/views/layouts/default/pireps/fares.blade.php

25 lines
995 B
PHP
Raw Normal View History

@if($aircraft)
2018-04-07 06:10:45 +08:00
<div class="form-container">
<h6><i class="fas fa-ellipsis-h"></i>
2018-05-22 01:05:22 +08:00
&nbsp;{{ trans_choice('pireps.fare', 2) }}
2018-04-07 06:10:45 +08:00
</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.')')}}
@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>
@endif