@include('pdf.partials.styles-unified')
Total de Ventas Pendientes: {{ $records->count() }}
@php $totalGeneral = $records->sum('monto_total'); $totalPagado = $records->sum('monto_recibido'); $totalPendiente = $records->sum('monto_pendiente'); @endphpMonto Total: S/ {{ number_format($totalGeneral, 2) }}
Total Pagado: S/ {{ number_format($totalPagado, 2) }}
Total por Cobrar: S/ {{ number_format($totalPendiente, 2) }}
Generado: {{ now()->format('d/m/Y H:i:s') }}
| N° | Cliente | Fecha Venta | Serie | Total | Pagado | Pendiente | Estado |
|---|---|---|---|---|---|---|---|
| {{ $index++ }} | {{ $item->cliente_razon_social }} | {{ \Carbon\Carbon::parse($item->fecha_venta)->format('d/m/Y') }} | {{ $item->serie_venta }} | S/ {{ number_format($item->monto_total, 2) }} | S/ {{ number_format($item->monto_recibido, 2) }} | S/ {{ number_format($item->monto_pendiente, 2) }} | @if($item->monto_pendiente > 0) PENDIENTE @else PAGADO @endif |
| No hay cuentas por cobrar | |||||||
| TOTALES: | S/ {{ number_format($totalGeneral, 2) }} | S/ {{ number_format($totalPagado, 2) }} | S/ {{ number_format($totalPendiente, 2) }} | ||||