@extends('admin_dashboard') @section('admin')

Wings List (Land)

@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
All Wings Records (Grouped by Wings No)
@foreach($wings as $w) @endforeach
# Wings No Record Type File Preview File Action Notes Group
{{ $w->id }} @if($w->file_path) {{ $w->wings_no }} @else {{ $w->wings_no }} @endif {{ $w->record_type }} @if($w->file_path) @php $extension = pathinfo($w->file_path, PATHINFO_EXTENSION); @endphp @if(in_array(strtolower($extension), ['jpg', 'jpeg', 'png', 'gif', 'webp'])) Preview @elseif(strtolower($extension) == 'pdf') @else {{ $extension }} @endif @endif @if($w->file_path) Open Download @endif {{ $w->notes }} {{ $w->wings_no }}
@endsection @push('scripts') @endpush