Caja & Facturación en Mostrador

Vitrina Activa

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

Almacén:
@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->name }} @else
@endif

{{ $variant->name }}

@if(!empty($attributes)) {{ $attributes }} @endif {{ $variant->sku }}
${{ number_format($priceUsdt, 2) }} USDT
{{ 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 (Paralelo): {{ 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($selectedCustomerId) @php $currCustomer = $customers->firstWhere('id', $selectedCustomerId); @endphp @if($currCustomer) Límite: ${{ number_format((float)$currCustomer->credit_limit_usdt, 2) }} | Deuda: ${{ number_format((float)$currCustomer->current_debt_usdt, 2) }} @endif @endif
@if($isCreditSale)
Configuración del Crédito
@if(! $selectedCustomerId)

Por favor selecciona un cliente arriba para poder fiar esta venta.

@endif
@endif @if($paymentCurrency === 'VES')
Tasa aplicada:
@endif
Monto Total a Pagar:
{{ $paymentCurrency }}
@if((float)$changeAmount > 0)
Vuelto a Entregar: {{ number_format((float)$changeAmount, 2) }} {{ $paymentCurrency }}
@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?->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