Caja & Facturación en Mostrador

Vitrina Activa

Atajos de teclado: F2 Buscar prenda • F4 Cobrar • ESC Cerrar modal

@if($cashShiftStatus['is_opened']) Caja Abierta: ${{ $cashShiftStatus['opening_usd'] }} / {{ $cashShiftStatus['opening_ves'] }} Bs @else ⚠️ Apertura de Caja Pendiente @endif 🗄️ Control de Caja
@if($lastCompletedSaleNumber)
✓

¡Venta Registrada Exitosamente!

Comprobante de entrega #{{ $lastCompletedSaleNumber }}. Stock descontado por FIFO.

@endif
@foreach($categories as $category) @endforeach
@forelse($variants as $variant) @php $stock = $variant->stockSummaries->first()?->available_stock ?? '0.0000'; $hasStock = (float)$stock > 0; $stockInt = (int)(float)$stock; $priceUsdt = (float)$variant->suggested_price_usdt; $priceBcvVes = $priceUsdt * (float)($rates['VES_BCV'] ?? 1); $categoryName = $variant->product?->category?->name ?? 'Colección Kairos'; $attributes = $variant->attributeValues->pluck('value')->join(', '); @endphp
{{ $categoryName }} @if($stockInt > 3) {{ $stockInt }} disp. @elseif($stockInt > 0) ¡Últimas {{ $stockInt }}! @else Agotado @endif
@if($variant->image_url) {{ $variant->display_name }} @else
@endif

{{ $variant->display_name }}

@if(!empty($attributes)) {{ $attributes }} @endif {{ $variant->sku }}
${{ number_format($priceUsdt, 2) }} USD
{{ number_format($priceBcvVes, 2) }} Bs
@if($hasStock) @else Sin stock @endif
@empty

No hay prendas disponibles en esta colección

Prueba seleccionando otra categoría o cambiando el término de búsqueda.

@endforelse
Nota de Entrega / Ticket {{ $itemsCount }} prendas
@if(count($cart) > 0) @endif
@forelse($cart as $item)

{{ $item['name'] }}

{{ $item['sku'] }} • ${{ number_format((float)$item['unit_price_usdt'], 2) }}
{{ (int)(float)$item['quantity'] }}
${{ number_format((float)$item['subtotal_usdt'], 2) }}
@empty

Toca cualquier prenda en la vitrina para armar el ticket de venta.

@endforelse
Total Base (USDT / USD): ${{ number_format((float)$cartTotalUsdt, 2) }}
Facturación Oficial (BCV): {{ number_format($totalBcvVes, 2) }} Bs
Referencia Mercado (Binance P2P): {{ number_format($totalParaleloVes, 2) }} Bs
Pesos Colombia (TRM): {{ number_format($totalCop, 0) }} COP
@if($showPaymentModal)

Registrar Pago & Cobro

Selecciona el método y calcula el vuelto en vivo

@if($selectedCustomer) Límite: ${{ number_format((float)$selectedCustomer->credit_limit_usdt, 2) }} | Deuda: ${{ number_format((float)$selectedCustomer->current_debt_usdt, 2) }} @endif
@if($customerSearch !== '') @endif
@if(! $selectedCustomer && count($customerResults) > 0)
@foreach($customerResults as $c) @endforeach
@endif @if($selectedCustomer)

✓ Cliente inscrito

@elseif(trim($customerSearch) !== '' && count($customerResults) === 0)

«{{ trim($customerSearch) }}» no está inscrito. Al cobrar te preguntaremos si deseas registrarlo.

@else

Busca un cliente o escribe un nombre nuevo.

@endif
@if($isCreditSale)
Gestión Inteligente de Crédito
@if($customerOpenFiados->isNotEmpty()) {{ $customerOpenFiados->count() }} factura(s) a crédito abierta(s) @endif
@if(! $selectedCustomerId)

Selecciona un cliente arriba para poder procesar la venta a crédito.

@elseif($customerOpenFiados->isNotEmpty())
¿Cómo deseas registrar esta venta a crédito para {{ $selectedCustomer?->name }}?
@if($creditSaleMode === 'append')
@php $selectedFiado = $customerOpenFiados->firstWhere('id', $targetCreditSaleId); if ($selectedFiado) { $saldoActual = $selectedFiado->receivable ? (float)$selectedFiado->receivable->remaining_balance_usdt : (float)$selectedFiado->total_amount_usdt; $nuevoSaldo = $saldoActual + (float)$cartTotalUsdt; } @endphp @if(isset($nuevoSaldo))
Saldo actual: ${{ number_format($saldoActual, 2) }} Nuevo saldo: ${{ number_format($nuevoSaldo, 2) }} USD BCV
@endif
@else
@endif
@else
@endif
@endif @if(! $isCreditSale && count($this->eligibleBankAccounts) > 0)
🏦 Cuenta / Banco de Destino: @if(count($this->eligibleBankAccounts) > 1) {{ count($this->eligibleBankAccounts) }} bancos disponibles @endif
@if(count($this->eligibleBankAccounts) > 1)
@foreach($this->eligibleBankAccounts as $acc) @endforeach
@else @php $singleAcc = $this->eligibleBankAccounts->first(); @endphp
✓
{{ $singleAcc->bank_name ?: $singleAcc->name }} @if($singleAcc->account_identifier) {{ $singleAcc->account_identifier }} @endif
{{ $singleAcc->has_pos_terminal ? 'Punto Afiliado' : 'Asignada' }}
@endif
@endif @if($paymentCurrency === 'VES')
Tasa aplicada:
@endif @if($isCreditSale)
Total a Cargar a Crédito: ${{ number_format((float)$cartTotalUsdt, 2) }} USD
Modo de Facturación: @if($creditSaleMode === 'append' && $targetCreditSaleId) @php $tgt = $customerOpenFiados->firstWhere('id', $targetCreditSaleId); @endphp ➕ Sumar a Factura #{{ $tgt?->sale_number }} @else 📄 Nueva Factura a Crédito Separada @endif
@else
@if($paymentCurrency !== 'VES')
🏛️ Precio Vitrina Oficial: ${{ number_format((float)$cartTotalUsdt, 2) }} USD BCV
🟡 Monto a Cobrar en Divisas ({{ $paymentCurrency }}):
{{ $paymentCurrency }}

ℹ️ Precargado según el valor base en divisas del inventario (${{ $collectedAmountDivisas }}). Puedes editarlo libremente si acordaste otro precio con el cliente.

@endif
{{ $paymentCurrency === 'VES' ? 'Monto Total a Pagar en Bs:' : 'Monto Recibido del Cliente:' }}
{{ $paymentCurrency }}
@if((float)$changeAmount > 0)
Vuelto a Entregar: {{ number_format((float)$changeAmount, 2) }} {{ $paymentCurrency }}
@endif
@endif
@endif @if($showUnregisteredCustomerModal)

Cliente no inscrito

{{ $newCustomerName }} no está registrado en el sistema. ¿Deseas inscribirlo?

@unless($isCreditSale) @else

Las ventas a crédito requieren un cliente inscrito con teléfono.

@endunless
@endif @if($showCustomerRegistrationModal)

Inscribir cliente

@if($customerRegistrationError)

{{ $customerRegistrationError }}

@endif @if($duplicatePhoneCustomerId) @endif
@endif @if($showReceiptModal && $lastCompletedSale)
Kairos

{{ $lastCompletedSale->isQuote() ? 'Presupuesto / Cotización' : 'Comprobante de Venta' }}

#{{ $lastCompletedSale->sale_number }} • {{ $lastCompletedSale->created_at->format('d/m/Y h:i A') }}

Cliente: {{ $lastCompletedSale->customer?->name ?: 'Cliente Ocasional / Vitrina' }}

@if($lastCompletedSale->customer?->phone)

WhatsApp: {{ $lastCompletedSale->customer->phone }}

@endif @if($lastCompletedSale->isDelivery() && $lastCompletedSale->delivery_address)

Despacho: {{ $lastCompletedSale->delivery_address }}

@endif
@foreach($lastCompletedSale->items as $item)
{{ $item->variant?->display_name ?: ($item->variant?->name ?: 'Prenda') }} {{ (int)$item->quantity }} x ${{ number_format((float)$item->unit_price_usdt, 2) }}
${{ number_format((float)$item->subtotal_price_usdt, 2) }}
@endforeach
Total USDT: ${{ number_format((float)$lastCompletedSale->total_amount_usdt, 2) }}
@php $rateBcv = $rates['VES_BCV'] ?? '36.50'; $bcvTotal = (float)$lastCompletedSale->total_amount_usdt * (float)$rateBcv; @endphp
Equivalente BCV: Bs. {{ number_format($bcvTotal, 2, ',', '.') }}
@if($lastCompletedSale->customer?->phone) @php $waUrl = $lastCompletedSale->isQuote() ? $lastCompletedSale->getWhatsAppQuoteUrl() : $lastCompletedSale->getWhatsAppReceiptUrl(); @endphp @if($waUrl) Enviar por WhatsApp @endif @endif
@endif