{{ p.businessName }}
{{ [p.activity, p.city]|filter(v => v)|join(' · ') }}{% if p.phone %} · {{ p.phone }}{% endif %}
A déjà un site : {{ p.website }} — le message le prend en compte.
{% endif %}{% extends 'admin/base.html.twig' %} {% block title %}Prospection{% endblock %} {% block breadcrumb %}Super administration Prospection{% endblock %} {# Prospection : importer → rédiger (IA) → relire → envoyer → suivre. Variables : tabs, tab, tabCounts, prospects, funnel, quota, sendSettings (ProspectingSettings), canGenerate, plans (formules payantes), links (ProspectLinks), generating #} {% macro pct(part, whole) %}{{ whole > 0 ? ((part / whole * 100)|round ~ ' %') : '—' }}{% endmacro %} {% import _self as m %} {% set statusLabels = { new: ['Nouveau', 'neutral'], queued: ['En file', 'info'], generating: ['Rédaction…', 'info'], to_review: ['À relire', 'action'], sent: ['Envoyé', 'info'], visited: ['A ouvert', 'good'], claimed: ['Récupéré', 'good'], rejected: ['Écarté', 'neutral'], declined: ['Pas intéressé', 'neutral'], unsubscribed: ['Désinscrit', 'neutral'], failed: ['Échec', 'bad'], expired: ['Expiré', 'neutral'] } %} {% block body %}
Préparez le site d'un commerce, envoyez-le-lui : il le récupère en un clic, avec un mois offert.
{{ quota.sentToday }} / {{ quota.limit }} e-mails aujourd'hui
Modifié le {{ sendSettings.updatedAt|date('d/m/Y à H:i') }}{% if sendSettings.updatedBy %} par {{ sendSettings.updatedBy }}{% endif %}.
{% endif %}
Colonnes reconnues : nom (obligatoire), activite, ville, email,
telephone, site, histoire — séparateur ; ou ,.
Doublons et adresses désinscrites sont écartés d'office.
{{ generating }} site{{ generating > 1 ? 's' }} en rédaction — la page se met à jour toute seule.
{% endif %}{{ [p.activity, p.city]|filter(v => v)|join(' · ') }}{% if p.phone %} · {{ p.phone }}{% endif %}
A déjà un site : {{ p.website }} — le message le prend en compte.
{% endif %}| Commerce | Contact | Statut | {{ tab == 'won' ? 'Récupéré le' : (tab in ['sent', 'closed'] ? 'Envoyé le' : 'Ajouté le') }} | Actions |
|---|---|---|---|---|
|
{{ p.businessName }}
{{ [p.activity, p.city]|filter(v => v)|join(' · ') }}
|
{{ p.email ?: '—' }}{% if p.phone %} {{ p.phone }}{% endif %} |
{{ label[0] }}
{% if p.status in ['sent', 'visited'] %}
{{ p.visits }} visite{{ p.visits > 1 ? 's' }} · {{ p.followUps }} relance{{ p.followUps > 1 ? 's' }}
{% elseif p.status == 'claimed' and p.site and p.site.subscription %}
{% if p.site.subscription.paidByStripe %} Abonné {{ p.site.subscription.plan.name }}
{% elseif p.site.subscription.status == 'trial' %}Essai jusqu'au {{ p.site.subscription.trialEndDate|date('d/m') }}
{% else %}{{ p.site.subscription.plan.name }}{% endif %}
{% endif %}
{% if p.error %}{{ p.error }} {% endif %}
|
{% if tab == 'won' %}{{ p.claimedAt ? p.claimedAt|date('d/m/Y') }} {% elseif tab in ['sent', 'closed'] %}{{ p.sentAt ? p.sentAt|date('d/m/Y') : '—' }} {% else %}{{ p.createdAt|date('d/m/Y') }}{% endif %} | {% if p.site and p.status not in ['rejected', 'declined', 'unsubscribed', 'expired'] and p.status != 'generating' %} Site {% endif %} {% if p.status == 'failed' %} {% endif %} |