@extends('layouts.app') @section('title', __('Flight Booking')) @section('content') {{-- ✅ Header Section --}}

{{ __('Flight Booking') }}

View flight details, download tickets, and manage booking status.

@can('flight.edit') {{ __('Edit') }} @endcan {{ __('Back to List') }} {{-- ✅ Cancel Record বাটন (মডাল ওপেন করার জন্য) --}}
@if (session('success')) @endif {{-- ✅ Details Card --}}
{{-- Status --}}
{{ __('Status') }}
{{-- Recruitment --}}
Recruitment
{{ $record->recruitment?->tracking_number ?? '—' }} — {{ $record->recruitment?->passportHolder?->full_name ?? '' }}
{{-- Flight Info --}}
Airline
{{ $record->airline_id ?? '—' }}
Flight Number
{{ $record->flight_number ?? '—' }}
Travel Agency
{{ $record->travel_agency_id ?? '—' }}
{{-- Route & Date --}}
Departure Date
{{ $record->departure_date ? \Carbon\Carbon::parse($record->departure_date)->format('d M, Y') : '—' }}
Departure Airport
{{ $record->departure_airport ?? '—' }}
Arrival Airport
{{ $record->arrival_airport ?? '—' }}
{{-- Hotel (Conditional) --}} @if ($record->hotel_name)
Hotel Details
{{ $record->hotel_name }} ({{ $record->hotel_check_in?->format('d M Y') }} – {{ $record->hotel_check_out?->format('d M Y') }})
@endif {{-- Ticket Number & Documents --}}
Ticket Number
{{ $record->ticket_number ?? '—' }}
@isset($record->ticket_path) {{ __('Download Ticket') }} @endisset @isset($record->noc_path) {{ __('Download NOC') }} @endisset
{{-- ✅ Workflow History --}} @if ($recruitment)
{{ __('Workflow History') }}
@endif {{-- ✅ Change Status Form Card --}}
{{ __('Change Status') }}
@csrf
{{ __('Update Status') }}
{{-- ✅ Cancel Modal --}}
Are you sure?

{{ __('This cancels (archives) the record. It is not permanently deleted.') }}

@csrf @method('DELETE') {{ __('Keep it') }} {{ __('Confirm Cancel') }}
@endsection