@extends('layouts.app') @section('title', 'Receivables Report') @section('content')

Receivables Report

Unpaid and partially paid invoices by customer.

Total Outstanding Receivables

{{ formatCurrency($totalReceivable) }}

@forelse($customers as $customer) @empty @endforelse
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.
@endsection