@extends('layouts.app') @php $eyebrow = 'Reports'; $pageTitle = 'Arrears'; @endphp @section('content')
Invoices with an outstanding balance, oldest overdue first
| Invoice # | Tenant | Due Date | Total | Paid | Balance | Days Overdue | Status |
|---|---|---|---|---|---|---|---|
| {{ $invoice->invoice_number ?? '—' }} | {{ $invoice->tenant->full_name ?? '—' }} | {{ $invoice->due_date?->format('d M Y') ?? '—' }} | ${{ number_format((float) $invoice->amount, 2) }} | ${{ number_format((float) $invoice->amount_paid, 2) }} | ${{ number_format((float) $invoice->balance, 2) }} | @if($invoice->daysOverdue > 0) {{ $invoice->daysOverdue }} days @else Not yet due @endif | @php $map = ['unpaid' => 'st-orange', 'partially paid' => 'st-blue', 'overdue' => 'st-red', 'sent' => 'st-gray']; @endphp {{ $invoice->status }} |
| No outstanding balances — everyone's paid up. | |||||||
| Total outstanding | ${{ number_format((float) $totalOutstanding, 2) }} | ||||||