@extends('layouts.app') @section('title', 'Unpaid Report') @section('content') @php $cur = ($filters['currency'] ?? 'PHP') === 'PHP' ? '₱' : $filters['currency'] . ' '; $bucketColors = [ 'Current' => 'secondary', '1-30 Days' => 'info', '31-60 Days' => 'warning', '61-90 Days' => 'orange', 'Over 90 Days' => 'danger', ]; @endphp
| Bill # | Account | Billing Date | Due Date | Total Due | Paid | Balance | Days Overdue | Aging | Status |
|---|---|---|---|---|---|---|---|---|---|
| {{ $row['billing_number'] }} |
{{ $row['client_name'] }}
{{ $row['account_number'] }}
|
{{ $row['billing_date']?->format('M d, Y') ?? '—' }} | {{ $row['due_date']?->format('M d, Y') ?? '—' }} | {{ number_format($row['total_amount_due'], 2) }} | {{ number_format($row['amount_paid'], 2) }} | {{ $cur }}{{ number_format($row['balance'], 2) }} | {{ $row['days_overdue'] > 0 ? number_format($row['days_overdue']) : '—' }} | {{ $row['bucket'] }} | {{ ucfirst($row['status']) }} @if($row['is_disconnected']) Disconnected @elseif($row['disconnection_status'] === 'notice_sent') Notice Sent @endif |
| No unpaid bills for this period. 🎉 | |||||||||
| Total ({{ number_format($summary['bills']) }} bills) | {{ number_format($summary['billed'], 2) }} | {{ number_format($summary['paid'], 2) }} | {{ $cur }}{{ number_format($summary['balance'], 2) }} | ||||||
The date filter applies to the billing date. Use "All Time" to see every outstanding bill regardless of when it was issued.