Control de Caja & Turnos • Operación Diaria & Arqueos

Control de Caja & Arqueo Diario

Efectivo físico en gaveta, registro de gastos de caja chica y cuadre de corte del turno.

@if($feedbackMessage)
✓ {{ $feedbackMessage }}
@endif
Gaveta Efectivo USD $

${{ number_format($summary['theoretical_usd'], 2) }}

Base: ${{ number_format($summary['opening_usd'], 2) }} +${{ number_format($summary['sales_cash_usd'], 2) }} vts
Gaveta Efectivo Bs Bs

{{ number_format($summary['theoretical_ves'], 2) }} Bs

Base: {{ number_format($summary['opening_ves'], 2) }} Bs +{{ number_format($summary['sales_cash_ves'], 2) }} vts
@php $digitalTotalUsdt = (float) $summary['sales_zelle'] + (float) $summary['sales_binance']; @endphp
Digital / Bancario 📱

{{ number_format($summary['sales_pago_movil'] + $summary['sales_punto'], 2) }} Bs

P.Móvil + Punto +${{ number_format($digitalTotalUsdt, 2) }} (Zelle/Binance)
Gastos Caja Chica 🏷️

-${{ number_format($summary['expenses_usd'], 2) }} USD

Salidas menores de hoy -{{ number_format($summary['expenses_ves'], 2) }} Bs
🗄️

Efectivo Físico en Gaveta

Desglose exacto de entradas y salidas de la caja física
Turno {{ date('d/m', strtotime($selectedDate)) }}
1. Fondo Inicial de Apertura:
${{ number_format($summary['opening_usd'], 2) }} USD / {{ number_format($summary['opening_ves'], 2) }} Bs
+ Ventas Cobradas en Efectivo:
+${{ number_format($summary['sales_cash_usd'], 2) }} USD / +{{ number_format($summary['sales_cash_ves'], 2) }} Bs
@if($summary['cxc_count'] > 0)
+ Cobranzas CXC en Efectivo:
+${{ number_format($summary['cxc_cash_usd'], 2) }} USD / +{{ number_format($summary['cxc_cash_ves'], 2) }} Bs
@endif
- Salidas / Gastos de Caja Chica:
-${{ number_format($summary['expenses_usd'], 2) }} USD / -{{ number_format($summary['expenses_ves'], 2) }} Bs
@if($summary['cxp_cash_usd'] > 0 || $summary['cxp_cash_ves'] > 0)
- Pagos a Proveedor en Efectivo:
-${{ number_format($summary['cxp_cash_usd'], 2) }} USD / -{{ number_format($summary['cxp_cash_ves'], 2) }} Bs
@endif @if(($summary['conversion_out_usd'] ?? 0) > 0 || ($summary['conversion_out_ves'] ?? 0) > 0)
- Salida Compra Divisas / USDT:
-${{ number_format($summary['conversion_out_usd'], 2) }} USD / -{{ number_format($summary['conversion_out_ves'], 2) }} Bs
@endif
Total que DEBE haber en gaveta: Saldo Teórico Físico
${{ number_format($summary['theoretical_usd'], 2) }} USD
{{ number_format($summary['theoretical_ves'], 2) }} Bs
💳

Cobros Digitales & Bancarios

Total recibido por canales electrónicos (sin pasar por gaveta)
En Línea
Pago Móvil 📱

{{ number_format($summary['sales_pago_movil'], 2) }} Bs

@if($summary['sales_pago_movil'] > 0 && ($summary['rate_bcv'] ?? 0) > 0) ≈ ${{ number_format($summary['sales_pago_movil'] / $summary['rate_bcv'], 2) }} USD (Tasa BCV) @endif
@if($summary['cxc_pago_movil'] > 0)
Vtas: {{ number_format($summary['sales_pago_movil_only'], 2) }} Abonos: +{{ number_format($summary['cxc_pago_movil'], 2) }}
@else Cuentas bancarias VES @endif
Punto de Venta 💳

{{ number_format($summary['sales_punto'], 2) }} Bs

@if($summary['sales_punto'] > 0 && ($summary['rate_bcv'] ?? 0) > 0) ≈ ${{ number_format($summary['sales_punto'] / $summary['rate_bcv'], 2) }} USD (Tasa BCV) @endif
@if($summary['cxc_punto'] > 0)
Vtas: {{ number_format($summary['sales_punto_only'], 2) }} Abonos: +{{ number_format($summary['cxc_punto'], 2) }}
@elseif(!empty($posTerminalBatchAmount))
Lote Físico: {{ number_format((float) $posTerminalBatchAmount, 2) }} Bs @if(($summary['diff_punto'] ?? null) !== null) @if(abs($summary['diff_punto']) < 0.5) ✓ Cuadrado @elseif($summary['diff_punto'] > 0) +{{ number_format($summary['diff_punto'], 2) }} @else -{{ number_format(abs($summary['diff_punto']), 2) }} @endif @endif
@else Datáfonos / Débito @endif
Zelle Z

${{ number_format($summary['sales_zelle'], 2) }} USD

@if($summary['cxc_zelle'] > 0)
Vtas: ${{ number_format($summary['sales_zelle_only'], 2) }} Abonos: +${{ number_format($summary['cxc_zelle'], 2) }}
@else Transferencia EEUU @endif
Binance Pay B

${{ number_format($summary['sales_binance'], 2) }} USDT

@if($summary['cxc_binance'] > 0)
Vtas: ${{ number_format($summary['sales_binance_only'], 2) }} Abonos: +${{ number_format($summary['cxc_binance'], 2) }}
@else Billetera Cripto @endif
⏳ Ventas a Crédito hoy: (No entra a caja aún)
${{ number_format($summary['sales_credit'], 2) }} USD @if($summary['sales_credit'] > 0 && ($summary['rate_bcv'] ?? 0) > 0) ≈ {{ number_format($summary['sales_credit'] * $summary['rate_bcv'], 2) }} Bs (Tasa BCV) @endif
📥 Abonos de Crédito cobrados hoy: (Entró a caja y bancos)
@if(($summary['cxc_ves_total'] ?? 0) > 0 && ($summary['cxc_usd_total'] ?? 0) <= 0 && ($summary['cxc_usdt_total'] ?? 0) <= 0) +{{ number_format($summary['cxc_ves_total'], 2) }} Bs ≈ ${{ number_format($summary['cxc_ves_in_usd'], 2) }} USD (Tasa BCV) @if($summary['cxc_count'] > 0) ({{ $summary['cxc_count'] }} {{ $summary['cxc_count'] === 1 ? 'cobro' : 'cobros' }}) @endif @elseif(($summary['cxc_count'] ?? 0) > 0)
@if(($summary['cxc_ves_total'] ?? 0) > 0) +{{ number_format($summary['cxc_ves_total'], 2) }} Bs (≈ ${{ number_format($summary['cxc_ves_in_usd'], 2) }} $) @endif @if(($summary['cxc_usd_total'] ?? 0) > 0) +${{ number_format($summary['cxc_usd_total'], 2) }} USD @endif @if(($summary['cxc_usdt_total'] ?? 0) > 0) +{{ number_format($summary['cxc_usdt_total'], 2) }} USDT @endif = ${{ number_format($summary['cxc_total_usdt'], 2) }} USD
({{ $summary['cxc_count'] }} {{ $summary['cxc_count'] === 1 ? 'cobro' : 'cobros' }}) @else $0.00 USD (0 Bs) @endif
@if(!empty($summary['bank_breakdown']))
Recaudación por Entidad Bancaria: Bancos & Wallets
@foreach($summary['bank_breakdown'] as $bank)
🏛️
{{ $bank['name'] }} @if(!empty($bank['detail'])) {{ $bank['detail'] }} @endif
{{ number_format($bank['total'], 2) }} {{ $bank['currency'] }}
@if($bank['currency'] === 'VES' && ($bank['total_in_usd'] ?? 0) > 0)
≈ ${{ number_format($bank['total_in_usd'], 2) }} USD (Tasa BCV)
@endif
@endforeach
@endif
Total Facturado en Turno:
${{ number_format($summary['total_sales_usdt'], 2) }} USD @if($summary['total_sales_usdt'] > 0 && ($summary['rate_bcv'] ?? 0) > 0) ≈ {{ number_format($summary['total_sales_usdt'] * $summary['rate_bcv'], 2) }} Bs (Tasa BCV) • {{ $summary['total_sales_count'] }} {{ $summary['total_sales_count'] === 1 ? 'venta' : 'ventas' }} @else ({{ $summary['total_sales_count'] }} ventas) @endif
@if($activeTab === 'gastos') @elseif($activeTab === 'cxc') @elseif($activeTab === 'conversiones') @endif
@if($activeTab === 'gastos')
@forelse($dailyExpenses as $exp) @empty @endforelse
Hora / N° Categoría Descripción / Motivo Monto Salida Acción
{{ $exp->created_at ? $exp->created_at->format('h:i A') : '--:--' }} {{ $exp->expense_number }} {{ $exp->category?->name ?? 'Gasto General' }} {{ $exp->description }} -{{ number_format((float) $exp->amount_original, 2) }} {{ $exp->currency_code }}
🏷️

No hay salidas de caja chica registradas para esta fecha.

Usa el botón "+ Registrar Gasto" para asentar pagos de delivery, bolsas o insumos.

@endif @if($activeTab === 'ventas')
@forelse($dailySales as $sale) @php $method = $this->resolvePaymentMethod($sale); @endphp @empty @endforelse
Hora / N° Venta Cliente Método de Pago Cobrado Real Total Factura (USD BCV) Equiv. USDT Real (Binance P2P) Comprobante
{{ $sale->created_at ? $sale->created_at->format('h:i A') : '--:--' }} {{ $sale->sale_number }} {{ $sale->customer?->name ?? 'Cliente Mostrador' }} {{ str_replace('_', ' ', $method) }} @if($sale->charge_currency === 'VES') Bs. {{ number_format((float) $sale->total_amount_charged, 2, ',', '.') }} @else {{ number_format((float) $sale->total_amount_charged, 2) }} {{ $sale->charge_currency }} @endif @if($sale->charge_currency === 'VES' && (float) $sale->exchange_rate_applied > 0) Tasa BCV: {{ number_format((float) $sale->exchange_rate_applied, 2, ',', '.') }} @endif ${{ number_format((float) ($sale->usd_bcv_total ?? $sale->total_amount_usdt), 2) }} @if((float) ($sale->usdt_real_amount ?? 0) > 0) ${{ number_format((float) $sale->usdt_real_amount, 2) }} ₮ @else — @endif
🛍️

No hay ventas registradas en esta fecha.

@endif @if($activeTab === 'cxc')
@forelse($dailyCxcPayments as $pay) @empty @endforelse
Fecha / Hora Cliente Cuenta por Cobrar Método / Destino Monto Cobrado
{{ $pay->created_at ? $pay->created_at->format('h:i A') : date('d/m/Y', strtotime($pay->payment_date)) }} {{ $pay->reference_number ?: 'Abono directo' }} {{ $pay->receivable?->customer?->name ?? 'Cliente Mostrador' }} @if($pay->receivable?->customer?->phone) {{ $pay->receivable->customer->phone }} @endif {{ $pay->receivable?->receivable_number ?? 'CXC' }} {{ str_replace('_', ' ', $pay->payment_method) }} {{ $pay->cashAccount?->name ?? 'Caja' }} +{{ number_format((float) $pay->amount_original, 2) }} {{ $pay->currency_code }} (≈ ${{ number_format((float) $pay->amount_usdt, 2) }} USD @if($pay->currency_code === 'VES' && (float) $pay->exchange_rate_to_usdt > 0) a Tasa BCV: {{ number_format((float) $pay->exchange_rate_to_usdt, 2) }} @endif)
📥

No hay abonos de cuentas por cobrar en esta fecha.

Cuando un cliente abona o cancela su crédito, el cobro entra aquí automáticamente.

@endif @if($activeTab === 'conversiones')
@forelse($dailyConversions as $conv) @empty @endforelse
Hora / N° Gaveta Origen Destino / Wallet Tasa Resultante Salida de Efectivo Ingreso Recibido
{{ $conv->created_at ? $conv->created_at->format('h:i A') : '--:--' }} {{ $conv->conversion_number }} {{ $conv->sourceAccount?->name ?? 'Gaveta' }} {{ $conv->destinationAccount?->name ?? 'Wallet/Banco' }} @if(!empty($conv->notes)) {{ $conv->notes }} @endif {{ number_format((float) $conv->effective_exchange_rate, 4) }} {{ $conv->source_currency }}/{{ $conv->destination_currency }} -{{ number_format((float) $conv->source_amount, 2) }} {{ $conv->source_currency }} +{{ number_format((float) $conv->destination_amount, 2) }} {{ $conv->destination_currency }}
💱

No hay salidas para compra de divisas o USDT en esta fecha.

Cuando retires efectivo de la gaveta para comprar dólares o USDT en Binance P2P, regístralo aquí.

@endif
@if($showOpeningModal)
💵

Fondo / Base Inicial de Caja

Dinero para dar cambio / apertura de turno
@if($errorMessage)
⚠️ {{ $errorMessage }}
@endif
Billetes $ físicos
Billetes Bs físicos
@endif @if($showExpenseModal)
🏷️

Salida de Caja Chica

Pago operativo menor realizado desde gaveta
@if($errorMessage)
⚠️ {{ $errorMessage }}
@endif
@endif @if($showCloseModal)
⚖️

Arqueo y Cierre del Turno

Comparación entre saldo teórico y conteo real
Saldos Teóricos del Turno:
Gaveta USD ${{ number_format($summary['theoretical_usd'], 2) }}
Gaveta Bs {{ number_format($summary['theoretical_ves'], 2) }} Bs
Punto Venta {{ number_format($summary['sales_punto'], 2) }} Bs
Conteo Físico Real en Gaveta:
💳 Cierre de Lote — Punto de Venta
Sistema: {{ number_format($summary['sales_punto'], 2) }} Bs

Ingresa el monto del voucher de cierre emitido por el punto de venta al final del día:

Bs
@if($summary['diff_usd'] !== null || $summary['diff_ves'] !== null || (!empty($posTerminalBatchAmount) && ($summary['diff_punto'] ?? null) !== null))
Resultado de Cuadre: @if($summary['diff_usd'] !== null)
Diferencia USD: @if(abs($summary['diff_usd']) < 0.01) ✅ Cuadre Exacto ($0.00) @elseif($summary['diff_usd'] > 0) 🟢 Sobrante de +${{ number_format($summary['diff_usd'], 2) }} USD @else 🔴 Faltante de -${{ number_format(abs($summary['diff_usd']), 2) }} USD @endif
@endif @if($summary['diff_ves'] !== null)
Diferencia Gaveta Bs: @if(abs($summary['diff_ves']) < 0.5) ✅ Cuadre Exacto (0.00 Bs) @elseif($summary['diff_ves'] > 0) 🟢 Sobrante de +{{ number_format($summary['diff_ves'], 2) }} Bs @else 🔴 Faltante de -{{ number_format(abs($summary['diff_ves']), 2) }} Bs @endif
@endif @if(!empty($posTerminalBatchAmount) && ($summary['diff_punto'] ?? null) !== null)
Diferencia Lote Punto: @if(abs($summary['diff_punto']) < 0.5) ✅ Lote Cuadrado (0.00 Bs) @elseif($summary['diff_punto'] > 0) 🟢 Sobrante en Lote +{{ number_format($summary['diff_punto'], 2) }} Bs @else 🔴 Faltante en Lote -{{ number_format(abs($summary['diff_punto']), 2) }} Bs @endif
@endif
@endif
@endif @if($showReportModal)
📱

Reporte de Corte de Caja

Listo para copiar y enviar al dueño por WhatsApp
{{ $generatedReportText }}
Haz clic en el botón para copiar todo el reporte:
@endif @if($showAbonoModal) @php $currentAcc = $accounts->firstWhere('id', $abonoPaymentAccountId); $currCode = $currentAcc ? $currentAcc->currency_code : 'USD'; @endphp
Caja Chica & Tesorería

Registrar Abono a Cuenta

Cobro de deudas pendientes directamente en caja

@if($abonoSelectedReceivable)
Saldo Pendiente ${{ number_format((float) $abonoSelectedReceivable->remaining_balance_usdt, 2) }} USD BCV
Equivalente BCV {{ number_format((float) $abonoSelectedReceivable->remaining_balance_usdt * $rateBcv, 2) }} Bs Tasa: {{ number_format($rateBcv, 2) }} Bs/$
{{ $currCode === 'VES' ? 'Bs' : ($currCode === 'USDT' ? '₮' : '$') }}
Amortización a la Deuda: -${{ number_format($this->abonoAmortizedUsdt, 2) }} USD
Saldo Restante: @if($this->abonoRemainingDebt <= 0.001 && $this->abonoAmortizedUsdt > 0) 🎉 ¡100% Saldada ($0.00)! @else ${{ number_format($this->abonoRemainingDebt, 2) }} USD @endif
Ingresará a tesorería
@endif @if ($errorMessage)
{{ $errorMessage }}
@endif
@endif @if($showUsdtPurchaseModal) @php $srcAccount = $accounts->firstWhere('id', $usdtSourceAccountId); $dstAccount = $accounts->firstWhere('id', $usdtDestAccountId); $srcCurrency = $srcAccount ? $srcAccount->currency_code : 'VES'; $dstCurrency = $dstAccount ? $dstAccount->currency_code : 'USDT'; @endphp
💱

Salida por Compra de Divisas / USDT

Retiro de efectivo físico para cambiar o comprar USDT en P2P
@if($errorMessage)
⚠️ {{ $errorMessage }}
@endif
Se descuenta del arqueo físico
Se acredita en tesorería central
{{ $srcCurrency === 'VES' ? 'Bs' : '$' }}
{{ $dstCurrency === 'USDT' ? '₮' : ($dstCurrency === 'USD' ? '$' : 'Bs') }}
@if($this->usdtEffectiveRate)
⚡
Tasa Efectiva de Conversión Calculada en base a los montos entregados
{{ number_format($this->usdtEffectiveRate, 4) }} {{ $srcCurrency }}/{{ $dstCurrency }}
@endif
ℹ️ Importante: Esta salida quedará justificada contablemente en el Control de Caja, reduciendo el monto que debe haber en la gaveta física sin generar descuadre en el arqueo del día.
@endif