@extends('partials.layout') @section('title','Cuadre de Caja') @section('subtitle','Listado de cuadres registrados por fecha, turno y usuario') @section('back') ← Volver @endsection @section('content')
@if($cuadres->isEmpty())| Fecha de registro | Fecha | Turno | Usuario | Diferencia | Acción |
|---|---|---|---|---|---|
| {{ $cuadre['fecha_registro'] ?? 'N/A' }} | {{ $cuadre['fecha_display'] ?? $cuadre['fecha'] }} | {{ $cuadre['turno'] ?? 'N/A' }} | {{ $cuadre['usuario'] ?? 'N/A' }} | @php $diferencia = isset($cuadre['diferencia']) ? (float) $cuadre['diferencia'] : 0.0; $diffClass = ($diferencia > -1 && $diferencia < 10) ? 'background:#dcfce7;color:#166534' : 'background:#fee2e2;color:#991b1b'; @endphp{{ number_format($diferencia, 2, '.', '') }} | Ver detalle |