@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; // Senior/PWD statutory discount (RA 9994 / RA 10754): the discounted guest's share // is VAT-exempt and must be pulled out of the VATable base before the VAT split. $statDiscount = (float) $reservation->discount_amount; $roomGross = (float) $reservation->amount + $statDiscount; // pre-discount room total $discLabel = $reservation->discount_type === 'pwd' ? 'PWD' : 'Senior Citizen'; $vat = $reservation->vatBreakdown($totalCharges); $exemptSale = $vat['exempt']; $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, 2) }}/night | ₱{{ number_format($roomGross, 2) }} |
|
Less: {{ $discLabel }} Discount 20% statutory, VAT-exempt (RA {{ $reservation->discount_type === 'pwd' ? '10754' : '9994' }}) @if($reservation->discount_id_number) · {{ $reservation->discount_type === 'pwd' ? 'PWD ID' : 'OSCA ID' }}: {{ $reservation->discount_id_number }} @endif |
−₱{{ number_format($statDiscount, 2) }} | ||
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, 2) }} | |
| Extras Subtotal | ₱{{ number_format($totalExtras, 2) }} | ||
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, 2) }}
Must be settled before check-out
@endifRecord payment above to unlock check-out
@endif {{-- View full folio link --}}Confirm Check-out