{% extends 'front/' ~ website().configuration.template ~ '/base.html.twig' %} {% trans_default_domain 'front_customer' %} {% set seoTitle = "Espace client"|trans %} {% set seoNoIndex = false %} {% block stylesheets %} {{ parent() }} {{ encore_entry_link_tags('front-ec-international-customer', null, 'front_ec_international') }} {% endblock %} {% block javascripts %} {{ parent() }} {% for file in encore_entry_js_files('front-ec-international-customer', 'front_ec_international') %} {% endfor %} {% endblock %} {% block body %}
{% set path = customer.logo.dirname is defined ? customer.logo.dirname : null %} {% set logo = path ? path : 'medias/placeholder.jpg' %} {{ customer.name }}

{{ customer.name }}

{{ "Bienvenue dans votre interface client."|trans }}

{% set count = 0 %} {% for user in customer.users %} {% for order in user.orders %} {% set count = count + 1 %} {% endfor %} {% endfor %} {% set limit = 10 %}

{{ "Suivi de vos commandes"|trans }}

{% for user in customer.users %} {% for quotation in user.quotations %} {% set i18n = quotation.status|i18n(app.request.locale) %} {% set i18n = i18n and i18n.title ? i18n : quotation.status|i18n('fr') %} {% set i18nStatusTime = quotation.status and i18n and i18n.placeholder is defined and i18n.placeholder ? i18n.placeholder : 'N/C'|trans %} {% set i18nStatusState = quotation.status and i18n and i18n.title is defined and i18n.title ? i18n.title : 'N/C'|trans %} {% set status = quotation|quotationStatus %} {% set order = quotation.order %} {% set projectManager = quotation.projectManager is defined and quotation.projectManager and quotation.projectManager.name ? quotation.projectManager.name : null %} {% endfor %} {% endfor %}
{{ "N° d'offre
de prix"|trans|raw }}
{{ "N° CDE
Client"|trans|raw }}
{{ "Contacts"|trans|raw }} {{ "Temps restant
de fabrication"|trans|raw }}
{{ "État"|trans|raw }} {{ "Visuel
Pièce"|trans|raw }}
{{ "Rapport
dimensionnel"|trans|raw }}
{{ "Livraison
prévue"|trans|raw }}
{{ quotation.number }} {% if order.dirname %} {% endif %} {% if order.number %} {{ order.number }} {% else %} {{ "Non renseigné
lors du lancement"|trans|raw }} {% endif %} {% if order.dirname %}
{% endif %}
{{ user.firstName }} {{ user.lastName }}
{% if status.code == 'in-progress' %} {% set dueDays = quotation|ecDueDays %} {% if dueDays == 1 %} {{ dueDays ~ " " ~ "jour"|trans }} {% elseif dueDays > 1 %} {{ dueDays ~ " " ~ "jours"|trans }} {% endif %} {% else %} {{ i18nStatusTime|raw }} {% endif %}
{% if order.remainingTime %} {{ "Retard de"|trans|raw }}
{% if order.delay == 1 %} {{ order.remainingTime ~ " " ~ "jour"|trans|raw }} {% elseif order.delay > 1 %} {{ order.remainingTime ~ " " ~ "jours"|trans|raw }} {% endif %}
{% endif %}
{{ i18nStatusState }}
{% set progress = quotation|ecProgress %} {% set progressColor = status.progressColor is defined ? status.progressColor : status.color %}
{% if order.pictures|length > 0 %} {% else %} {{ "Non disponible"|trans }} {% endif %} {% if order.pictures|length > 2 %} {% endif %} {% if order.dirnameOther is defined and order.dirnameOther %} {% set path = order.dirnameOther ? order.dirnameOther : 'medias/placeholder.jpg' %} {% endif %} {% set haveTracking = order.trackingTntNumber|length > 0 or order.trackingTntNumberSecond|length > 0 or order.trackingDhlNumber|length > 0 or order.trackingDhlNumberSecond|length > 0 or order.trackingOthers|length > 0 %} {% if order.handTracking %} {{ "Remis en main propre"|trans }} {% endif %} {% if haveTracking and status.code != 'delivered' %} {{ order.deliveryDate|localizeddate('none', 'none', app.request.locale, null, 'dd/MM/Y') }}
{% if order.trackingTntNumber|length > 0 or order.trackingTntNumberSecond|length > 0 %} {{ "N° de tracking TNT"|trans }} {% include '@ec_international/core/tracking.html.twig' with {'trackings': order.trackingTntNumber, 'tnt': true} %} {% include '@ec_international/core/tracking.html.twig' with {'trackings': order.trackingTntNumberSecond, 'tnt': true} %} {% endif %} {% if order.trackingDhlNumber|length > 0 or order.trackingDhlNumberSecond|length > 0 %} {{ "N° de tracking DHL"|trans }} {% include '@ec_international/core/tracking.html.twig' with {'trackings': order.trackingDhlNumber, 'dhl': true} %} {% include '@ec_international/core/tracking.html.twig' with {'trackings': order.trackingDhlNumberSecond, 'dhl': true} %} {% endif %} {% include '@ec_international/core/tracking.html.twig' with {'trackings': order.trackingOthers, 'others': true} %} {% elseif haveTracking and status.code == 'delivered' %} {{ 'Livré'|trans }}
{% if order.trackingTntNumber|length > 0 or order.trackingTntNumberSecond|length > 0 %} {{ "N° de tracking TNT"|trans }} {% include '@ec_international/core/tracking.html.twig' with {'trackings': order.trackingTntNumber, 'tnt': true} %} {% include '@ec_international/core/tracking.html.twig' with {'trackings': order.trackingTntNumberSecond, 'tnt': true} %} {% endif %} {% if order.trackingDhlNumber|length > 0 or order.trackingDhlNumberSecond|length > 0 %} {{ "N° de tracking DHL"|trans }} {% include '@ec_international/core/tracking.html.twig' with {'trackings': order.trackingDhlNumber, 'dhl': true} %} {% include '@ec_international/core/tracking.html.twig' with {'trackings': order.trackingDhlNumberSecond, 'dhl': true} %} {% endif %} {% include '@ec_international/core/tracking.html.twig' with {'trackings': order.trackingOthers, 'others': true} %} {% elseif order.deliveryDate < 'now'|datetime and status.code == 'in-progress' %} {% else %} {{ order.deliveryDate|localizeddate('none', 'none', app.request.locale, null, 'dd/MM/Y') }} {% endif %}
{% endblock %}