{% extends 'admin/base_admin.html.twig' %} {% block title %}Dashboard Admin{% endblock %} {% block content %} {# ══════════════════════════════════════════════════════════════════ HEADER ══════════════════════════════════════════════════════════════════ #}
Vue d'ensemble de l'activité NUM-ECARD
Il n'y a pas encore de commandes dans le système.
| Référence | Client | Date | Pack | Bénéficiaires | Montant TTC | Statut | Actions |
|---|---|---|---|---|---|---|---|
| {{ commande.reference }} {% if commande.isPaid %} ✓ {% endif %} |
{% if commande.user is not null %}
{{ commande.clientNom }}
{% else %}
{{ commande.clientNom }}
{% endif %}
{{ commande.clientEmail }}
|
{{ commande.createdAt|date('d/m/Y') }}
{{ commande.createdAt|date('H:i') }}
|
Pack {{ commande.packType|capitalize }} |
{% if commande.beneficiaires|length > 0 %}
{% for b in commande.beneficiaires %}
{{ b.prenom|slice(0,1)|upper }}{{ b.nom|slice(0,1)|upper }}
{{ b.prenom }} {{ b.nom }}
{% if not b.isActive %}
⛔
{% endif %}
|
{{ commande.totalTTC|number_format(2, ',', ' ') }} € | {{ commande.statusLabel }} | Détail → |
Aucune nouvelle recommandation.
{% else %}{{ stats.new_recommendations }} nouvelle{{ stats.new_recommendations > 1 ? 's' : '' }} recommandation{{ stats.new_recommendations > 1 ? 's' : '' }} à traiter.
📋 Traiter les recommandations {% endif %}Envoyez des notifications aux utilisateurs qui ont installé les cartes PWA sur leur téléphone.
✅ Aucune demande en attente de traitement.
{% else %}| # | Type | Demandeur | Reçue le | Échéance | |
|---|---|---|---|---|---|
| #{{ demande.id }} | {{ demande.typeLabel }} |
{{ demande.nomDemandeur ?? '—' }}
{{ demande.emailDemandeur ?? '' }}
|
{{ demande.requestedAt|date('d/m/Y') }} | {% if jours is not null %} {% if jours <= 0 %}⛔ Dépassé {% elseif jours <= 3 %}🔴 J-{{ jours }} {% elseif jours <= 7 %}🟡 J-{{ jours }} {% else %}🟢 {{ demande.deadlineAt|date('d/m/Y') }} {% endif %} {% else %} — {% endif %} | Traiter → |
Aucun utilisateur pour le moment.
{% else %}| Utilisateur | Inscription | Vérifié | ||
|---|---|---|---|---|
| {{ user.email }} | {{ user.createdAt|date('d/m/Y') }} | {% if user.isVerified %} {% else %} {% endif %} | Voir → |