{% set compter = 0 %} {% for item in quotas %} {% set compter = compter + 1 %} {% set exportation = item.getExportations(exportations) %} {{compter}} {{item.operateur ? item.operateur.denomination : ''}} {{item.typeCommodite ? item.typeCommodite.commodite.nom : ''}} {{item.typeCommodite ? item.typeCommodite.nom : ''}} {{item.quota }} t {% if exportation is not null %} {{exportation.quantite}} t {% else %} 0 t {% endif %} {% if exportation is not null %} {{item.quota - exportation.quantite}} t {% else %} 0 t {% endif %} {% if exportation is not null %} {{ ((exportation.quantite / item.quota) * 100) | round(2, 'floor') }} % {% else %} 0 % {% endif %} {% if exportation is not null %} {{exportation.cout}} USD {% else %} 0 USD {% endif %} {{item.dateQuota ? item.dateQuota|date('M/Y') : ""}} {% else %} Aucun quota trouvé dans la base de données. {% endfor %}