@foreach($aircraft as $ac) @endforeach
Name Registration Subfleet Location Hours Active
{!! $ac->name !!} {!! $ac->registration !!} @if($ac->subfleet_id && $ac->subfleet) {!! $ac->subfleet->name !!} @else - @endif {!! $ac->airport_id !!} {!! Utils::minutesToTimeString($ac->flight_hours) !!} @if($ac->status == \App\Models\Enums\AircraftStatus::ACTIVE) {!! \App\Models\Enums\AircraftStatus::label($ac->status); !!} @else {!! \App\Models\Enums\AircraftStatus::label($ac->status) !!} @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() !!}