{% extends 'dashboard.html.twig' %} {% block sidebard %} {% endblock %} {% block dashboard_current %} {% endblock %} {% block dashboard_body %}

dans renter/rent_details.html.twig

Date en cours : {{ "now"|date("d-m-Y") }}

Info Loueur

{{ rent.user.name }}

{{ rent.user.tel }}

{{ rent.user.email }}

Location

{{ rent.caro.adresse }}

Date Start :{{ rent.startDate|date('d-m-Y') }}

Date Last Regl :{{ rent.datelastregl|date('d-m-Y') }}

Réservation #{{ rent.id }}

Client {{ rent.user.name }}

Contact {{ rent.user.email }}

Nom du Hangar : {{ rent.caro.image }}

{% if rent.caro.available %}

Hangar Libre>

{% else %}

Hangar loué

{% endif %}

Date en cours : {{ "now"|date("d-m-Y") }}

Date Debut Location : {{ rent.startDate|date('d-m-Y') }}

Date Dernier Reglement : {{ rent.datelastregl|date('d-m-Y') }}

est Payé ? : {{ rent.isPaid }}

est Mois Payé ? : {{ rent.PaidMonths }}

{% if rent.PaidMonths %}

Payée pour le mois

{% else %}

Location en attente de paiement

{% endif %}
{% if rent.isMonthlyRecurring %}

Location Mensuel : {{ rent.price }} euros

{% else %} {% if rent.isPaid %} Payée pour la duré {% endif %}

Location Dates Fixes

{% endif %} {# {% if rent.isPaid %} Payée pour la duré {% else %} En attente du paiement {{ rent.price }} € {% endif %} #}

{% endblock %}