@extends('layouts.inspinia') @section('title', 'Aging Reports') @section('content_header', 'Aging Reports Overview') @section('breadcrumb') @endsection @section('content')
Operational aging report — not full accounting GL. Customer totals are shown in base currency (TZS) using each invoice's exchange-rate snapshot. FX gain/loss is not calculated in this report.
{{-- As-Of Date Filter --}}
Report Date
Today
@php $bucketLabels = [ 'current' => 'Current', '1_30' => '1–30 Days', '31_60' => '31–60 Days', '61_90' => '61–90 Days', '90_plus' => '90+ Days', ]; $bucketColors = [ 'current' => 'success', '1_30' => 'info', '31_60' => 'warning', '61_90' => 'orange', '90_plus' => 'danger', ]; @endphp {{-- Customer Receivables --}} @can('customer_aging.view')
Customer Receivables (Base Currency — TZS)
@foreach($bucketLabels as $key => $label)
{{ $label }} TZS {{ number_format($customerSummary[$key], 0) }}
@endforeach
Total Outstanding TZS {{ number_format($customerSummary['total'], 0) }}
@if($customerSummary['90_plus'] > 0)
TZS {{ number_format($customerSummary['90_plus'], 0) }} overdue 90+ days.
@endif
@endcan {{-- Supplier Payables --}} @can('supplier_aging.view')
Supplier Payables (TZS)
@foreach($bucketLabels as $key => $label)
{{ $label }} TZS {{ number_format($supplierSummary[$key], 0) }}
@endforeach
Total Payable TZS {{ number_format($supplierSummary['total'], 0) }}
@if($supplierSummary['90_plus'] > 0)
TZS {{ number_format($supplierSummary['90_plus'], 0) }} overdue 90+ days.
@endif
@endcan {{-- Quick Links --}}
Quick Links
@can('customer_aging.view') @endcan @can('supplier_aging.view') @endcan @if(Route::has('customer-statements.index')) @endif @if(Route::has('supplier-statements.index')) @endif
@endsection