@extends('layouts.app') @section('title', 'Receivables Report') @section('content')
Unpaid and partially paid invoices by customer.
| Customer Name | Unpaid Invoices | Balance Due |
|---|---|---|
|
{{ $customer->name }}
{{ $customer->company_name }}
|
@php $lastInvoice = $customer->invoices->first(); @endphp
{{ $customer->invoices->count() }}
Last: {{ $lastInvoice ? date('d M Y', strtotime($lastInvoice->invoice_date)) : 'N/A' }}
|
{{ formatCurrency($customer->invoices->sum('pending_amount')) }} |
| No pending receivables found. | ||