|
@if($settings && $settings->hotel_logo)
@if($settings)
{{ $settings->hotel_address }}
{{ $settings->hotel_phone }} | {{ $settings->hotel_email }}
@endif
|
INVOICE# {{ $invoice->invoice_number }}
{{ $invoice->created_at->format('d F Y') }}
@if(($invoice->non_refundable ?? false) || (!empty($invoice->notes) && preg_match('/non[- ]?refund/i', $invoice->notes)))
NON-REFUNDABLE
@endif
|
|
Bill To:
{{ $invoice->guest_name }}
{{ $invoice->guest_email }}
@if($invoice->guest_phone)
{{ $invoice->guest_phone }}
@endif
|
Booking Details:
Booking ID: {{ $invoice->booking->booking_code ?? 'N/A' }}
Check-in: {{ $invoice->check_in_date->format('d/m/Y') }}
Check-out: {{ $invoice->check_out_date->format('d/m/Y') }}
Duration: {{ $invoice->nights }} {{ $invoice->nights > 1 ? 'nights' : 'night' }}
@if($invoice->paymentChannel)
Payment Method: {{ $invoice->paymentChannel->name }}
@endif
@if($invoice->paid_at)
Paid At: {{ $invoice->paid_at->format('d/m/Y H:i') }}
@endif
{{ ucfirst($invoice->status ?? 'Draft') }}
|
| Description | {{ ($invoice->booking->booking_type ?? 'room') === 'ballroom' ? 'Ballroom' : 'Room' }} | {{ ($invoice->booking->booking_type ?? 'room') === 'ballroom' ? 'Days' : 'Nights' }} | Rate | Amount |
|---|---|---|---|---|
| @if(($invoice->booking->booking_type ?? 'room') === 'ballroom') {{ $invoice->room_type ?? 'Ballroom' }} @else {{ ($invoice->booking->room->roomType->name ?? $invoice->room_type) }} Room @endif | @if(($invoice->booking->booking_type ?? 'room') === 'ballroom') {{ $invoice->booking->bookable->name ?? $invoice->booking->unit_number ?? '-' }} @else {{ $invoice->room_number }} @endif | {{ $invoice->nights }} | Rp {{ number_format($invoice->room_rate, 0, ',', '.') }} | Rp {{ number_format($invoice->subtotal, 0, ',', '.') }} |
| {{ $service->service_name }} | - | {{ $service->quantity }} | Rp {{ number_format($service->unit_price, 0, ',', '.') }} | Rp {{ number_format($service->total_price, 0, ',', '.') }} |
| Subtotal: | Rp {{ number_format($invoice->subtotal, 0, ',', '.') }} |
| Services Total: | Rp {{ number_format($invoice->services_total, 0, ',', '.') }} |
| Discount: | - Rp {{ number_format($invoice->discount_amount, 0, ',', '.') }} |
| Total (Include Tax): | Rp {{ number_format($invoice->total_amount ?? (max(0, ($invoice->subtotal ?? 0) + ($invoice->services_total ?? 0) - ($invoice->discount_amount ?? 0)) + ($invoice->tax_amount ?? 0)), 0, ',', '.') }} |
| DPP (Tax Base): | Rp {{ number_format($dpp, 0, ',', '.') }} |
| Tax ({{ (int) \App\Models\Settings::get('tax_rate', 0) }}%): | Rp {{ number_format($invoice->tax_amount, 0, ',', '.') }} |
| TOTAL: | Rp {{ number_format($invoice->total_amount, 0, ',', '.') }} |