@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 --}}
S/ {{ number_format($montoApertura, 2) }}
{{ $aperturaHoy ? 'Registrada' : 'No registrada' }}
S/ {{ number_format($efectivo, 2) }}
Ventas con EFECTIVO
S/ {{ number_format($efectivoSistema, 2) }}
Apertura + Efectivo
S/ {{ number_format($totalHoy, 2) }}
Incluye yape/tarjeta
{{-- TABLA --}}
Historial
{{ $cierres->total() }} registros
| ID |
Fecha |
Sistema |
Físico |
Sobrante |
Faltante |
Estado |
@forelse($cierres as $c)
@php
$estado = 'CORRECTO';
if ($c->DINERO_SOBRANTE > 0) {
$estado = 'SOBRA';
}
if ($c->DINERO_FALTANTE > 0) {
$estado = 'FALTA';
}
@endphp
| #{{ $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 }}
|
@empty
| No hay cierres registrados. |
@endforelse
@endsection