phpvms/resources/views/admin/ranks/subfleets.blade.php

51 lines
2.1 KiB
PHP
Raw Normal View History

2017-11-23 10:03:49 +08:00
<div id="rank_subfleet_wrapper" class="dataTables_wrapper form-inline dt-bootstrap col-lg-12">
2017-07-02 10:06:55 +08:00
<table class="table table-responsive" id="subfleets-table">
<thead>
<th>Airline</th>
<th>Name</th>
<th>Type</th>
<th style="text-align: center;">Actions</th>
</thead>
<tbody>
@foreach($rank->subfleets as $sf)
<tr>
<td>{!! $sf->airline->name !!}</td>
<td>{!! $sf->name !!}</td>
<td>{!! $sf->type !!}</td>
<td style="width: 10%; text-align: center;" class="form-inline">
{!! Form::open(['url' => '/admin/ranks/'.$rank->id.'/subfleets', 'method' => 'delete', 'class' => 'pjax_form']) !!}
{!! Form::hidden('subfleet_id', $sf->id) !!}
<div class='btn-group'>
2017-11-23 10:03:49 +08:00
{!! Form::button('<i class="fa fa-times"></i>',
2017-07-02 10:06:55 +08:00
['type' => 'submit',
2017-11-23 10:03:49 +08:00
'class' => 'btn btn-sm btn-danger btn-icon'])
2017-07-02 10:06:55 +08:00
!!}
</div>
{!! Form::close() !!}
</td>
</tr>
@endforeach
</tbody>
</table>
<hr />
<div class="row">
2017-11-23 10:03:49 +08:00
<div class="col-lg-12">
2017-07-02 10:06:55 +08:00
<div class="input-group input-group-lg pull-right">
2018-01-04 05:27:56 +08:00
{!! Form::open(['url' => url('/admin/ranks/'.$rank->id.'/subfleets'),
2017-07-02 10:06:55 +08:00
'method' => 'post',
'class' => 'pjax_form form-inline'
])
!!}
{!! Form::select('subfleet_id', $avail_subfleets, null, [
'placeholder' => 'Select Subfleet',
2018-01-04 05:27:56 +08:00
'class' => 'select2 form-control input-lg'])
2017-07-02 10:06:55 +08:00
!!}
{!! Form::button('<i class="fa fa-plus"></i> Add',
2017-07-02 10:06:55 +08:00
['type' => 'submit',
'class' => 'btn btn-success btn-small']) !!}
2017-07-02 10:06:55 +08:00
{!! Form::close() !!}
</div>
</div>
</div>
</div>