assigned subfleets


@foreach($flight->subfleets as $sf) @endforeach
Type Name Actions
{!! $sf->type !!} {!! $sf->name !!} {!! Form::open(['url' => '/admin/flights/'.$flight->id.'/subfleets', 'method' => 'delete', 'class' => 'pjax_subfleet_form']) !!} {!! Form::hidden('subfleet_id', $sf->id) !!}
{!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs']) !!}
{!! Form::close() !!}

{!! 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', 'class' => 'select2 form-control input-lg', ]) !!}  {!! Form::button(' add', ['type' => 'submit', 'class' => 'btn btn-success btn-s']) !!} {!! Form::close() !!}