@extends('layouts.app') @section('title', 'Check-out — ' . $reservation->booking_no) @section('nav_checkout', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Check-out') @section('page_subtitle', 'Review folio and settle balance before departure') @section('content') @php $vatRate = (float) ($settings['vat_rate'] ?? 12); $vatDivisor = 1 + ($vatRate / 100); $totalExtras = $charges->sum('amount'); $totalCharges = (float) $reservation->amount + $totalExtras; $totalPaid = $payments->sum('amount'); $balance = max(0, $totalCharges - $totalPaid); $isSettled = $balance <= 0; $catLabels = [ 'food_beverage' => 'Food & Bev.', 'laundry' => 'Laundry', 'telephone' => 'Telephone', 'minibar' => 'Minibar', 'damage' => 'Damage', 'other' => 'Misc.', ]; @endphp {{-- Back nav + guest header --}}
{{-- Flash messages --}} @if(session('error')){{ $reservation->booking_no }} · {{ $reservation->room_type }}
Room
{{ $reservation->room_no }}
Check-in
{{ $reservation->check_in->format('M j, Y') }}
Check-out
{{ $reservation->check_out->format('M j, Y') }}
Nights
{{ $reservation->nights }}
Room Charges
| Description | Nights | Rate | Amount |
|---|---|---|---|
|
{{ $reservation->room_type }} Room {{ $reservation->room_no }} |
{{ $reservation->nights }} | ₱{{ number_format($reservation->rate, 0) }}/night | ₱{{ number_format($reservation->amount, 0) }} |
Extra Charges
No extra charges.
@endif @if($charges->isNotEmpty())| Description | Qty | Amount | |
|---|---|---|---|
|
{{ $charge->description }} {{ $catLabels[$charge->category] ?? $charge->category }} · {{ $charge->charge_date->format('M j') }} |
×{{ $charge->quantity }} | ₱{{ number_format($charge->amount, 0) }} | |
| Extras Subtotal | ₱{{ number_format($totalExtras, 0) }} | ||
No extra charges.
@endif {{-- Add charge form --}}Payments Received
No payments recorded.
@else{{ $payment->method }}
{{ $payment->payment_date->format('M j, Y') }} @if($payment->reference) · {{ $payment->reference }}@endif
No outstanding balance
@elseBalance Due
₱{{ number_format($balance, 0) }}
Must be settled before check-out
@endifRecord payment above to unlock check-out
@endif {{-- View full folio link --}}