@extends('adminlte::page') @section('title', 'Reporte de Cajas') @section('plugins.Select2', true) @section('content_header')
Total Cajas
Cajas Cerradas
Cajas Abiertas
Total Cierres
| ID | Usuario | Fecha Apertura | Fecha Cierre | Monto Apertura | Ingresos | Egresos | Pagos | Monto Calculado | Monto Cierre | Diferencia | 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 |
| 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) }} | |||||