2017-06-24 06:33:18 +08:00
|
|
|
<div id="subfleet_flight_wrapper">
|
2018-01-07 22:58:57 +08:00
|
|
|
<h3>assigned subfleets</h3>
|
2018-02-23 04:21:00 +08:00
|
|
|
@component('admin.components.info')
|
|
|
|
The subfleets that are assigned to this flight.
|
|
|
|
@endcomponent
|
2018-01-07 22:58:57 +08:00
|
|
|
<table class="table table-responsive" id="aircrafts-table">
|
|
|
|
<thead>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th style="text-align: center;">Actions</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($flight->subfleets as $sf)
|
|
|
|
<tr>
|
|
|
|
<td>{!! $sf->type !!}</td>
|
|
|
|
<td>{!! $sf->name !!}</td>
|
|
|
|
<td style="width: 10%; text-align: center;" class="form-inline">
|
|
|
|
{!! Form::open(['url' => '/admin/flights/'.$flight->id.'/subfleets',
|
|
|
|
'method' => 'delete',
|
|
|
|
'class' => 'pjax_subfleet_form']) !!}
|
|
|
|
{!! Form::hidden('subfleet_id', $sf->id) !!}
|
|
|
|
<div class='btn-group'>
|
2018-02-23 03:28:12 +08:00
|
|
|
{!! Form::button('<i class="fa fa-times"></i>',
|
2018-01-07 22:58:57 +08:00
|
|
|
['type' => 'submit',
|
|
|
|
'class' => 'btn btn-danger btn-xs'])
|
|
|
|
!!}
|
|
|
|
</div>
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<hr/>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<div class="text-right">
|
|
|
|
{!! Form::open([
|
|
|
|
'url' => '/admin/flights/'.$flight->id.'/subfleets',
|
|
|
|
'method' => 'post',
|
|
|
|
'class' => 'pjax_form form-inline pjax_subfleet_form'
|
|
|
|
])
|
|
|
|
!!}
|
|
|
|
{!! Form::select('subfleet_id', $avail_subfleets, null, [
|
|
|
|
'placeholder' => 'Select Subfleet',
|
2018-02-23 03:28:12 +08:00
|
|
|
'class' => 'select2 form-control input-lg',
|
2018-01-07 22:58:57 +08:00
|
|
|
])
|
2018-02-23 03:28:12 +08:00
|
|
|
!!}
|
|
|
|
{!! Form::button('<i class="fas fa-plus"></i> add',
|
2018-01-07 22:58:57 +08:00
|
|
|
['type' => 'submit',
|
|
|
|
'class' => 'btn btn-success btn-s']) !!}
|
2017-06-20 03:29:10 +08:00
|
|
|
{!! Form::close() !!}
|
2018-01-07 22:58:57 +08:00
|
|
|
</div>
|
2017-06-20 03:29:10 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|