{#

{% for ent in entity %} {% set current = date() %} {% set res = ((current|date('d-m-Y') - ent.plannedstartdate|date('d-m-Y')) * 100) / (ent.plannedenddate|date('d-m-y') - ent.plannedstartdate|date('d-m-y') )%} {% if date(current|date('d-m-Y')) <= date(ent.plannedstartdate|date('d-m-Y')) %} {% set res = 0 %} {% endif %} {% if date(current|date('d-m-Y')) >= date(ent.plannedenddate|date('d-m-Y')) %} {% set res = 100 %} {% endif %} {{ent.name|title}}: Budget: {{ent.budget}} $€ Hoursman: {{ent.hoursman}}h/m
{% endfor %}
#}