@extends('layouts.app') @section('title', 'Envejecimiento de Cuentas por Pagar') @section('content')
Total General
Al Día
1-30 Días
31-60 Días
61-90 Días
+90 Días
| Proveedor | Cuenta # | Factura # | Fecha Factura | Fecha Vencimiento | Días Vencidos | Saldo Total | Al Día | 1-30 Días | 31-60 Días | 61-90 Días | +90 Días |
|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{ $item['supplier']->business_name ?? 'N/A' }}
@if($item['supplier']->tax_id)
RIF: {{ $item['supplier']->tax_id }} @endif |
{{ $item['account_number'] }} | {{ $item['invoice_number'] }} | {{ $item['invoice_date'] ? \Carbon\Carbon::parse($item['invoice_date'])->format('d/m/Y') : 'N/A' }} | {{ $item['due_date'] ? \Carbon\Carbon::parse($item['due_date'])->format('d/m/Y') : 'N/A' }} | @if($item['days_past_due'] > 0) {{ number_format($item['days_past_due'], 0) }} @else Al día @endif | ${{ number_format($item['balance'], 2) }} | {{ $item['current'] > 0 ? '$' . number_format($item['current'], 2) : '-' }} | {{ $item['days_30'] > 0 ? '$' . number_format($item['days_30'], 2) : '-' }} | {{ $item['days_60'] > 0 ? '$' . number_format($item['days_60'], 2) : '-' }} | {{ $item['days_90'] > 0 ? '$' . number_format($item['days_90'], 2) : '-' }} | {{ $item['over_90'] > 0 ? '$' . number_format($item['over_90'], 2) : '-' }} |
| No se encontraron cuentas por pagar pendientes. | |||||||||||
| Totales: | ${{ number_format($totals['total_balance'], 2) }} | ${{ number_format($totals['total_current'], 2) }} | ${{ number_format($totals['total_days_30'], 2) }} | ${{ number_format($totals['total_days_60'], 2) }} | ${{ number_format($totals['total_days_90'], 2) }} | ${{ number_format($totals['total_over_90'], 2) }} | |||||