@extends('master.app') @section('title','Supplier Aging') @section('body')
{{-- Header --}}
Supplier Aging Report
Based on unpaid bills (balance > 0) grouped by age as of selected date.
Back
{{-- Filters --}}
{{-- Table --}}
@php $t1=0;$t2=0;$t3=0;$t4=0;$tAll=0; @endphp @forelse($rows as $i=>$r) @php $t1 += (float)$r->d0_30; $t2 += (float)$r->d31_60; $t3 += (float)$r->d61_90; $t4 += (float)$r->d90_plus; $tAll += (float)$r->total_outstanding; @endphp @empty @endforelse @if(count($rows)>0) @endif
# Supplier Currency 0 - 30 31 - 60 61 - 90 90+ Total
{{ $i+1 }} {{ $r->supplier_name }} {{ $r->currency_title }} {{ number_format((float)$r->d0_30,2) }} {{ number_format((float)$r->d31_60,2) }} {{ number_format((float)$r->d61_90,2) }} {{ number_format((float)$r->d90_plus,2) }} {{ number_format((float)$r->total_outstanding,2) }}
No unpaid bills found.
Total {{ number_format($t1,2) }} {{ number_format($t2,2) }} {{ number_format($t3,2) }} {{ number_format($t4,2) }} {{ number_format($tAll,2) }}
@endsection @section('pageJs') @endsection