@extends('master.app') @section('title','Accounts Payable Summary') @section('body') @php $fmt = fn($n)=> number_format((float)$n,2); @endphp @push('styles') @endpush
Accounts Payable Summary
Bills - Payments - Advances (Multi Currency)
{{-- Filters --}}
{{-- Table --}}
@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 @empty @endforelse @if(count($rows)) @endif
Supplier Currency Bills Bills Total Payments Advances Outstanding Outstanding (Base)
{{ $supName }} {{ $curName }} {{ $r['bill_count'] }} {{ $fmt($r['bill_total']) }} {{ $fmt($r['payment_total']) }} {{ $fmt($r['advance_total']) }} {{ $fmt($r['outstanding']) }} {{ $fmt($r['outstanding_base']) }}
No data found.
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) }}
@endsection