{{-- Header --}}
Supplier Outstanding Report
Outstanding = Purchases - Payments - Advances
{{-- Filters --}}
@php
$sumPurchase = 0; $sumPay=0; $sumAdv=0; $sumOut=0;
foreach($rows as $r){
$sumPurchase += (float)$r->total_purchase;
$sumPay += (float)$r->total_payment;
$sumAdv += (float)$r->total_advance;
$sumOut += (float)$r->outstanding;
}
@endphp
{{-- KPI Cards --}}
{{-- Table --}}
Total Purchases
{{ number_format($sumPurchase,2) }}
Total Payments
{{ number_format($sumPay,2) }}
Total Advances
{{ number_format($sumAdv,2) }}
Outstanding
{{ number_format($sumOut,2) }}
| # | Supplier | Currency | Purchases | Payments | Advances | Outstanding |
|---|---|---|---|---|---|---|
| {{ $i+1 }} |
{{ $r->supplier_name }}
Supplier ID: {{ $r->supplier_id }}
|
{{ $r->currency_title }} | {{ number_format((float)$r->total_purchase,2) }} | {{ number_format((float)$r->total_payment,2) }} | {{ number_format((float)$r->total_advance,2) }} | {{ number_format((float)$r->outstanding,2) }} |
| No data found for selected filters. | ||||||
| Total | {{ number_format($sumPurchase,2) }} | {{ number_format($sumPay,2) }} | {{ number_format($sumAdv,2) }} | {{ number_format($sumOut,2) }} | ||