@extends('layouts.print') @section('title', 'Senior/PWD Discount Register — ' . \Carbon\Carbon::parse($from)->format('M j') . '–' . \Carbon\Carbon::parse($to)->format('M j, Y')) @section('content') @php $propName = \App\Models\Setting::get('property_name', config('app.name', 'Parkview Hotel')); $periodLabel = \Carbon\Carbon::parse($from)->format('M j') . ' – ' . \Carbon\Carbon::parse($to)->format('M j, Y'); @endphp
@include('reports.print._letterhead', [ 'reportTitle' => 'Senior/PWD Discount Register', 'periodLabel' => $periodLabel, 'backUrl' => route('reports.discounts', ['from' => $from, 'to' => $to]), ])
@foreach([ ['Total Discount', '₱' . number_format($totalDiscount, 2), 'claimable deduction'], ['Senior Citizen', $seniorCount, 'stays'], ['PWD', $pwdCount, 'stays'], ['Discount Rate', number_format($discountPct, 1) . '%', 'of gross'], ] as [$label, $value, $sub])

{{ $label }}

{{ $value }}

{{ $sub }}

@endforeach

Discount Register — RA 9994 / RA 10754

@if($rows->isEmpty())

No Senior/PWD discounts granted in this period.

@else @foreach($rows as $row) @endforeach
Guest Booking # Arrival Type ID No. Gross Discount Net
{{ $row['guest_name'] }} {{ $row['booking_no'] }} {{ $row['check_in']->format('M j, Y') }} {{ $row['type'] === 'senior' ? 'Senior' : 'PWD' }} {{ $row['id_number'] ?: '—' }} ₱{{ number_format($row['gross'], 2) }} ₱{{ number_format($row['discount'], 2) }} ₱{{ number_format($row['net'], 2) }}
Total ₱{{ number_format($totalGross, 2) }} ₱{{ number_format($totalDiscount, 2) }} ₱{{ number_format($totalGross - $totalDiscount, 2) }}
@endif
{{ $propName }} · Senior/PWD Discount Register Printed {{ now()->format('M j, Y g:i A') }}
@endsection