{% extends 'admin/base_admin.html.twig' %} {% block title %}Dashboard Admin{% endblock %} {% block content %}
💰
{{ stats.total_revenue|number_format(2, ',', ' ') }} €
Chiffre d'affaires total
📈
{{ stats.revenue_this_month|number_format(2, ',', ' ') }} €
Ce mois-ci
📦
{{ stats.total_commandes }}
Commandes totales
👥
{{ stats.total_users }}
Utilisateurs inscrits
📋 Répartition des commandes
{{ stats.commandes_by_status.pending }}
En attente
{{ stats.commandes_by_status.paid }}
Payées
{{ stats.commandes_by_status.processing }}
En cours
{{ stats.commandes_by_status.completed }}
Terminées
{{ stats.commandes_by_status.cancelled }}
Annulées
🔔 Notifications Push Gérer

Envoyez des notifications aux utilisateurs qui ont installé les cartes PWA sur leur téléphone.

📤 Envoyer une notification 📢 Notifier tout le monde
🤝 Recommandations {% if stats.new_recommendations > 0 %} {{ stats.new_recommendations }} {% endif %} Voir tout
{% if stats.new_recommendations == 0 %}

Aucune nouvelle recommandation.

{% else %}

{{ stats.new_recommendations }} nouvelle{{ stats.new_recommendations > 1 ? 's' : '' }} recommandation{{ stats.new_recommendations > 1 ? 's' : '' }} à traiter.

📋 Traiter les recommandations {% endif %}
🆕 Dernières commandes Voir tout
{% if latestCommandes is empty %}

Aucune commande pour le moment.

{% else %}
{% for commande in latestCommandes %} {{ commande.reference }} {% endfor %}
Référence Client Pack Montant Statut Date
{{ commande.clientNom ?: commande.clientEmail }} {{ commande.packLabel }} {{ commande.totalTTC|number_format(2, ',', ' ') }} € {{ commande.statusLabel }} {{ commande.createdAt|date('d/m/Y H:i') }} Gérer →
{% endif %}
👤 Derniers inscrits Voir tout
{% if latestUsers is empty %}

Aucun utilisateur pour le moment.

{% else %}
{% for user in latestUsers %} {% endfor %}
Utilisateur Email Inscription Vérifié
{{ user.email }} {{ user.createdAt|date('d/m/Y') }} {% if user.isVerified %} {% else %} {% endif %} Voir →
{% endif %}
{% endblock %}