@extends('layouts.pdf.base') @section('pdf-title', 'AR Aging Report') @section('pdf-subtitle') As of {{ \Carbon\Carbon::today()->format('d M Y') }} @endsection @section('pdf-content')
| # | Customer | Ref | Due Date | Current | 1–30 | 31–60 | 61–90 | >90 | Total |
|---|---|---|---|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $r->party }} | {{ $r->reference }} | {{ $r->due_date }} | {{ number_format($r->current, 2) }} | {{ number_format($r->b1, 2) }} | {{ number_format($r->b2, 2) }} | {{ number_format($r->b3, 2) }} | {{ number_format($r->b4, 2) }} | {{ number_format($r->total, 2) }} |
| Grand Total | {{ number_format($tot['current'], 2) }} | {{ number_format($tot['b1'], 2) }} | {{ number_format($tot['b2'], 2) }} | {{ number_format($tot['b3'], 2) }} | {{ number_format($tot['b4'], 2) }} | {{ number_format($tot['total'], 2) }} | |||