@extends('layouts.app') @section('title', 'Cierre de Caja') @push('styles') @vite(['resources/css/cierre.css']) @endpush @section('content')
{{-- HERO HEADER --}}

Cierres de Caja

Resumen del día y registro final de caja.

Hoy: {{ now()->format('d/m/Y') }} @if ($cierreHoy) Cierre registrado @else Cierre pendiente @endif
@if (!$cierreHoy) + Nuevo cierre @else Cierre de hoy registrado @endif
{{-- STATS --}}
🗓️
Apertura (hoy)
S/ {{ number_format($montoApertura, 2) }}
{{ $aperturaHoy ? 'Registrada' : 'No registrada' }}
💵
Efectivo ventas
S/ {{ number_format($efectivo, 2) }}
Ventas con EFECTIVO
🧮
Efectivo sistema
S/ {{ number_format($efectivoSistema, 2) }}
Apertura + Efectivo
📌
Total ventas (hoy)
S/ {{ number_format($totalHoy, 2) }}
Incluye yape/tarjeta
{{-- TABLA --}}

Historial

{{ $cierres->total() }} registros
@forelse($cierres as $c) @php $estado = 'CORRECTO'; if ($c->DINERO_SOBRANTE > 0) { $estado = 'SOBRA'; } if ($c->DINERO_FALTANTE > 0) { $estado = 'FALTA'; } @endphp @empty @endforelse
ID Fecha Sistema Físico Sobrante Faltante Estado
#{{ $c->ID_CIERRE }} {{ \Carbon\Carbon::parse($c->FECHA_CIERRE_CAJA)->format('d/m/Y H:i') }} S/ {{ number_format($c->EFECTIVO_SISTEMA, 2) }} S/ {{ number_format($c->EFECTIVO_FISICO, 2) }} S/ {{ number_format($c->DINERO_SOBRANTE, 2) }} S/ {{ number_format($c->DINERO_FALTANTE, 2) }} {{ $estado }}
No hay cierres registrados.
{{ $cierres->links() }}
@endsection