@extends('layouts.print') @section('title', 'Guest Folio — ' . $reservation->booking_no) @section('content') @php $catLabels = [ 'food_beverage' => 'Food & Bev.', 'laundry' => 'Laundry', 'telephone' => 'Telephone', 'minibar' => 'Minibar', 'damage' => 'Damage', 'other' => 'Misc.', ]; $vatRate = (float) ($settings['vat_rate'] ?? 12); $vatDivisor = 1 + ($vatRate / 100); $totalExtras = $charges->sum('amount'); $totalChargesGross = (float) $reservation->amount + $totalExtras; // Senior/PWD statutory discount (RA 9994 / RA 10754): the discounted guest's // share is VAT-exempt, so it is segregated out of the VATable base before the // ÷(1+VAT) split. vatBreakdown() is shared with the show page + BIR VAT book. $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($totalChargesGross); $exemptSale = $vat['exempt']; $subtotalPreVat = $vat['vatableNet']; $vatAmount = $vat['outputVat']; $totalPaid = $payments->sum('amount'); $balance = max(0, $totalChargesGross - $totalPaid); $statusLabel = [ 'pending' => 'Pending', 'confirmed' => 'Confirmed', 'checked_in' => 'Checked In', 'checked_out' => 'Checked Out', 'cancelled' => 'Cancelled', 'no_show' => 'No Show', ]; @endphp
{{ $settings['property_address'] }}
@endif @if(!empty($settings['property_city'])){{ $settings['property_city'] }}
@endif @if(!empty($settings['property_phone']))Tel: {{ $settings['property_phone'] }}
@endif @if(!empty($settings['property_email'])){{ $settings['property_email'] }}
@endifGuest Folio
{{ $reservation->booking_no }}
Printed: {{ now()->format('M j, Y g:i A') }}
@if(!empty($settings['tin']))TIN: {{ $settings['tin'] }}
@endifGuest
{{ $reservation->guest_name }}
Contact
{{ $reservation->guest_phone }}
@if($reservation->guest_email){{ $reservation->guest_email }}
@endifRoom
{{ $reservation->room_no }} — {{ $reservation->room_type }}
Status
{{ $statusLabel[$reservation->status] ?? $reservation->status }}
Check-in
{{ $reservation->check_in->format('l, F j, Y') }}
Check-out
{{ $reservation->check_out->format('l, F j, Y') }}
Duration
{{ $reservation->nights }} Night{{ $reservation->nights > 1 ? 's' : '' }}
Guests
{{ $reservation->pax }} Pax
Charges
| Date | Description | Amount |
|---|---|---|
| {{ $reservation->check_in->format('M j') }} |
Room {{ $reservation->room_no }} — Accommodation {{ $reservation->nights }} night{{ $reservation->nights > 1 ? 's' : '' }} @ ₱{{ number_format($reservation->rate, 2) }}/night · {{ $reservation->room_type }} |
₱{{ number_format($roomGross, 2) }} |
|
Less: {{ $discLabel }} Discount 20% statutory discount, 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) }} | |
| {{ $ch->charge_date->format('M j') }} |
{{ $ch->description }} @if($ch->fromPos()) POS #{{ $ch->pos_transaction_id }} @endif {{ $catLabels[$ch->category] ?? $ch->category }} @if($ch->quantity > 1) · Qty {{ $ch->quantity }} @endif |
₱{{ number_format($ch->amount, 2) }} |
| No extra charges. | ||
| VATable Sales (excl. VAT {{ $vatRate }}%) | ₱{{ number_format($subtotalPreVat, 2) }} | |
| VAT ({{ $vatRate }}%) | ₱{{ number_format($vatAmount, 2) }} | |
| VAT-Exempt Sales | ₱{{ number_format($exemptSale, 2) }} | |
| Total | ₱{{ number_format($totalChargesGross, 2) }} | |
Payments
@if($payments->isNotEmpty())| Date | Method | OR No. | Reference | Amount |
|---|---|---|---|---|
| {{ $pmt->payment_date->format('M j, Y') }} | {{ $pmt->method }} | {{ $pmt->or_number ?? '—' }} | {{ $pmt->reference ?? '—' }} | ₱{{ number_format($pmt->amount, 2) }} |
| Total Paid | ₱{{ number_format($totalPaid, 2) }} | |||
No payments recorded.
@endif{{ $balance > 0 ? 'Balance Due' : 'Account Settled' }}
@if($balance <= 0)Thank you — payment received in full.
@elseAmount remaining to be collected.
@endif₱{{ number_format($balance, 2) }}
Guest Signature / Date
{{ $reservation->guest_name }}
Authorized Signatory / Date
{{ $settings['property_name'] ?? '' }}
{{ $settings['bir_registered_name'] ?? ($settings['property_name'] ?? '') }} @if(!empty($settings['tin'])) — TIN {{ $settings['tin'] }} @endif @if(!empty($settings['or_prefix'])) — OR Prefix: {{ $settings['or_prefix'] }} @endif
NXT-ePMS — This is not an official receipt unless stamped and signed.