@foreach($aircraft as $ac) @endforeach
Subfleet Name ICAO Registration Active
@if($ac->subfleet_id && $ac->subfleet) {!! $ac->subfleet->name !!} @else - @endif {!! $ac->name !!} {!! $ac->icao !!} {!! $ac->registration !!} @if($ac->active == GenericState::ACTIVE) {!! GenericState::label($ac->active); !!} @else Inactive @endif {!! Form::open(['route' => ['admin.aircraft.destroy', $ac->id], 'method' => 'delete']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon', 'onclick' => "return confirm('Are you sure?')"]) !!} {!! Form::close() !!}