specify fares, js to dynamically change fare form; get applicable fares for the flight/pirep #125

This commit is contained in:
Nabeel Shahzad
2018-02-24 15:38:25 -06:00
parent 910c0e0eab
commit 58e0f50c48
28 changed files with 1063 additions and 265 deletions

View File

@@ -0,0 +1,29 @@
@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