@extends('layouts.app') @section('title', 'Reservation Details') @section('page_title', $reservation['booking_no']) @section('page_subtitle', 'Reservation details for ' . $reservation['guest_name']) @section('nav_reservations', 'bg-teal-50 text-teal-700 font-semibold') @section('content') @if (session('success'))
{{ session('success') }}
{{ session('error') }}
{{ $reservation['guest_name'] }} — currently in Room {{ $reservation['room_no'] }}
Part of Group Booking {{ $group->group_no }}
{{ $group->reservations->count() }} rooms total @if ($siblings->count()) — other rooms: @foreach ($siblings as $sib) Room {{ $sib->room_no }}{{ !$loop->last ? ', ' : '' }} @endforeach @endif
Booked via {{ $reservation['source'] }}
Total Amount
₱{{ number_format($reservation['amount'], 2) }}
Rate Plan
Check-in
{{ \Carbon\Carbon::parse($reservation['check_in'])->format('D, M j, Y') }}
After 2:00 PM
Check-out
{{ \Carbon\Carbon::parse($reservation['check_out'])->format('D, M j, Y') }}
Before 12:00 PM
Duration
{{ $reservation['nights'] }} Night{{ $reservation['nights'] > 1 ? 's' : '' }}
{{ $reservation['pax'] }} Guest{{ $reservation['pax'] > 1 ? 's' : '' }}
Room Details
Room {{ $reservation['room_no'] }}
{{ $reservation['room_type'] }}
₱{{ number_format($reservation['rate'], 0) }} / night
Charges Breakdown
@if($canAddCharge) @endifAdd Extra Charge
Payments
@if($canAddPay) @endifCharges
₱{{ number_format($totalCharge, 2) }}
Paid
₱{{ number_format($totalPaid, 2) }}
Balance
{{ $balance > 0 ? '₱'.number_format($balance, 2) : 'Settled' }}
Record Payment
Special Request
{{ $reservation['notes'] }}
Guest Information
{{ $reservation['guest_name'] }}
Primary Guest
Reminders
@if ($reminders->where('status', 'pending')->count() > 0) {{ $reminders->where('status', 'pending')->count() }} pending @endifNo reminders yet.
@else{{ $reminder->remind_at->format('M j, Y g:i A') }}
@if ($reminder->notes){{ $reminder->notes }}
@endifActivity Log
@php $colorBg = ['teal'=>'bg-teal-100','blue'=>'bg-blue-100','green'=>'bg-green-100','red'=>'bg-red-100','amber'=>'bg-amber-100','purple'=>'bg-purple-100','gray'=>'bg-gray-100']; $colorDot = ['teal'=>'bg-teal-500','blue'=>'bg-blue-500','green'=>'bg-green-500','red'=>'bg-red-400','amber'=>'bg-amber-500','purple'=>'bg-purple-500','gray'=>'bg-gray-400']; @endphp @if($activityLogs->isEmpty())No activity recorded yet.
@else{{ $log->description }}
{{ $log->user_name ?? 'System' }} · {{ $log->created_at->diffForHumans() }}