@extends('admin.layouts.app') @section('title', 'Booking Details') @section('page-title', 'Booking ' . $booking->booking_number) @section('content')

{{ $booking->guest_name }}

{{ $booking->booking_number }}

@php $statusClass = match($booking->booking_status) { 'pending' => 'bg-yellow-100 text-yellow-700', 'confirmed' => 'bg-blue-100 text-blue-700', 'checked_in' => 'bg-green-100 text-green-700', 'checked_out' => 'bg-gray-100 text-gray-700', 'cancelled' => 'bg-red-100 text-red-700', default => 'bg-gray-100 text-gray-700', }; @endphp {{ ucfirst(str_replace('_', ' ', $booking->booking_status)) }} @if($booking->booking_status === 'pending') Confirm @endif

Room

{{ $booking->room?->room_number ?? 'Not Assigned' }}

Type

{{ $booking->roomType?->name }}

Check-in

{{ $booking->check_in_date->format('M d, Y') }}

Check-out

{{ $booking->check_out_date->format('M d, Y') }}

Guest Details

Phone: {{ $booking->guest_phone }}

Email: {{ $booking->guest_email ?? 'N/A' }}

ID: {{ $booking->guest_id_type ?? 'N/A' }} - {{ $booking->guest_id_number ?? '' }}

Booking Summary

Guests: {{ $booking->adults }} Adults{{ $booking->children > 0 ? ', ' . $booking->children . ' Children' : '' }}

Nights: {{ $booking->nights }}

Source: {{ ucfirst($booking->source) }}

@if($booking->special_requests)

Special Requests

{{ $booking->special_requests }}

@endif
@if($booking->booking_status === 'pending')
@csrf
@endif
View Folio

Payment Summary

Room ({{ $booking->nights }} nights) ₦ {{ number_format($booking->subtotal, 0) }}
Tax (16%) ₦ {{ number_format($booking->tax_amount, 0) }}
@if($booking->discount_amount > 0)
Discount - ₦ {{ number_format($booking->discount_amount, 0) }}
@endif
Total ₦ {{ number_format($booking->total_amount, 0) }}

Payment: {{ $booking->payment_method }}

Status: {{ $booking->payment_status }}

@endsection