@if($settings && $settings->hotel_logo) @endif
@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') }}
@if($invoice->booking && $invoice->booking->roomServices && $invoice->booking->roomServices->count() > 0) @foreach($invoice->booking->roomServices as $service) @endforeach @endif
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, ',', '.') }}
@if($invoice->services_total > 0)
Services Total: Rp {{ number_format($invoice->services_total, 0, ',', '.') }}
@endif @if(($invoice->discount_amount ?? 0) > 0)
Discount: - Rp {{ number_format($invoice->discount_amount, 0, ',', '.') }}
@endif
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, ',', '.') }}
@php($dpp = max(0, ($invoice->subtotal ?? 0) + ($invoice->services_total ?? 0) - ($invoice->discount_amount ?? 0)))
DPP (Tax Base): Rp {{ number_format($dpp, 0, ',', '.') }}
@if($invoice->tax_amount > 0)
Tax ({{ (int) \App\Models\Settings::get('tax_rate', 0) }}%): Rp {{ number_format($invoice->tax_amount, 0, ',', '.') }}
@endif
TOTAL: Rp {{ number_format($invoice->total_amount, 0, ',', '.') }}
@if($invoice->paymentChannel || $invoice->paid_at)
Payment Information:
@if($invoice->paymentChannel)
Payment Method: {{ $invoice->paymentChannel->name }}
@if($invoice->paymentChannel->description)
{{ $invoice->paymentChannel->description }}
@endif @if(is_array($invoice->paymentChannel->settings) && count($invoice->paymentChannel->settings) > 0)
@php($pairs = []) @foreach($invoice->paymentChannel->settings as $key => $val) @php($pairs[] = '' . e(ucwords(str_replace('_', ' ', $key))) . ': ' . e($val)) @endforeach {!! implode('  |  ', $pairs) !!}
@endif @endif @if($invoice->paid_at)
Payment Date: {{ $invoice->paid_at->format('d F Y, H:i') }} WIB
✓ PAID
@else
⚠ UNPAID
@endif
@endif @if($invoice->notes)
Special Requests / Notes:
{{ $invoice->notes }}
@endif