@extends('admin.layout.main') @section('title', 'Dashboard') @push('content')

Edit Aircraft

@csrf
@csrf
@foreach ($aircraft->airFrame as $index => $data)
@if ($loop->last) @else @endif
@endforeach @if ($aircraft->airFrame->isEmpty())
@endif
@csrf
@csrf
@csrf
@if (!empty($aircraft->apus) && $aircraft->apus->count()) @foreach ($aircraft->apus as $index => $apu)
@endforeach @else
@endif
@csrf @foreach (['left', 'right'] as $index => $position) @php $engine = $aircraft->engines->firstWhere('position', $position); @endphp
{{ $position }} Engine
@endforeach
@csrf
@foreach ($aircraft->inspections as $index => $inspection)
@if ($loop->last) @else @endif
@endforeach {{-- Default empty row if no inspections exist --}} @if ($aircraft->inspections->isEmpty())
@endif
@csrf
@forelse ($aircraft->features as $index => $feature)
@if ($loop->last) @else @endif
@empty
@endforelse
@csrf
@forelse ($aircraft->avionics as $index => $avionic)
@empty
@endforelse
@csrf
@if ($aircraft->media->where('type', 'main_image')->first())
Main Image
@endif
@if ($aircraft->media->where('type', 'floor_plan')->first())
Floor Plan Image
@endif
@csrf
{{-- Listing Status --}}
{{-- Price --}}
{{-- Is Featured --}}
{{-- Listed At --}}
{{-- Overview --}}
@endpush @push('js') @endpush