@section('title', 'Tour Booking Details') @section('content')

Tour Booking Details

Booking Overview

{{ $booking->booking_reference }}

{{ $booking->tour->title ?? 'N/A' }}

{{ $booking->departure_date ? date('d M Y, D', strtotime($booking->departure_date)) : 'N/A' }}

{{ $booking->tour->extra_field_3 ?? 'N/A' }} Days

{{ ucfirst($booking->status) }}
{{ ucfirst($booking->payment_status) }}

@if($booking->payment_method === 'stripe') Credit/Debit Card @elseif($booking->payment_method === 'paypal') PayPal @else {{ ucfirst($booking->payment_method) }} @endif

{{ $booking->payment_id ?? 'N/A' }}

Customer Information

{{ $booking->user->name ?? 'N/A' }}

{{ $booking->user->email ?? 'N/A' }}

{{ $booking->user->phone ?? 'N/A' }}

@if($booking->user->country && $booking->user->countryData) {{ $booking->user->countryData->name }} @else Not specified @endif

@if($booking->user->state && $booking->user->stateData) {{ $booking->user->stateData->name }} @else Not specified @endif

@if($booking->user->city && $booking->user->cityData) {{ $booking->user->cityData->name }} @else Not specified @endif

Passenger Details

{{ $booking->adults }}
{{ $booking->children }}
@if($booking->passengers)
Passenger Information:
@foreach($booking->passengers as $index => $passenger)
Passenger {{ $index + 1 }}:

{{ $passenger['title'] ?? 'N/A' }} {{ $passenger['first_name'] ?? 'N/A' }} {{ $passenger['last_name'] ?? 'N/A' }}

@if(isset($passenger['country']) && $passenger['country']) @php $country = \App\Models\Country::find($passenger['country']); @endphp Country: {{ $country ? $country->name : 'Invalid Country ID' }} @endif
@endforeach
@endif

Tour Information

{{ $booking->tour->extra_field_1 ? date('d M Y', strtotime($booking->tour->extra_field_1)) : 'N/A' }}

{{ $booking->tour->extra_field_2 ? date('d M Y', strtotime($booking->tour->extra_field_2)) : 'N/A' }}

{{ $booking->tour->extra_field_4 ?? 'N/A' }}

@if($booking->tour->extra_field_5 && $booking->tour->departureCountry) {{ $booking->tour->departureCountry->name }} @else Not specified @endif

@if($booking->tour->extra_field_6 && $booking->tour->departureState) {{ $booking->tour->departureState->name }} @else Not specified @endif

@if($booking->tour->extra_field_7 && $booking->tour->departureCity) {{ $booking->tour->departureCity->name }} @else Not specified @endif

@if($booking->tour->extra_field_12)
{!! nl2br(e($booking->tour->extra_field_12)) !!}
@endif

Pricing Summary

Adult Price: {{ $currencySymbol }} {{ number_format($booking->adult_price) }} × {{ $booking->adults }}
@if($booking->children > 0)
Children Price: {{ $currencySymbol }} {{ number_format($booking->children_price ?? 0) }} × {{ $booking->children }}
@endif
Total Amount: {{ $currencySymbol }} {{ number_format($booking->total_amount) }}

Booking Timeline

Booking Created

{{ $booking->created_at->format('d M Y, h:i A') }}

@if($booking->updated_at != $booking->created_at)
Last Updated

{{ $booking->updated_at->format('d M Y, h:i A') }}

@endif @if($booking->departure_date)
Departure Date

{{ date('d M Y, D', strtotime($booking->departure_date)) }}

@endif

Quick Actions

View Tour Page
@if($relatedBookings->count() > 0)

Other Bookings For This User

@endif
@push('styles') @endpush @push('scripts') @endpush