{% block stylesheets %} {% endblock %} {% block body %} {% if status == 'ok' %}
{% if reploc.dateFin != null %} {% set difference = date(reploc.dateEnr).diff(date(reploc.dateFin)).days %}

Temps de traitement : {{ difference }} jour{% if difference > 1 %}s{% endif %}

{% endif %} {% if reploc.dateEnvoiFour != null and reploc.dateRetourFour != null %} {% set difference = date(reploc.dateEnvoiFour).diff(date(reploc.dateRetourFour)).days %}

Temps chez le fournisseur : {{ difference }} jour{% if difference > 1 %}s{% endif %}

{% else %}
{% endif %}
Date d'enregistrement :
{{ reploc.dateEnr|date("d/m/Y") }}
{% if reploc.dateDiagnostic != null %}
Ecart :
{% set difference = date(reploc.dateEnr).diff(date(reploc.dateDiagnostic)).days %} {{ difference }} jour{% if difference > 1 %}s{% endif %}
Date diagnostic :
{{ reploc.dateDiagnostic|date("d/m/Y") }}
{% endif %} {% if reploc.dateEnvoiFour != null %} {% if reploc.dateEnvoiFour != null %}
Ecart :
{% if reploc.dateDiagnostic %} {% set difference = date(reploc.dateDiagnostic).diff(date(reploc.dateEnvoiFour)).days %} {{ difference }} jour{% if difference > 1 %}s{% endif %} {% else %} {% set difference = date(reploc.dateEnr).diff(date(reploc.dateEnvoiFour)).days %} {{ difference }} jour{% if difference > 1 %}s{% endif %} {% endif %}
Date envoi fournisseur :
{{ reploc.dateEnvoiFour|date("d/m/Y") }}
{% endif %} {% if reploc.dateRetourFour != null %}
Ecart :
{% set difference = date(reploc.dateEnvoiFour).diff(date(reploc.dateRetourFour)).days %} {{ difference }} jour{% if difference > 1 %}s{% endif %}
Date retour fournisseur :
{{ reploc.dateRetourFour|date("d/m/Y") }}
{% endif %} {% if reploc.dateRemiseLoc != null %}
Ecart :
{% set difference = date(reploc.dateRetourFour).diff(date(reploc.dateRemiseLoc)).days %} {{ difference }} jour{% if difference > 1 %}s{% endif %}
Date remise en location :
{{ reploc.dateRemiseLoc|date("d/m/Y") }}
{% elseif reploc.dateFin != null %}
Ecart :
{% set difference = date(reploc.dateRetourFour).diff(date(reploc.dateFin)).days %} {{ difference }} jour{% if difference > 1 %}s{% endif %}
Date de fin :
{{ reploc.dateFin|date("d/m/Y") }}
{% endif %} {% elseif reploc.dateRemiseLoc != null or reploc.dateFin != null %} {% if reploc.dateRemiseLoc != null %}
Ecart :
{% if reploc.dateDiagnostic %} {% set difference = date(reploc.dateDiagnostic).diff(date(reploc.dateRemiseLoc)).days %} {{ difference }} jour{% if difference > 1 %}s{% endif %} {% else %} {% set difference = date(reploc.dateEnr).diff(date(reploc.dateRemiseLoc)).days %} {{ difference }} jour{% if difference > 1 %}s{% endif %} {% endif %}
Date remise en location :
{{ reploc.dateRemiseLoc|date("d/m/Y") }}
{% elseif reploc.dateFin != null %}
Ecart :
{% if reploc.dateDiagnostic %} {% set difference = date(reploc.dateDiagnostic).diff(date(reploc.dateFin)).days %} {{ difference }} jour{% if difference > 1 %}s{% endif %} {% else %} {% set difference = date(reploc.dateEnr).diff(date(reploc.dateFin)).days %} {{ difference }} jour{% if difference > 1 %}s{% endif %} {% endif %}
Date de fin :
{{ reploc.dateFin|date("d/m/Y") }}
{% endif %} {% endif %}
{% else %}
Aucune Rep Loc trouvée
{% endif %} {% endblock %} {% block modal %} {% endblock %} {% block javascripts %} {% endblock %}