{# templates/analytics/_bloc_vues.html.twig ───────────────────────────────────────────────────────────────────────────── Bloc vues — affiché sur tous les niveaux. Paramètres attendus : totalVues (int) → nombre total de vues sur la période mode (string) → 'compteur' (Essentiel) | 'graphe' (Premium+) vuesParJour (array) → [{'date': 'YYYY-MM-DD', 'count': int}] — Premium+ uniquement ───────────────────────────────────────────────────────────────────────────── #}

👁 Consultations

{{ jours }} derniers jours
{# ── Compteur principal ── #}
{{ totalVues }} vues
{# ── Graphe Chart.js — Premium, FDV, Multi uniquement ── #} {% if mode == 'graphe' and vuesParJour is defined and vuesParJour is not empty %}
{% elseif mode == 'graphe' and (vuesParJour is not defined or vuesParJour is empty) %}

Pas encore assez de données pour afficher le graphe.

{% endif %}