subfleets

@component('admin.components.info') The subfleets that are assigned to this flight. @endcomponent
@if(count($flight->subfleets) === 0) @include('admin.common.none_added', ['type' => 'subfleets']) @endif @if(count($flight->subfleets)) @endif @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', 'style' => 'width: 400px;', ]) }}  {{ Form::button(' add', ['type' => 'submit', 'class' => 'btn btn-success btn-s']) }} {{ Form::close() }}