REPORTE DE CORTES DE CAJA

@if(!empty($filtros['fechaInicio']) && !empty($filtros['fechaFin']))

Período: {{ \Carbon\Carbon::parse($filtros['fechaInicio'])->format('d/m/Y') }} al {{ \Carbon\Carbon::parse($filtros['fechaFin'])->format('d/m/Y') }}

@endif

Generado: {{ now()->format('d/m/Y H:i:s') }}

@if(!empty($filtros))

Filtros aplicados:

@if(!empty($filtros['sucursal']))

Sucursal: {{ $filtros['sucursal'] }}

@endif @if(!empty($filtros['usuario']))

Usuario: {{ $filtros['usuario'] }}

@endif @if(!empty($filtros['opcionTurnos']))

Estado: {{ $filtros['opcionTurnos'] == 1 ? 'Cerrados' : ($filtros['opcionTurnos'] == 0 ? 'No Cerrados' : 'Ambos turnos') }}

@endif
@endif
Sumatorias:
Concepto Importe
Ingresos ${{ number_format($totales['total_ingresos'] ?? 0, 2) }}
Egresos ${{ number_format($totales['total_egresos'] ?? 0, 2) }}
Ingresos - Egresos ${{ number_format(($totales['total_ingresos'] ?? 0) - ($totales['total_egresos'] ?? 0), 2) }}
Cortes de caja empleados ${{ number_format($totales['total_cortes'] ?? 0, 2) }}
Diferencia ${{ number_format($totales['diferencia'] ?? 0, 2) }}
@foreach($cortes as $corte) @endforeach
Turno F. Apertura Cerrado F. Cierre Hrs. Ingresos Egresos Ing-Egr Corte Emp. Diferencia Usuario
{{ $corte->idturno }} {{ $corte->fechahora_apertura ? \Carbon\Carbon::parse($corte->fechahora_apertura)->format('d/m/Y H:i') : 'N/A' }} {{ $corte->turno_cerrado ? 'Sí' : 'No' }} {{ $corte->fechahora_cierre ? \Carbon\Carbon::parse($corte->fechahora_cierre)->format('d/m/Y H:i') : 'N/A' }} @if($corte->fechahora_apertura && $corte->fechahora_cierre) {{ round(\Carbon\Carbon::parse($corte->fechahora_apertura)->diffInHours(\Carbon\Carbon::parse($corte->fechahora_cierre)), 2) }} @else N/A @endif ${{ number_format($corte->ingresos ?? 0, 2) }} ${{ number_format($corte->egresos ?? 0, 2) }} ${{ number_format(($corte->ingresos ?? 0) - ($corte->egresos ?? 0), 2) }} ${{ number_format($corte->total_corte ?? 0, 2) }} ${{ number_format(($corte->total_corte ?? 0) - (($corte->ingresos ?? 0) - ($corte->egresos ?? 0)), 2) }} {{ $corte->usuario }}