@extends('layouts.app') @section('content') {{-- Loading Overlay — Minimal plane with speed lines --}} {{-- FLIGHT DETAILS MODAL --}} {{-- STOPS DETAIL MODAL --}}
✈️ Flight details
{{-- Loading Overlay sits INSIDE the container so position:absolute covers full content area --}}
{{-- Top animated progress bar --}}
{{-- Plane with speed lines --}}
plane
We're matching you with the best available flights...
{{-- HERO --}}

Flight Search Find the best fares instantly

{{-- Trip type tabs + options --}}
{{-- Main search grid: From | ↔ | To | Date | Pax | [Search] --}}
{{-- From + Swap + To --}}
{{-- Travel Date --}}
{{-- Passengers --}}
{{-- Search button --}}
{{-- Multi-city legs container --}} {{-- Standalone search button shown only for multi-city --}}
@php $flightArr = $allFlights instanceof \Illuminate\Support\Collection ? $allFlights->values()->toArray() : (array)($allFlights ?? []); $total = count($flightArr); $prices = array_column($flightArr, 'basePrice'); $minP = !empty($prices) ? (int)floor(min($prices)) : 0; $maxP = !empty($prices) ? (int)ceil(max($prices)) : 9999; $airlines = array_unique(array_column($flightArr, 'airlineCode')); $nsCnt = count(array_filter($flightArr, fn($f) => ($f['stopsLabel'] ?? '') === 'Non-stop')); $s1Cnt = count(array_filter($flightArr, fn($f) => ($f['stopsLabel'] ?? '') === '1 Stop')); @endphp @if(($searched ?? true))
{{ $total }} of {{ $total }} flights
Sort:
@forelse($flightArr as $i => $f) @include('flights.partials.flight-card', ['f' => $f, 'cardIndex' => $i, 'SelectedData' => $SelectedData]) @empty

No flights found

We couldn't find flights for this search. Try different dates or destinations.

New Search
@endforelse

No flights match your filters

Try adjusting the stops, price, or time filters.

@endif {{-- end @if($searched) --}} @if($searched ?? false) {{-- Results are rendered: fade out and remove the overlay --}} @endif @endsection