Editar Venta

{{ $venta->codigo }} - {{ $venta->created_at->format('d/m/Y H:i') }}

@if (session()->has('message')) @endif @if (session()->has('error')) @endif
Información Básica
@error('tipo_documento')
{{ $message }}
@enderror
@error('serie_id')
{{ $message }}
@enderror
@error('metodo_pago')
{{ $message }}
@enderror
Agregar Productos
@if(count($searchResults) > 0)
@foreach($searchResults as $result)
{{ $result['quantity'] }}
@if ($result['image_path']) {{ $result['name'] }} @else
@endif
{{ format_money($result['price']) }} @if($result['has_variants']) Variantes @endif
{{ $result['name'] }}

{{ $result['description'] ?: 'Sin descripción disponible' }}

{{ $result['code'] }}
@endforeach
@else

Buscar productos

Escriba el nombre, código o escanee el código de barras para encontrar productos

Escribir nombre Escanear código Código manual
@endif
Productos
@if(empty($cart))

No hay productos en la venta

@else
@foreach($cart as $index => $item) @endforeach
Producto Cantidad Precio Subtotal Acción
{{ $item['nombre'] }}
{{ $item['codigo'] }}
{{ format_money($item['precio_unitario']) }} {{ format_money($item['subtotal']) }}
Total: {{ format_money($this->getTotal()) }}
@endif
Resumen
Productos: {{ count($cart) }}
Subtotal: {{ format_money($this->getTotal()) }}

Total: {{ format_money($this->getTotal()) }}
Observaciones
@if($showVariantsModal && $selectedProductForVariants) @endif
@push('styles') @endpush