specify fares, js to dynamically change fare form; get applicable fares for the flight/pirep #125
This commit is contained in:
29
resources/views/admin/pireps/fares.blade.php
Normal file
29
resources/views/admin/pireps/fares.blade.php
Normal 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
|
||||
Reference in New Issue
Block a user