diff --git a/assets/pasted-20260430-180021-d1e90ce2.png b/assets/pasted-20260430-180021-d1e90ce2.png new file mode 100644 index 00000000..6549b3f9 Binary files /dev/null and b/assets/pasted-20260430-180021-d1e90ce2.png differ diff --git a/assets/uploads/vouchers/69f387360514b-741.png b/assets/uploads/vouchers/69f387360514b-741.png new file mode 100644 index 00000000..2baf2d33 Binary files /dev/null and b/assets/uploads/vouchers/69f387360514b-741.png differ diff --git a/assets/uploads/vouchers/69f38a73c80c9-Screenshot_276.png b/assets/uploads/vouchers/69f38a73c80c9-Screenshot_276.png new file mode 100644 index 00000000..c2c8a949 Binary files /dev/null and b/assets/uploads/vouchers/69f38a73c80c9-Screenshot_276.png differ diff --git a/pedidos_en_transito.php b/pedidos_en_transito.php index 7be97a7f..3b9515b1 100644 --- a/pedidos_en_transito.php +++ b/pedidos_en_transito.php @@ -264,6 +264,7 @@ include 'layout_header.php'; ?>
+ 🚚 💬
@@ -375,7 +376,131 @@ document.addEventListener('DOMContentLoaded', function() { const statusData = data.statuses.data; const statusMessage = data.statuses.message || 'No disponible'; - let html = `
Estado: ${statusMessage}
`; + let statusIcon = ''; + let statusColor = '#003399'; + let statusBg = '#fff9e6'; // Light yellow background + + const upperStatus = statusMessage.toUpperCase(); + if (upperStatus.includes('ENTREGADO')) { + statusColor = '#198754'; + statusBg = '#e9f7ef'; + statusIcon = ` + + + + + + + + SHALOM + + + + + `; + } else if (upperStatus.includes('DESTINO')) { + statusColor = '#003399'; + statusBg = '#eef2ff'; + statusIcon = ` + + + + + + + + + + + + + + + + + + + + + + SHALOM + + + + + + + + `; + } else if (upperStatus.includes('TRANSITO') || upperStatus.includes('TRÁNSITO')) { + statusColor = '#ffc107'; + statusBg = '#fff9e6'; + statusIcon = ` + + + + + + + + + + + + + + + + + + + SHALOM + + + `; + } else if (upperStatus.includes('ORIGEN')) { + statusColor = '#6c757d'; + statusBg = '#f8f9fa'; + statusIcon = ` + + + + + + + + + SHALOM + `; + } else { + statusIcon = ` + + + + + + + + SHALOM + + `; + } + + let html = ` +
+
${statusIcon}
+

${statusMessage}

+
Guía: ${orderNumber}
+
+

Destino: ${searchData.destino.nombre}

+

Consulta realizada: ${new Date().toLocaleString('es-PE')}

+
+
+ +
+ `; const timeline = [ { name: 'Registrado', data: statusData.registrado }, @@ -493,4 +618,18 @@ document.addEventListener('DOMContentLoaded', function() { verifyButton.addEventListener('click', verificarEstados); } }); + +function copyStatusToClipboard(status, order, destination) { + const text = `📦 *Estado de tu pedido Shalom*\n\n` + + `🔖 *Nro de Orden:* ${order}\n` + + `📍 *Destino:* ${destination}\n` + + `🚚 *Estado:* ${status}\n\n` + + `¡Tu pedido está en camino! Gracias por tu confianza. ✨`; + + navigator.clipboard.writeText(text).then(() => { + alert('Resumen copiado al portapapeles. Ya puedes pegarlo en WhatsApp.'); + }).catch(err => { + console.error('Error al copiar:', err); + }); +} diff --git a/shalom_temp.html b/shalom_temp.html new file mode 100644 index 00000000..e9362bca --- /dev/null +++ b/shalom_temp.html @@ -0,0 +1,53 @@ + + + + + + + Shalom Envíos a todo el Perú + + + + + + + + + + +
+ + + + + + + + + + + + + +