@extends('layouts.admin') @section('title', 'Hotel Booking Details') @section('content')
Hotel Booking Details
Hotel: {{ $hotelBooking->hotel?->name }}
Customer: {{ $hotelBooking->customer?->full_name }}
Room Category: {{ $hotelBooking->roomType?->name ?: '-' }}
Check-in: {{ optional($hotelBooking->check_in_date)->format('d M Y') }}
Check-out: {{ optional($hotelBooking->check_out_date)->format('d M Y') }}
Number of Rooms: {{ $hotelBooking->number_of_rooms }}
Supplier Cost: {{ number_format($hotelBooking->supplier_cost, 2) }}
Selling Price: {{ number_format($hotelBooking->selling_price, 2) }}
Received / Due: {{ number_format($hotelBooking->paid_amount, 2) }} / {{ number_format(max($hotelBooking->selling_price - $hotelBooking->paid_amount, 0), 2) }}
Profit: {{ number_format($hotelBooking->profit, 2) }}
Reservation Status: {{ str_replace('_', ' ', ucfirst($hotelBooking->reservation_status)) }}
Guest List:
    @forelse(($hotelBooking->guest_list ?? []) as $g)
  • {{ is_array($g) ? $g['name'] ?? '-' : $g }}
  • @empty
  • No guests added.
  • @endforelse
@endsection