{% extends 'renter/index.html.twig' %} {% block sidebard %} {% endblock %} {% block dashboard_current %} {% endblock %} {% block dashboard_body %}

Locations - renter/rents.html.twig - {{ app.user.name }}

{% for r in rentals %} {% endfor %}
# Modèle Dates Montant Proprietaire Paiement Statut
{{ r.getRent.id }} {{ r.getRent.caro.carType.name }} {{ r.getRent.startDate|date("d/m/Y") }} {% if not r.getRent.isMonthlyRecurring %} - {{ r.getRent.endDate|date("d/m/Y") }} {% else %} Mensuel {% endif %} {{ r.getRent.price }} € {% if r.getRent.isMonthlyRecurring %} /mois {% endif %} {{ r.getRent.user.name }} {% if r.getRent.PaidMonths %} Payée pour le mois {% else %} En attente du paiement {% endif %} {% if r.getRent.isMonthlyRecurring %} {% if r.getRent.finished == 1 %} Terminé {% elseif r.ongoing %} En cours {% else %} Réservé {% endif %} {% else %} {% if r.ongoing%} En cours {% elseif r.notStarted %} Réservé {% else %} Terminé {% endif %} {% endif %} Détails Billing
{% endblock %} {% block panel_scripts %} {% endblock %}