{% import 'macros.html.twig' as macros %} {% set counter = 0 %} {% for elt in companyestimates %} {% if elt.issigned == true %} {% set counter = counter + 1 %} {% set downloadEstimateFileName = macros.cleanstring(attribute(elt, 'estimateimg'), 0, 46)|trim|replace({' ': '_'}) %}
{% if attribute(elt, 'estimateimg')|split('.')|last|lower == 'pdf' %}
{% else %}
{% if attribute(elt, 'estimateimg')|split('.')|last|lower in ['jpg', 'jpeg', 'png', 'gif', 'webp'] %} element graphique {% elseif attribute(elt, 'estimateimg')|split('.')|last|lower in ['csv'] %} logo csv {% else %}
logo devis
{{ attribute(elt, 'estimateimg')|split('.')|last|upper }}
{% endif %} {% endif %}

{% if counter == 1 %} Devis {% else %} Devis{{ ('%02d'|format(counter)) }} {% endif %}

{% if userRole == 'ROLE_ADMIN' %}
{% endif %}
{% if attribute(elt, 'estimateimg')|split('.')|last|lower == 'pdf' %} {% endif %} {% elseif elt.issigned == false %} {% set counter = counter + 1 %}
{% if attribute(elt, 'estimateimg')|split('.')|last|lower == 'pdf' %}
{% else %} {% if attribute(elt, 'estimateimg')|split('.')|last|lower in ['jpg', 'jpeg', 'png', 'gif', 'webp'] %}
element graphique
{% elseif attribute(elt, 'estimateimg')|split('.')|last|lower in ['csv'] %}
logo csv
{% else %}
logo devis
{{ attribute(elt, 'estimateimg')|split('.')|last|upper }}
{% endif %} {% endif %}

{% if counter == 1 %} Devis {% else %} Devis{{ ('%02d'|format(counter)) }} {% endif %}

voir

signer

{% if userRole == 'ROLE_ADMIN' %}
{% endif %}
{% if attribute(elt, 'estimateimg')|split('.')|last|lower == 'pdf' %} {% endif %} {% endif %} {% endfor %}