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

REPORTE DE VENTAS HISTÓRICAS | {{ $empresa->name }}

Total Ventas: {{ $ventas->count() }}
Total Pendiente: S/ {{ number_format($ventas->sum('monto_pendiente'), 2) }}
Generado: {{ now()->format('d/m/Y H:i:s') }}

DETALLE DE VENTAS HISTÓRICAS

@php $index = 1; @endphp @forelse($ventas as $venta) @empty @endforelse
Cliente Fecha Venta Serie Monto Total Monto Recibido Monto Pendiente
{{ $index++ }} {{ $venta->cliente->razon_social }} {{ \Carbon\Carbon::parse($venta->fecha_venta)->format('d/m/Y') }} {{ $venta->serie_venta }} S/ {{ number_format($venta->monto_total, 2) }} S/ {{ number_format($venta->monto_recibido, 2) }} S/ {{ number_format($venta->monto_pendiente, 2) }}
No hay ventas históricas registradas
TOTALES: S/ {{ number_format($ventas->sum('monto_total'), 2) }} S/ {{ number_format($ventas->sum('monto_recibido'), 2) }} S/ {{ number_format($ventas->sum('monto_pendiente'), 2) }}