@extends('layouts.master') @section('page_title', 'Accounts Payable Report') @section('content')
As of: {{ Carbon\Carbon::parse($asOfDate)->format('M d, Y') }}
Generated: {{ Carbon\Carbon::now()->format('M d, Y g:i A') }}
Outstanding Vouchers: {{ $payables->count() }}
Total Payable
Current (0-30 days)
31-90 Days
Over 90 Days
| Aging Category | Number of Vouchers | Outstanding Amount | Percentage |
|---|---|---|---|
| {{ $category }} | {{ $count }} | ${{ number_format($amount, 2) }} | {{ number_format($percentage, 1) }}% |
| Total | {{ $payables->count() }} | ${{ number_format($totalOutstanding, 2) }} | 100.0% |
| Vendor | Outstanding Vouchers | Total Outstanding | Average Age (Days) |
|---|---|---|---|
| {{ $vendorName }} | {{ $vendorPayables->count() }} | ${{ number_format($totalAmount, 2) }} | {{ $avgAge }} |
| Voucher # | Vendor | Description | Total Amount | Payments | Outstanding | Days | Aging | Voucher Date | Due Date |
|---|---|---|---|---|---|---|---|---|---|
{{ $payable->voucher_number }} |
{{ $payable->vendor_name }} | {{ str($payable->description)->limit(50) }} | ${{ number_format($payable->amount, 2) }} | ${{ number_format($payable->payments_made, 2) }} | ${{ number_format($payable->outstanding_amount, 2) }} | {{ $payable->days_outstanding }} | {{ $payable->aging_category }} | {{ Carbon\Carbon::parse($payable->voucher_date)->format('M d, Y') }} | {{ Carbon\Carbon::parse($payable->due_date)->format('M d, Y') }} |
| Grand Total | ${{ number_format($payables->sum('outstanding_amount'), 2) }} | ||||||||