@extends('layouts.app') @section('title', 'Customers Due Report') @section('breadcrumb') @endsection @section('content')
{{ $customers->total() }}
Customers with Due
৳{{ number_format($totalDue,0) }}
Total Receivable
@forelse($customers as $c) @empty @endforelse
CustomerPhonePending InvoicesOldest InvoiceTotal DueAction
{{ $c->name }} {{ $c->phone ?? '—' }} @foreach($c->sales->take(3) as $s) {{ $s->invoice_no }}: ৳{{ number_format($s->due_amount,0) }} @endforeach @if($c->sales->count() > 3)+{{ $c->sales->count()-3 }} more@endif {{ $c->sales->first()?->sale_date?->format('d M Y') ?? '—' }} ৳{{ number_format($c->current_due,2) }} Collect

All customers are fully paid up!

Total Receivable: ৳{{ number_format($totalDue,2) }}
@if($customers->hasPages())@endif
@endsection