{% set active = 'stat' %} {% extends 'base.html.twig' %} {% block javascripts %} {% endblock %} {% block stylesheets %} {% endblock %} {% block title %}Len's Backoffice - Stats {% endblock %} {% block body %} {% set class = 'border border-2 border-dark' %} {% if app.user.is('dev') and false %}
{% for year in reps %} {% set yearsName = reps | keys %} {% set yearName = yearsName[loop.index -1] %} {% for month in year %} {% set monthsName = year | keys %} {% set monthName = monthsName[loop.index-1] %} {% set sum = 0 %} {% for item in month %} {% if item.getValidateDevis() != null %} {% set sum = sum + item.getValidateDevis().getTotalTTC() %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
{{ yearName }} {{ monthName }} {{ sum }}
{% endif %} {% set top10PcSales = top10PcSales | sort((a,b) => a < b)[:10] %} {% set topCpu = topCpu | sort((a,b) => a < b)[:3] %} {% set topGpu = topGpu | sort((a,b) => a < b)[:3] %}
Global Commande Devis Intervention Réparations Client Fournisseur
{% include 'statistique/submenu/'~ submenu ~'.html.twig' %} {#
{% include 'statistique/submenu/commande.html.twig' %}
{% include 'statistique/submenu/main.html.twig' %}
...
#} {% endblock %}