@foreach($cortes as $corte) @endforeach
REPORTE DE CORTES DE CAJA
@if(!empty($filtros['fechaInicio']) && !empty($filtros['fechaFin'])) Período: {{ \Carbon\Carbon::parse($filtros['fechaInicio'])->format('d/m/Y') }} - {{ \Carbon\Carbon::parse($filtros['fechaFin'])->format('d/m/Y') }} @endif
Turno Fecha apertura Cerrado Fecha cierre Hrs. trabajadas Ingresos Egresos Ingresos - Egresos Corte empleado Diferencia Usuario Sucursal
{{ $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 }} {{ $corte->sucursal ?? 'N/A' }}
TOTALES ${{ number_format($totales['total_ingresos'] ?? 0, 2) }} ${{ number_format($totales['total_egresos'] ?? 0, 2) }} ${{ number_format(($totales['total_ingresos'] ?? 0) - ($totales['total_egresos'] ?? 0), 2) }} ${{ number_format($totales['total_cortes'] ?? 0, 2) }} ${{ number_format($totales['diferencia'] ?? 0, 2) }}