@include('pdf.partials.styles-unified')

REPORTE DE CUENTAS POR COBRAR | {{ $empresa->name }}

Total de Ventas Pendientes: {{ $records->count() }}

@php $totalGeneral = $records->sum('monto_total'); $totalPagado = $records->sum('monto_recibido'); $totalPendiente = $records->sum('monto_pendiente'); @endphp

Monto 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') }}

@php $index = 1; @endphp @forelse($records as $item) @empty @endforelse
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) }}