{% extends 'base.html.twig' %} {% block title %}Tableau de bord{% endblock %} {% block titre_page %}Tableau de bord{% endblock %} {% block resume_page %}Vue d'ensemble de la troupe{% endblock %} {% block description_page %}Ici, tu peux voir les différentes statistiques de la troupe{% endblock %} {% block body %}

Calendrier

{% for representation in prochaines %} {% if representation.date < date() %}
{{ representation.date|date('d/m/Y') }}
{{ representation.heure|date('H:i') }}
{% if representation.date|date('ymd') < "now"|date('ymd') %} {% if is_granted('ROLE_ADMIN') %} {{ representation.spectacle.name }} {% else %} {{ representation.spectacle.name }} {% endif %} {% else %} {% if is_granted('ROLE_ADMIN') %} {{ representation.spectacle.name }} {% endif %} {% endif %}
{% if representation.spectacle.image %} {% endif %}
{{ representation.salle.name }}
{% else %}
{{ representation.date|date('d/m/Y') }}
{{ representation.heure|date('H:i') }}
{% if representation.date|date('ymd') < "now"|date('ymd') %} {% if is_granted('ROLE_ADMIN') %} {{ representation.spectacle.name }} {% else %} {{ representation.spectacle.name }} {% endif %} {% else %} {% if is_granted('ROLE_ADMIN') %} {{ representation.spectacle.name }} {% endif %} {% endif %}
{% if representation.spectacle.image %} {% endif %}
{{ representation.salle.name }} à {{ representation.heure|date('H:i') }}
Rendez-vous à {{ representation.heureRdv|date('H:i') }}
{% endif %} {% endfor %}
{% set type = constant('App\\Constants\\StatistiqueType::FB_FAN_COUNT') %}
{{ type.label }}
  • Aujourd'hui
    {{ (statsFB|first).value }}
  • Objectif
    100
{% set type = constant('App\\Constants\\StatistiqueType::INSTA_FOLLOWERS') %}
{{ type.label }}
  • Aujourd'hui
    {{ (statsInsta|first).value }}
  • Objectif
    500

Tableau des participations

{% for repartition in repartitionsLongForm %} {% set max = repartition.users|xtrem('max') %} {% set min = repartition.users|xtrem('min') %} {% for user in repartition.users %} {% endfor %} {% for userid, user in repartition.users %} {% for key, repartition in user.repartitions %} {% if key == userid %} {% else %} {% if repartition == min %} {% elseif repartition == max %} {% else %} {% endif %} {% endif %} {% endfor %} {% endfor %}
{% if user.user.photo %} Nobody
{% else %} Nobody
{% endif %} {{ user.user.firstname }}
{{ user.user.firstname }}{{ repartition }}{{ repartition }}{{ repartition }}
{% endfor %} {% for repartition in repartitionsCabaret %} {% set max = repartition.users|xtrem('max') %} {% set min = repartition.users|xtrem('min') %} {% for user in repartition.users %} {% endfor %} {% for user in repartition.users %} {% if user.repartitions == min %} {% elseif user.repartitions == max %} {% else %} {% endif %} {% endfor %}
{% if user.user.photo %} Nobody
{% else %} Nobody
{% endif %} {{ user.user.firstname }}
{{ user. repartitions }}{{ user.repartitions }}{{ user.repartitions }}
{% endfor %}
{% endblock %} {% block javascripts %} {% endblock %}