@extends('layouts.app') @section('title', 'Abrir Caja') @push('styles') @vite(['resources/css/apertura-create.css']) @endpush @section('content')
{{-- HEADER / BANNER --}}
🏦

Abrir Caja

Registra el dinero inicial de caja del día.

{{-- BADGE ÚNICO (evita repetir "Caja") --}} @if (isset($aperturaHoy) && $aperturaHoy) Apertura registrada hoy ✅ @else Caja @endif
{{-- TAG solo desktop/tablet --}} Caja
{{-- SI YA HAY APERTURA --}} @if (isset($aperturaHoy) && $aperturaHoy)
Ya existe una apertura registrada hoy.
Monto: S/ {{ number_format($aperturaHoy->MONTO_APERTURA, 2) }} • Hora: {{ \Carbon\Carbon::parse($aperturaHoy->FECHA_APERTURA)->format('H:i') }}
Por seguridad, no se puede registrar otra apertura el mismo día.
@else {{-- ERROR FLASH --}} @if (session('error'))
⚠️
{{ session('error') }}
@endif {{-- FORM --}}
@csrf
S/
@error('MONTO_APERTURA')
{{ $message }}
@enderror
Ej: 200.00 (solo números)
Volver
@endif
@endsection