phpvms/resources/views/admin/pireps/fares.blade.php
Nabeel S 092b9fc9dc
Add step fields to enable decimal points on fields #342 (#343)
* Add step fields to enable decimal points on fields #342

* Update js-yaml version due to vulnerability scan

* Don't seed dev files when env == local

* Fix

* Fix  to be static

* Add visibilty keyword
2019-08-06 15:54:21 -04:00

31 lines
869 B
PHP

@if($aircraft)
<table class="table table-hover table-responsive">
<thead>
<th>Fare</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($pirep->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,
'step' => '0.01',
'readonly' => $pirep->read_only]) }}
@endif
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
@endif