Reporte Concentrado - Cortes de Caja Volver
{{-- Información de filtros aplicados --}}

Filtros aplicados:

Fecha inicio: {{ \Carbon\Carbon::parse($fechaInicio)->format('d/m/Y') }}
Fecha fin: {{ \Carbon\Carbon::parse($fechaFin)->format('d/m/Y') }}
Estado: @if($opcionTurnos == 0) No Cerrados @elseif($opcionTurnos == 1) Cerrados @else Ambos turnos @endif
{{-- Resumen general --}}

Resumen General

Total Turnos
{{ $totalesGenerales['total_turnos'] ?? 0 }}
Total Ingresos
${{ number_format($totalesGenerales['total_ingresos'] ?? 0, 2) }}
Total Egresos
${{ number_format($totalesGenerales['total_egresos'] ?? 0, 2) }}
Total Cortes
${{ number_format($totalesGenerales['total_cortes'] ?? 0, 2) }}
Turnos Cerrados
{{ $totalesGenerales['turnos_cerrados'] ?? 0 }}
Turnos Abiertos
{{ $totalesGenerales['turnos_abiertos'] ?? 0 }}
Ingresos - Egresos
${{ number_format(($totalesGenerales['total_ingresos'] ?? 0) - ($totalesGenerales['total_egresos'] ?? 0), 2) }}
Diferencia
${{ number_format($totalesGenerales['diferencia'] ?? 0, 2) }}
{{-- Tabla concentrada por sucursal --}}

Concentrado por Sucursal

@forelse ($datosConcentrado as $dato) @php $ingresosMenosEgresos = $dato->total_ingresos - $dato->total_egresos; $diferencia = $ingresosMenosEgresos - $dato->total_cortes; @endphp @empty @endforelse @if(count($datosConcentrado) > 0) @endif
Sucursal Total Turnos Cerrados Abiertos Total Ingresos Total Egresos Ingresos - Egresos Total Cortes Diferencia
{{ $dato->sucursal ?? 'Sin sucursal' }} {{ $dato->total_turnos }} {{ $dato->turnos_cerrados }} {{ $dato->turnos_abiertos }} ${{ number_format($dato->total_ingresos, 2) }} ${{ number_format($dato->total_egresos, 2) }} ${{ number_format($ingresosMenosEgresos, 2) }} ${{ number_format($dato->total_cortes, 2) }} ${{ number_format($diferencia, 2) }}
No se encontraron datos para el período seleccionado
TOTALES {{ $totalesGenerales['total_turnos'] }} {{ $totalesGenerales['turnos_cerrados'] }} {{ $totalesGenerales['turnos_abiertos'] }} ${{ number_format($totalesGenerales['total_ingresos'], 2) }} ${{ number_format($totalesGenerales['total_egresos'], 2) }} ${{ number_format($totalesGenerales['total_ingresos'] - $totalesGenerales['total_egresos'], 2) }} ${{ number_format($totalesGenerales['total_cortes'], 2) }} ${{ number_format($totalesGenerales['diferencia'], 2) }}