{{-- New-Unity ERP | Finance/Resources/Views/cxc/statement_pdf.blade.php | v2.0 | 27/07/2026 --}} {{-- v2.0 — Resumen de antigüedad al pie, historial de pagos por factura, footer con vigencia. --}} {{-- v1.0 — Estado de cuenta CxC para DomPDF: encabezado, tabla de antigüedad y totales. --}}
{{-- Encabezado --}}| {{ __('finance.col-folio') }} | {{ __('finance.col-date') }} | {{ __('finance.col-due') }} | {{ __('finance.col-total') }} | {{ __('finance.col-paid') }} | {{ __('finance.col-balance') }} | {{ __('finance.days-overdue') }} |
|---|---|---|---|---|---|---|
| {{ $section['label'] }} | ||||||
| {{ $folio }} | {{ $inv->fecha_emision ? \Carbon\Carbon::parse($inv->fecha_emision)->format('d/m/Y') : '—' }} | {{ $inv->expiration_date ? \Carbon\Carbon::parse($inv->expiration_date)->format('d/m/Y') : '—' }} | ${{ number_format($inv->total, 2) }} | ${{ number_format($inv->cxc_paid_amount, 2) }} | ${{ number_format($bal, 2) }} | @if($daysOv > 0) {{ $daysOv }} @elseif($daysOv < 0) {{ abs($daysOv) }}d rest. @else hoy @endif |
| {{ __('finance.payment-history-pdf') }}: {{ $folio }} | ||||||
| {{ \App\Modules\Finance\Models\ArPayment::methodLabel($pago->payment_method) }} @if($pago->reference) — {{ $pago->reference }}@endif | {{ $pago->payment_date->format('d/m/Y') }} | -${{ number_format($pago->amount, 2) }} | ||||
| {{ __('finance.aging-total') }} {{ $section['label'] }} | ${{ number_format($sectionTotal, 2) }} | |||||
| {{ __('finance.aging-total') }} | ${{ number_format($grandTotal, 2) }} | |||||
| {{ __('finance.aging-summary-pdf') }} | {{ __('finance.col-balance') }} |
|---|---|
| {{ __('finance.aging-current') }} | ${{ number_format($agingSummary['current'], 2) }} |
| {{ __('finance.aging-0-30') }} | ${{ number_format($agingSummary['0-30'], 2) }} |
| {{ __('finance.aging-31-60') }} | ${{ number_format($agingSummary['31-60'], 2) }} |
| {{ __('finance.aging-61-90') }} | ${{ number_format($agingSummary['61-90'], 2) }} |
| {{ __('finance.aging-90plus') }} | ${{ number_format($agingSummary['90+'], 2) }} |
| {{ __('finance.aging-total') }} | ${{ number_format($grandTotal, 2) }} |