@extends('layouts.app') @section('title', 'Suppliers Due Report') @section('breadcrumb')
All suppliers with outstanding payables
| Supplier | Phone | Pending Invoices | Oldest Invoice | Total Due | Action |
|---|---|---|---|---|---|
| {{ $s->name }} | {{ $s->phone ?? '—' }} | @foreach($s->purchases->take(3) as $pur) {{ $pur->invoice_no }}: ৳{{ number_format($pur->due_amount,0) }} @endforeach @if($s->purchases->count() > 3)+{{ $s->purchases->count()-3 }} more@endif | {{ $s->purchases->first()?->purchase_date?->format('d M Y') ?? '—' }} | ৳{{ number_format($s->current_due,2) }} | Pay |
All suppliers are fully paid! | |||||
| Total Payable: | ৳{{ number_format($totalDue,2) }} | ||||