@extends('layouts.master') @section('page_title', 'Accounts Receivable 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 Bills: {{ $receivables->count() }}
Total Outstanding
Current (0-30 days)
31-90 Days
Over 90 Days
| Aging Category | Number of Bills | Outstanding Amount | Percentage |
|---|---|---|---|
| {{ $category }} | {{ $count }} | ${{ number_format($amount, 2) }} | {{ number_format($percentage, 1) }}% |
| Total | {{ $receivables->count() }} | ${{ number_format($totalOutstanding, 2) }} | 100.0% |
| Student ID | Student Name | Class | Term | Bill Amount | Payments | Discounts | Outstanding | Days | Aging | Bill Date |
|---|---|---|---|---|---|---|---|---|---|---|
{{ $receivable->student_username }} |
{{ $receivable->student_name }} | {{ $receivable->class_name }} | {{ $receivable->term_name ?? 'N/A' }} | ${{ number_format($receivable->total_amount, 2) }} | ${{ number_format($receivable->payments_received, 2) }} | ${{ number_format($receivable->discounts_applied, 2) }} | ${{ number_format($receivable->outstanding_amount, 2) }} | {{ $receivable->days_outstanding }} | {{ $receivable->aging_category }} | {{ Carbon\Carbon::parse($receivable->bill_date)->format('M d, Y') }} |
| Grand Total | ${{ number_format($receivables->sum('outstanding_amount'), 2) }} | |||||||||