CLIENT INFORMATION
Name:
{{ $billing->client->name }}
Account:
{{ $billing->client->account_number }}
Meter:
{{ $billing->client->meter_number ?? 'N/A' }}
Address:
{{ $billing->client->full_address ?? '' }}
BILLING DETAILS
Billing Date:
{{ $billing->billing_date->format('M d, Y') }}
Due Date:
{{ $billing->due_date->format('M d, Y') }}
@if ($billing->disconnection_date)
Disconnection:
{{ $billing->disconnection_date->format('M d, Y') }}
@endif
METER READING
From:
{{ number_format($billing->previous_reading, 2) }} cu.m
To:
{{ number_format($billing->current_reading, 2) }} cu.m
Units:
{{ number_format($billing->units_consumed, 2) }} cu.m
@php
$cur = $settings?->currency ?? '₱';
$previousLines = $statement['previousLines'] ?? collect();
$previousBalance = $statement['previousBalance'] ?? 0;
$totalDue = $statement['totalOutstanding'] ?? (float) $billing->balance;
@endphp
{{-- Previous unpaid billings are itemised first, then carried into the
single TOTAL DUE below together with this reading's charges. --}}
@if ($previousLines->count() > 0)
PREVIOUS UNPAID BILLINGS
@foreach ($previousLines as $line)
{{ $line['billing_number'] }}
{{ $line['billing_period'] }}
Due {{ $line['due_date'] }}
{{ $cur }} {{ number_format($line['balance'], 2) }}
@if ($line['amount_paid'] > 0)
Paid
{{ $cur }} {{ number_format($line['amount_paid'], 2) }} of {{ number_format($line['total_amount_due'], 2) }}
@endif
@endforeach
Previous Balance ({{ $previousLines->count() }})
{{ $cur }} {{ number_format($previousBalance, 2) }}
@endif
CHARGES
Subtotal (this reading)
{{ $cur }} {{ number_format($billing->subtotal, 2) }}
@if ($billing->tax > 0)
Tax
{{ $cur }} {{ number_format($billing->tax, 2) }}
@endif
@if ($billing->other_charges > 0)
Other Charges
{{ $cur }} {{ number_format($billing->other_charges, 2) }}
@endif
@if ($billing->penalties > 0)
Penalties
{{ $cur }} {{ number_format($billing->penalties, 2) }}
@endif
@if ($billing->amount_paid > 0)
Less: Paid on This Bill
- {{ $cur }} {{ number_format($billing->amount_paid, 2) }}
@endif
@if ($previousBalance > 0)
Add: Previous Balance
{{ $cur }} {{ number_format($previousBalance, 2) }}
@endif
TOTAL DUE:
{{ $cur }} {{ number_format($totalDue, 2) }}
@if (($statement['unpaidCount'] ?? 0) > 1)
covers {{ $statement['unpaidCount'] }} unpaid billing/s
@endif
@if (($projectedLateFee ?? 0) > 0)
Pay on/before {{ $billing->due_date->format('M d, Y') }}
{{ $cur }} {{ number_format($totalDue, 2) }}
AFTER DUE DATE:
{{ $cur }} {{ number_format($totalDue + $projectedLateFee, 2) }}
(includes {{ $cur }} {{ number_format($projectedLateFee, 2) }} late payment fee)
@endif
Status: {{ ucfirst($billing->status) }}
@if($meterReader || $paymentProcessor)
STAFF INFORMATION
@if($meterReader)
Meter Reader:
{{ $meterReader->name }}
@endif
@if($paymentProcessor)
Payment Processor:
{{ $paymentProcessor->name }}
@endif
@endif
@if($qrCode)
@endif
@if ($settings?->billing_footer_text)
{{ $settings->billing_footer_text }}
@endif