@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
Error

{{ session('error') }}

@endif
{{ str_pad($numeroVentaActual, 3, '0', STR_PAD_LEFT) }}
@if (count($productosagregados) == 0)

Carrito vacío

Agregue productos para comenzar

@else @foreach ($productosagregados as $index => $producto)

{{ $producto['descripcion'] }}

{{ $producto['cantidad'] }} x ${{ number_format($producto['preciounitario'], 2) }} ${{ number_format($producto['importe'], 2) }}
@endforeach @endif
Impuestos
${{ number_format($impuestototal ?? 0, 2) }}
Total
${{ number_format($totalfinal ?? 0, 2) }}
@if ($valorNumerico !== '')
{{ $valorNumerico }}
@endif
@if(!empty($notaVenta))
Nota:

{{ $notaVenta }}

@endif @if($clienteSeleccionado)

Cliente:

{{ $clienteSeleccionado->nombre }}

@if($clienteSeleccionado->rfc)

RFC: {{ $clienteSeleccionado->rfc }}

@endif
@endif
@foreach ($categorias as $categoria) @php $colores = [ 'bg-yellow-400 text-gray-900 hover:bg-yellow-300', 'bg-green-500 text-white hover:bg-green-400', 'bg-blue-500 text-white hover:bg-blue-400', 'bg-red-400 text-white hover:bg-red-300', 'bg-purple-400 text-white hover:bg-purple-300', 'bg-orange-500 text-white hover:bg-orange-400', 'bg-teal-500 text-white hover:bg-teal-400', 'bg-pink-500 text-white hover:bg-pink-400', ]; $colorIndex = $categoria->idfamily % count($colores); $color = $colores[$colorIndex]; @endphp @endforeach
@forelse($productos as $producto) @empty

No hay productos disponibles

@endforelse
@if ($mostrarModalPago)

Procesar Pago

Total a Pagar

${{ number_format($totalfinal, 2) }}

Restante

${{ number_format($restantePorPagar, 2) }}

@if(count($pagosAgregados) > 0)
@foreach($pagosAgregados as $index => $pago)
{{ $pago['tipopago'] }} ${{ number_format($pago['importe'], 2) }}
@endforeach
@endif @if($restantePorPagar > 0)
@foreach ($formasPago as $forma) @endforeach
$
@endif @if ($totalPagado > $totalfinal)
Cambio ${{ number_format($totalPagado - $totalfinal, 2) }}
@endif
@endif @if ($modalExportarOpen)

Venta Completada

Seleccione cómo desea exportar el recibo de venta

PUNTO DE VENTA

{{ now()->format('d/m/Y H:i:s') }}

@if(!empty($datosVentaRecibo['cliente']))
CLIENTE

{{ $datosVentaRecibo['cliente']['nombre'] }}

@if(!empty($datosVentaRecibo['cliente']['rfc']))

RFC: {{ $datosVentaRecibo['cliente']['rfc'] }}

@endif @if(!empty($datosVentaRecibo['cliente']['email']))

Email: {{ $datosVentaRecibo['cliente']['email'] }}

@endif @if(!empty($datosVentaRecibo['cliente']['telefono']))

Tel: {{ $datosVentaRecibo['cliente']['telefono'] }}

@endif
@endif
@if(!empty($datosVentaRecibo['productos'])) @foreach($datosVentaRecibo['productos'] as $item)

{{ $item['descripcion'] }}

{{ $item['cantidad'] }} x ${{ number_format($item['preciounitario'], 2) }}

${{ number_format($item['importe'], 2) }}

@endforeach @endif
Subtotal: ${{ number_format($datosVentaRecibo['subtotal'] ?? 0, 2) }}
IVA (16%): ${{ number_format($datosVentaRecibo['impuesto'] ?? 0, 2) }}
TOTAL: ${{ number_format($datosVentaRecibo['total'] ?? 0, 2) }}
@if(!empty($datosVentaRecibo['nota']))

Nota:

{{ $datosVentaRecibo['nota'] }}

@endif

Formas de Pago:

@if(!empty($datosVentaRecibo['formasPago'])) @foreach($datosVentaRecibo['formasPago'] as $pago)
{{ $pago['tipopago'] }}: ${{ number_format($pago['importe'], 2) }}
@endforeach @endif
Total Recibido: ${{ number_format($datosVentaRecibo['importeRecibido'] ?? 0, 2) }}
Cambio: ${{ number_format($cambioRecibo ?? 0, 2) }}

¡Gracias por su compra!

@endif @if ($mostrarModalNota)

Agregar Nota

Esta nota aparecerá en el recibo de venta

{{ strlen($notaVenta) }} caracteres
@endif @if ($mostrarModalOrdenes)

Órdenes del Día

@if(count($ventasSesion) > 0)
@foreach($ventasSesion as $venta) @endforeach
Fecha Folio Cliente Forma Pago Total Estado Acciones
{{ \Carbon\Carbon::parse($venta->fechaventa)->format('d/m/Y') }}
{{ \Carbon\Carbon::parse($venta->horaventa)->format('H:i:s') }}
{{ str_pad($venta->folio, 3, '0', STR_PAD_LEFT) }}
{{ $venta->cliente ?? 'PUBLICO GENERAL' }}
{{ $venta->tipopago }} ${{ number_format($venta->total, 2) }} Pagado
@else

No hay órdenes registradas

Las ventas realizadas aparecerán aquí

@endif
@endif @if ($mostrarModalClientes)

Seleccionar Cliente

@if(count($clientes) > 0)
@foreach($clientes as $cliente) @endforeach
@else

No se encontraron clientes

Intenta con otro término de búsqueda

@endif
@endif