LAPORAN TAGIHAN

Hotel Management System

Digenerate pada: {{ $filterInfo['generated_at'] }}

Filter Laporan

@if($filterInfo['from_date'])
Dari Tanggal: {{ \Carbon\Carbon::parse($filterInfo['from_date'])->format('d/m/Y') }}
@endif @if($filterInfo['to_date'])
Sampai Tanggal: {{ \Carbon\Carbon::parse($filterInfo['to_date'])->format('d/m/Y') }}
@endif @if($filterInfo['status'])
Status: {{ ucfirst($filterInfo['status']) }}
@endif @if($filterInfo['hotel_id'])
Hotel ID: {{ $filterInfo['hotel_id'] }}
@endif
Tipe Laporan: {{ ucfirst($filterInfo['report_type']) }}

Ringkasan Statistik

Total Invoice

{{ number_format($reportData['total_invoices']) }}

Total Amount

Rp {{ number_format($reportData['total_amount'], 0, ',', '.') }}

Terbayar

Rp {{ number_format($reportData['paid_amount'], 0, ',', '.') }}

Pending

Rp {{ number_format($reportData['pending_amount'], 0, ',', '.') }}
@if(isset($reportData['status_breakdown']))

Breakdown Status

@foreach($reportData['status_breakdown'] as $status => $data) @endforeach
Status Jumlah Total Amount
{{ ucfirst($status) }} {{ number_format($data['count']) }} Rp {{ number_format($data['amount'], 0, ',', '.') }}
@endif @if(isset($reportData['channel_breakdown']) && count($reportData['channel_breakdown']) > 0)

Breakdown Channel Pembayaran

@foreach($reportData['channel_breakdown'] as $channel) @endforeach
Channel Jumlah Invoice Total Amount
{{ $channel['name'] }} {{ number_format($channel['count']) }} Rp {{ number_format($channel['amount'], 0, ',', '.') }}
@endif @if(isset($reportData['monthly_data']) && count($reportData['monthly_data']) > 0)

Data Bulanan

@foreach($reportData['monthly_data'] as $month => $data) @endforeach
Bulan Jumlah Total Terbayar Pending Rata-rata
{{ \Carbon\Carbon::createFromFormat('Y-m', $month)->format('F Y') }} {{ number_format($data['total_invoices']) }} Rp {{ number_format($data['total_amount'], 0, ',', '.') }} Rp {{ number_format($data['paid_amount'], 0, ',', '.') }} Rp {{ number_format($data['pending_amount'], 0, ',', '.') }} Rp {{ number_format($data['average_amount'], 0, ',', '.') }}
@endif @if(isset($reportData['detailed_rows']) && count($reportData['detailed_rows']) > 0)

Detail Invoice

@foreach($reportData['detailed_rows'] as $row) @endforeach
No. Invoice Tanggal Booking Tamu Hotel Sumber Booking Kategori Item Unit/Kamar Qty Status Tanggal Pembayaran Nominal
{{ $row['invoice_number'] }} {{ $row['report_date']->format('d/m/Y') }} {{ $row['booking_code'] ?? '-' }} {{ $row['guest_name'] ?? '-' }} {{ $row['hotel_name'] ?? '-' }} {{ $row['booking_source'] ?? '-' }} {{ $row['category'] ?? '-' }} {{ $row['item_name'] ?? '-' }} {{ $row['room_label'] ?? '-' }} {{ number_format($row['quantity'] ?? 0, 0, ',', '.') }} {{ ucfirst($row['status']) }} {{ !empty($row['paid_at']) ? $row['paid_at']->format('d/m/Y H:i') : '-' }} Rp {{ number_format($row['line_amount'] ?? 0, 0, ',', '.') }}
@endif