{{----}} @foreach($aircraft as $ac) {{----}} @endforeach
Name SubfleetICAORegistration Hours Active
{!! $ac->name !!} @if($ac->subfleet_id && $ac->subfleet) {!! $ac->subfleet->name !!} @else - @endif {!! $ac->icao !!}{!! $ac->registration !!} {!! Utils::minutesToTimeString($ac->flight_hours) !!} @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() !!}