@extends('layouts.app') @section('title', 'Suppliers Due Report') @section('breadcrumb') @endsection @section('content')
{{ $suppliers->total() }}
Suppliers with Due
৳{{ number_format($totalDue,0) }}
Total Payable
@forelse($suppliers as $s) @empty @endforelse
SupplierPhonePending InvoicesOldest InvoiceTotal DueAction
{{ $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) }}
@if($suppliers->hasPages())@endif
@endsection