@extends('layouts.admin') @section('title', 'Booking Details') @section('content')

Booking #{{ $booking->booking_reference }}

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

@php $statusClasses = [ 'pending' => 'bg-yellow-100 text-yellow-800 border-yellow-200', 'confirmed' => 'bg-green-100 text-green-800 border-green-200', 'cancelled' => 'bg-red-100 text-red-800 border-red-200', ]; $class = $statusClasses[$booking->status] ?? 'bg-gray-100 text-gray-800 border-gray-200'; @endphp Status: {{ ucfirst($booking->status) }}
@csrf @method('PUT')

Customer Details

Name

{{ $booking->user->name }}

Email

{{ $booking->user->email }}

Phone

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

Special Requirements

{{ $booking->special_requirements ?: 'None provided.' }}

Package Details

Package Name

{{ $booking->package->title }}

Destination

{{ $booking->package->destination }}

Travel Date

{{ \Carbon\Carbon::parse($booking->travel_date)->format('M d, Y') }}

Total People

{{ $booking->total_people }} Pax

Payment Summary

Price per person {{ $booking->package->has_discount ? $booking->package->formatted_discount_price : $booking->package->formatted_price }}
Total People x{{ $booking->total_people }}
Total Amount {{ $booking->formatted_total_amount }}
@if($booking->payment)

Payment Status

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

Ref: {{ $booking->payment->payment_reference }}

Method: {{ $booking->payment->payment_method }}

@if($booking->payment->paid_at)

Paid at: {{ \Carbon\Carbon::parse($booking->payment->paid_at)->format('M d, Y h:i A') }}

@endif
@else

No payment record found.

@endif
@endsection