{{-- CARD HEADER --}}
|
🚂 TRIP DETAILS
|
{{-- PICKUP DATE / TIME --}}
|
📅 PICKUP DATE & TIME
{{ \Carbon\Carbon::parse($reservation['pickup_date'] . ' ' . $reservation['pickup_time'])->format('d-M-Y') }}
• {{ \Carbon\Carbon::parse($reservation['pickup_date'] . ' ' . $reservation['pickup_time'])->format('h:i A') }}
|
{{-- FLIGHT INFORMATION (airport only) --}}
@if($svcId == 1)
|
✈ FLIGHT INFORMATION
|
Airline
{{ $reservation['flight_info']['flight_airline'] }}
|
Flight #
{{ $reservation['flight_info']['flight_number'] }}
|
Date & Time
{{ \Carbon\Carbon::parse($reservation['flight_info']['flight_date'] . ' ' . $reservation['flight_info']['flight_time'])->format('d-M-Y h:i A') }}
|
|
@endif
{{-- ROUTE (Pickup = RED, Dropoff = GREEN) --}}
|
🗺 ROUTE
{{-- Pickup location — RED --}}
|
A
|
PICKUP LOCATION
{{ $reservation['pickup_location']['address'] }}
|
{{-- Vertical connector line --}}
{{-- Additional stops --}}
@if(isset($reservation['additional_stops']) && count($reservation['additional_stops']) > 0)
@foreach($reservation['additional_stops'] as $index => $stop)
|
{{ $index + 1 }}
|
STOP {{ $index + 1 }}
{{ $stop['address'] ?? ($stop['location']['address'] ?? 'N/A') }}
|
{{-- Connector --}}
@endforeach
@endif
{{-- Dropoff location — GREEN --}}
|
B
|
DROP LOCATION
{{ $reservation['dropoff_location']['address'] }}
|
|
{{-- PASSENGER / LUGGAGE / VEHICLE — 3-column cards --}}
|
👥 PASSENGERS
|
|
{{ collect($reservation['travellers'])->sum('count') }}
Pax
|
|
|
👳 LUGGAGE
|
|
{{ $reservation['luggage'] }}
Bags
|
|
|
🚗 VEHICLE
|
|
{{ $reservation['selected_vehicle']['vehicles_type'] ?? $reservation['selected_vehicle']['vehicle_type'] ?? 'Vehicle' }}
@if($reservation['selected_vehicle']['ride_type'] === 'hourly') Hourly Rate
@elseif($reservation['selected_vehicle']['ride_type'] === 'zip_code') Flat Rate
@else Mileage Rate
@endif
|
|
{{-- Extra info badges (XL bags, distance, hours, stops) --}}
@if(($reservation['extra_large_luggage'] ?? 0) > 0 || !empty($reservation['distance']) || ($svcId == 2 && !empty($reservation['drop_off_hours'])) || count($reservation['additional_stops'] ?? []) > 0)
@if(($reservation['extra_large_luggage'] ?? 0) > 0)
|
🛄 {{ $reservation['extra_large_luggage'] }} XL Bags
|
@endif
@if(!empty($reservation['distance']))
🛣 {{ $reservation['distance'] }} mi
|
@endif
@if($svcId == 2 && !empty($reservation['drop_off_hours']))
⏱ {{ $reservation['drop_off_hours'] }} hrs
|
@endif
@if(count($reservation['additional_stops'] ?? []) > 0)
📍 {{ count($reservation['additional_stops']) }} stop(s)
|
@endif
@endif
|
{{-- FARE --}}
|
TOTAL FARE
|
${{ $reservation['total_fare'] }}
|
|