{{-- Filters --}}
{{-- Table --}}
| Supplier |
Currency |
Bills |
Bills Total |
Payments |
Advances |
Outstanding |
Outstanding (Base) |
@forelse($rows as $r)
@php
$sup = $supplierLookup[$r['supplier_id']] ?? null;
$cur = $currencyLookup[$r['currency_id']] ?? null;
$supName = $sup->name ?? ('Supplier #'.$r['supplier_id']);
$curName = $cur->title_en ?? $cur->title_ps ?? ('CUR #'.$r['currency_id']);
@endphp
| {{ $supName }} |
{{ $curName }} |
{{ $r['bill_count'] }} |
{{ $fmt($r['bill_total']) }} |
{{ $fmt($r['payment_total']) }} |
{{ $fmt($r['advance_total']) }} |
{{ $fmt($r['outstanding']) }} |
{{ $fmt($r['outstanding_base']) }} |
@empty
| No data found. |
@endforelse
@if(count($rows))
| Totals |
{{ $fmt($totals['bill_total'] ?? 0) }} |
{{ $fmt($totals['payment_total'] ?? 0) }} |
{{ $fmt($totals['advance_total'] ?? 0) }} |
{{ $fmt($totals['outstanding'] ?? 0) }} |
{{ $fmt($totals['outstanding_base'] ?? 0) }} |
@endif