Iniciando Núcleo Neural

{{currentView.replace('_', ' ')}}

{{businessName || 'Red Global'}}

Sincronizando Matriz de Datos...

{{businessName}}

Orden #{{selectedPedido?.id?.split('-')[0] || 'N/A'}}

{{selectedPedido.direccion_texto || selectedPedido.direccion}}

Abrir GPS en Google Maps

Cliente

{{getClienteNombre(selectedPedido.cliente_wa || selectedPedido.telefono)}}

{{selectedPedido.cliente_wa || selectedPedido.telefono || 'N/A'}}

Pago

{{selectedPedido.metodo_pago}}

Detalle de la Orden

Sin ítems registrados.
{{typeof item === 'object' && item.cantidad ? item.cantidad : '1'}}x

{{typeof item === 'string' ? item : (item.nombre_producto || item.nombre || item.name || item.producto || item.title || 'Producto Desconocido')}}

Nota: {{item.notas}}

{{formatCurrency((item.precio || 0) * (item.cantidad || 1))}}

Comentarios del Sistema

{{selectedPedido.comentarios}}

Subtotal {{formatCurrency(selectedPedido.total || 0)}}
Total {{formatCurrency(selectedPedido.total || 0)}}

Progreso del Pedido

Confirmado

En preparación

En camino

Entregado

Cancelado

Pedido anulado

{{formatDate(selectedPedido.created_at)}}

{{formatTime(selectedPedido.created_at)}}

Crear Pedido Manual

Borrador vinculado al chat activo.

{{ shippingError }}
{{ manualOrderData.desglose_envio }}

{{ manualProductConfiguring.nombre }}

Selecciona {{ modGroup.max_selections > 1 ? `hasta ${modGroup.max_selections}` : '1' }}

{{ item.cantidad }}x {{ item.nombre_producto }}
{{ item.modificadores_seleccionados.join(', ') }}
${{ (parseFloat(item.precio) * item.cantidad).toFixed(2) }}
No hay productos en el carrito.
Subtotal: ${{ manualSubtotal.toFixed(2) }}
Envío: {{ manualOrderData.costo_envio > 0 ? '$' + manualOrderData.costo_envio.toFixed(2) : (manualOrderData.desglose_envio ? 'GRATIS' : 'Pendiente') }}
TOTAL: ${{ manualTotal.toFixed(2) }}