{{-- ================================================================ Email partial: single reservation trip block (email-safe tables) Variables: $reservation, $service_settings, $reservationId ================================================================ --}} @php $svcId = $service_settings['service_type_id'] ?? 0; $flightType = $reservation['flight_info']['flight_type'] ?? 'arrival'; if ($svcId == 1 && $flightType == 'departure') { // DEPARTURE — Blood Red theme $badgeBg = '#8B0000'; $badgeBorder = '#C0392B'; $headerBg = '#8B0000'; $cardBorder = '#fca5a5'; $cardBg = '#fff8f8'; $fareColor = '#8B0000'; $statsRowBg = '#fff1f1'; } elseif ($svcId == 1) { // ARRIVAL — Green theme $badgeBg = '#166534'; $badgeBorder = '#22c55e'; $headerBg = '#166534'; $cardBorder = '#bbf7d0'; $cardBg = '#f0fdf4'; $fareColor = '#166534'; $statsRowBg = '#f0fdf4'; } elseif ($svcId == 2) { // HOURLY — Blue theme $badgeBg = '#1e40af'; $badgeBorder = '#3b82f6'; $headerBg = '#1e40af'; $cardBorder = '#bfdbfe'; $cardBg = '#eff6ff'; $fareColor = '#1e40af'; $statsRowBg = '#eff6ff'; } else { // AROUND TOWN — Purple theme $badgeBg = '#6d28d9'; $badgeBorder = '#8b5cf6'; $headerBg = '#6d28d9'; $cardBorder = '#ddd6fe'; $cardBg = '#faf5ff'; $fareColor = '#6d28d9'; $statsRowBg = '#faf5ff'; } @endphp {{-- ── CONFIRMATION # + SERVICE BADGE ── --}} {{-- ── TRIP DETAILS CARD ── --}}
CONFIRMATION #{{ $reservationId }} @if($svcId == 1 && $flightType == 'departure') ✈ DEPARTURE @elseif($svcId == 1) ✈ ARRIVAL @elseif($svcId == 2) 🕐 HOURLY @else 🗺 AROUND TOWN @endif
{{-- CARD HEADER --}} {{-- PICKUP DATE / TIME --}} {{-- FLIGHT INFORMATION (airport only) --}} @if($svcId == 1) @endif {{-- ROUTE (Pickup = RED, Dropoff = GREEN) --}} {{-- PASSENGER / LUGGAGE / VEHICLE — 3-column cards --}} {{-- FARE --}}
🚂 TRIP DETAILS
📅 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

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') }}

🗺 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'] }}
👥 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) @endif @if(!empty($reservation['distance'])) @endif @if($svcId == 2 && !empty($reservation['drop_off_hours'])) @endif @if(count($reservation['additional_stops'] ?? []) > 0) @endif
🛄 {{ $reservation['extra_large_luggage'] }} XL Bags 🛣 {{ $reservation['distance'] }} mi ⏱ {{ $reservation['drop_off_hours'] }} hrs 📍 {{ count($reservation['additional_stops']) }} stop(s)
@endif
TOTAL FARE ${{ $reservation['total_fare'] }}