2017-11-23 01:52:02 +08:00
|
|
|
{{--<div class="row"> <div class="col-12">--}}
|
2017-06-13 11:48:32 +08:00
|
|
|
<div id="aircraft_fares_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
|
2018-01-08 00:38:16 +08:00
|
|
|
<div class="header">
|
|
|
|
<h3>fares</h3>
|
|
|
|
<p class="category">
|
|
|
|
<i class="icon fa fa-info"> </i>
|
|
|
|
Fares assigned to the current subfleet. These can be overridden,
|
|
|
|
otherwise, the value used is the default, which comes from the fare.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<br />
|
2017-06-13 11:48:32 +08:00
|
|
|
<table id="aircraft_fares"
|
|
|
|
class="table table-bordered table-hover dataTable"
|
|
|
|
role="grid" aria-describedby="aircraft_fares_info">
|
|
|
|
<thead>
|
2018-01-08 00:38:16 +08:00
|
|
|
<tr>
|
|
|
|
<th>name</th>
|
|
|
|
<th>code</th>
|
|
|
|
<th>capacity (default)</th>
|
|
|
|
<th>price (default)</th>
|
|
|
|
<th>cost (default)</th>
|
2017-06-13 11:48:32 +08:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-06-25 00:09:27 +08:00
|
|
|
@foreach($subfleet->fares as $atf)
|
2018-01-08 00:38:16 +08:00
|
|
|
<tr>
|
2017-06-13 11:48:32 +08:00
|
|
|
<td class="sorting_1">{!! $atf->name !!}</td>
|
2017-11-23 02:00:31 +08:00
|
|
|
<td style="text-align: center;">{!! $atf->code !!}</td>
|
2017-06-14 04:11:11 +08:00
|
|
|
<td><a href="#" data-pk="{!! $atf->id !!}" data-name="capacity">{!! $atf->pivot->capacity !!}</a>
|
|
|
|
<span class="small background-color-grey-light">({!! $atf->capacity !!})</span>
|
|
|
|
</td>
|
|
|
|
<td><a href="#" data-pk="{!! $atf->id !!}" data-name="price">{!! $atf->pivot->price !!}</a>
|
|
|
|
<span class="small background-color-grey-light">({!! $atf->price !!})</span></td>
|
|
|
|
<td><a href="#" data-pk="{!! $atf->id !!}" data-name="cost">{!! $atf->pivot->cost !!}</a>
|
|
|
|
<span class="small background-color-grey-light">({!! $atf->cost!!})</span></td>
|
2017-06-13 11:48:32 +08:00
|
|
|
<td style="text-align: right; width:3%;">
|
2017-11-23 01:52:02 +08:00
|
|
|
{!! Form::open(['url' => '/admin/subfleets/'.$subfleet->id.'/fares',
|
|
|
|
'method' => 'delete',
|
|
|
|
'class' => 'rm_fare'
|
|
|
|
])
|
|
|
|
!!}
|
|
|
|
{!! Form::hidden('fare_id', $atf->id) !!}
|
|
|
|
{!! Form::button('<i class="fa fa-times"></i>',
|
|
|
|
['type' => 'submit',
|
|
|
|
'class' => 'btn btn-sm btn-danger btn-icon']) !!}
|
|
|
|
{!! Form::close() !!}
|
2017-06-13 11:48:32 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<hr />
|
2017-06-14 03:01:06 +08:00
|
|
|
<div class="row">
|
2017-06-20 03:29:10 +08:00
|
|
|
<div class="col-xs-12">
|
2018-01-08 00:38:16 +08:00
|
|
|
<div class="text-right">
|
2017-06-25 00:09:27 +08:00
|
|
|
{!! Form::open(['url' => '/admin/subfleets/'.$subfleet->id.'/fares',
|
2017-06-14 03:01:06 +08:00
|
|
|
'method' => 'post',
|
|
|
|
'class' => 'rm_fare form-inline'
|
|
|
|
])
|
|
|
|
!!}
|
|
|
|
{!! Form::select('fare_id', $avail_fares, null, [
|
|
|
|
'placeholder' => 'Select Fare',
|
2017-11-23 02:00:31 +08:00
|
|
|
'class' => 'ac-fare-dropdown form-control input-lg select2',
|
2017-06-14 03:01:06 +08:00
|
|
|
|
|
|
|
])
|
|
|
|
!!}
|
|
|
|
{!! Form::button('<i class="glyphicon glyphicon-plus"></i> add',
|
|
|
|
['type' => 'submit',
|
|
|
|
'class' => 'btn btn-success btn-s']) !!}
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-06-13 11:48:32 +08:00
|
|
|
</div>
|
2017-11-23 01:52:02 +08:00
|
|
|
{{--</div></div>--}}
|