@include('pdf.partials.styles-unified')
Período: {{ $fechaInicio }} - {{ $fechaFin }}
Total de cajas: {{ $cajas->count() }}
Cajas cerradas: {{ $totales['cajas_cerradas'] }} | Cajas abiertas: {{ $totales['cajas_abiertas'] }}
Generado: {{ now()->format('d/m/Y H:i:s') }}
| ID | Usuario | Fecha Apertura | Fecha Cierre | Monto Apertura | Ingresos | Egresos | Pagos | Calculado | Monto Cierre | Dif. | Estado |
|---|---|---|---|---|---|---|---|---|---|---|---|
| #{{ $caja->id }} | {{ $caja->usuario->name ?? 'N/A' }} | {{ $caja->fecha_apertura ? \Carbon\Carbon::parse($caja->fecha_apertura)->format('d/m/Y H:i') : 'N/A' }} | @if($caja->fecha_cierre) {{ \Carbon\Carbon::parse($caja->fecha_cierre)->format('d/m/Y H:i') }} @else Sin cerrar @endif | S/ {{ number_format($caja->monto_apertura, 2) }} | S/ {{ number_format($caja->total_ingresos, 2) }} | S/ {{ number_format($caja->total_egresos, 2) }} | S/ {{ number_format($caja->total_pagos, 2) }} | S/ {{ number_format($caja->monto_calculado, 2) }} | @if($caja->monto_cierre) S/ {{ number_format($caja->monto_cierre, 2) }} @else - @endif | @if($caja->diferencia !== null) @if($caja->diferencia == 0) S/ 0.00 @elseif($caja->diferencia > 0) +S/ {{ number_format($caja->diferencia, 2) }} @else S/ {{ number_format($caja->diferencia, 2) }} @endif @else - @endif | @if($caja->estado_caja == 1) Abierta @else Cerrada @endif |
| No se encontraron cajas | |||||||||||
| TOTALES: | S/ {{ number_format($totales['total_aperturas'], 2) }} | S/ {{ number_format($totales['total_ingresos'], 2) }} | S/ {{ number_format($totales['total_egresos'], 2) }} | S/ {{ number_format($totales['total_pagos'], 2) }} | S/ {{ number_format($totales['total_calculado'], 2) }} | S/ {{ number_format($totales['total_cierres'], 2) }} | |||||
Fecha Apertura: {{ $caja->fecha_apertura ? \Carbon\Carbon::parse($caja->fecha_apertura)->format('d/m/Y H:i') : 'N/A' }}
Total Registros: {{ is_array($reports) ? count($reports) : $reports->count() }}
| N° | Cliente | Unid. | KG | Precio | Precios | Vta. Día | Deuda Ant. | Total | Abono | Saldo | Prom. |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $i++ }} | {{ $pago->cliente ?? '-' }} | {{ number_format($pago->cantidad_pollos ?? 0, 0) }} | {{ number_format($pago->peso_total_neto ?? 0, 2) }} | S/ {{ number_format($pago->precio ?? 0, 2) }} | @if(isset($pago->precios_unicos) && !empty($pago->precios_unicos)) {{ $pago->precios_unicos }} @elseif(isset($pago->precios_anteriores) && !empty($pago->precios_anteriores)) {{ $pago->precios_anteriores }} @else S/ {{ number_format($pago->precio ?? 0, 2) }} @endif | S/ {{ number_format($pago->venta_dia ?? 0, 2) }} | S/ {{ number_format($pago->deuda_anterior ?? 0, 2) }} | S/ {{ number_format($pago->total ?? 0, 2) }} | S/ {{ number_format($pago->monto_recibido ?? 0, 2) }} | S/ {{ number_format($pago->saldo_a_cobrar ?? 0, 2) }} | {{ number_format($pago->promedio ?? 0, 2) }} |
| TOTALES: | {{ number_format($totalCantidadPollos, 0) }} | {{ number_format($totalPesoNeto, 2) }} | - | - | S/ {{ number_format($totalTotalVenta, 2) }} | S/ {{ number_format($totalDeudaAnterior, 2) }} | S/ {{ number_format($total, 2) }} | S/ {{ number_format($totalMontoPagado, 2) }} | S/ {{ number_format($totalPendiente, 2) }} | {{ number_format($totalPromedio, 2) }} | |
Fecha Apertura: {{ $caja->fecha_apertura ? \Carbon\Carbon::parse($caja->fecha_apertura)->format('d/m/Y H:i') : 'N/A' }}
Monto Apertura: S/ {{ number_format($caja->monto_apertura, 2) }}
Total Movimientos: {{ $movimientosPorCaja[$caja->id]->count() }}
| N° | Cliente | Fecha | Método de Pago | Banco (Account) | N° Operación | Descripción | Monto |
|---|---|---|---|---|---|---|---|
| {{ $index++ }} | {{ $movimiento['cliente_nombre'] ?? '-' }} | {{ \Carbon\Carbon::parse($movimiento['fecha'])->format('d/m/Y H:i') }} | {{ $movimiento['metodo_pago_nombre'] ?? '-' }} | {{ $movimiento['account_nombre'] ?? '-' }} | {{ $movimiento['num_operacion'] }} | {{ $movimiento['descripcion'] }} | +S/ {{ number_format($movimiento['monto'], 2) }} |
| TOTAL INGRESOS: | S/ {{ number_format($ingresos->sum('monto'), 2) }} | ||||||
| Fecha | Referencia | N° Operación | Descripción | Monto |
|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($movimiento['fecha'])->format('d/m/Y H:i') }} | {{ $movimiento['referencia'] }} | {{ $movimiento['num_operacion'] }} | {{ $movimiento['descripcion'] }} | -S/ {{ number_format($movimiento['monto'], 2) }} |
| TOTAL EGRESOS: | S/ {{ number_format($caja->total_egresos, 2) }} | |||
| N° | Cliente | Fecha | Método de Pago | Banco | N° Operación | Descripción | Monto |
|---|---|---|---|---|---|---|---|
| {{ $indexPagos++ }} | {{ $movimiento['cliente_nombre'] ?? '-' }} | {{ \Carbon\Carbon::parse($movimiento['fecha'])->format('d/m/Y H:i') }} | {{ $movimiento['metodo_pago_nombre'] ?? '-' }} | {{ $movimiento['banco_nombre'] ?? '-' }} | {{ $movimiento['num_operacion'] }} | {{ $movimiento['descripcion'] }} | +S/ {{ number_format($movimiento['monto'], 2) }} |
| TOTAL PAGOS: | S/ {{ number_format($pagos->sum('monto'), 2) }} | ||||||
| N° | Cliente | Fecha | Método de Pago | Banco | N° Operación | Descripción | Monto |
|---|---|---|---|---|---|---|---|
| {{ $indexPagosHistoricos++ }} | {{ $movimiento['cliente_nombre'] ?? '-' }} | {{ \Carbon\Carbon::parse($movimiento['fecha'])->format('d/m/Y H:i') }} | {{ $movimiento['metodo_pago_nombre'] ?? '-' }} | {{ $movimiento['banco_nombre'] ?? '-' }} | {{ $movimiento['num_operacion'] }} | {{ $movimiento['descripcion'] }} | +S/ {{ number_format($movimiento['monto'], 2) }} |
| TOTAL PAGOS HISTÓRICOS: | S/ {{ number_format($pagosHistoricos->sum('monto'), 2) }} | ||||||
| Cuenta (Banco) | Monto Total | Cantidad de Pagos | Último Pago |
|---|---|---|---|
| {{ $resumen->banco_name }} | S/ {{ number_format($resumen->monto_total, 2) }} | {{ $resumen->cantidad_pagos }} pagos | {{ $resumen->ultimo_pago }} |
| TOTALES: | S/ {{ number_format($resumenPorCuentas->sum('monto_total'), 2) }} | {{ $resumenPorCuentas->sum('cantidad_pagos') }} pagos |
| Total Pagos: | +S/ {{ number_format($totalPagosResumen, 2) }} |
| Total Ingresos: | S/ {{ number_format($totalIngresosResumen, 2) }} |
| Total: | S/ {{ number_format($totalResumenPagos, 2) }} |
| Fecha | Referencia | Cuenta Origen | Cuenta Destino | N° Operación | Descripción | Monto |
|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($transferencia['fecha'])->format('d/m/Y H:i') }} | {{ $transferencia['referencia'] }} | {{ $transferencia['cuenta_origen'] ?? '-' }} | {{ $transferencia['cuenta_destino'] ?? '-' }} | {{ $transferencia['num_operacion'] }} | {{ $transferencia['descripcion'] }} | S/ {{ number_format($transferencia['monto'], 2) }} |
| TOTAL TRANSFERENCIAS: | S/ {{ number_format($transferencias->sum('monto'), 2) }} | |||||
| Monto Apertura: | S/ {{ number_format($caja->monto_apertura, 2) }} |
| Total Ingresos: | +S/ {{ number_format($caja->total_ingresos, 2) }} |
| Total Egresos: | -S/ {{ number_format($caja->total_egresos, 2) }} |
| Total Pagos: | +S/ {{ number_format($caja->total_pagos, 2) }} |
| MONTO CALCULADO: | S/ {{ number_format($caja->monto_calculado, 2) }} |
| Monto Cierre: | S/ {{ number_format($caja->monto_cierre, 2) }} |
| Diferencia: | @if($caja->diferencia == 0) S/ 0.00 @elseif($caja->diferencia > 0) +S/ {{ number_format($caja->diferencia, 2) }} @else S/ {{ number_format($caja->diferencia, 2) }} @endif |