feat: WhatsApp promociones — fechas en español, status webhook y analytics inspector
- Corrige formato de fechas a español con Carbon isoFormat('D [de] MMMM')
- Webhook procesa statuses de Meta (delivered/read/failed) y actualiza pivot alumno_promocion
- Analytics: nuevas métricas de entregados/leídos, embudo de entrega, filtro por tipo
- Inspector de payload raw por log con modal y botón copiar
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -48,7 +48,8 @@ class EnviarPromocionJob implements ShouldQueue
|
||||
}
|
||||
|
||||
try {
|
||||
$mensajeId = $whatsapp->enviarPromocion($telefono, $this->promocion);
|
||||
$nombre = $this->alumno->alumnos()->first()?->name ?? 'estudiante';
|
||||
$mensajeId = $whatsapp->enviarPromocion($telefono, $this->promocion, $nombre);
|
||||
} catch (\RuntimeException $e) {
|
||||
WhatsappLog::create([
|
||||
'alumno_id' => $this->alumno->id,
|
||||
|
||||
Reference in New Issue
Block a user