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

Payer - Panel -user/index.html - $rentRepository->findBy

Bienvenue : {{ app.user.name }}

dans user/index.html.twig

{{ rentals|length }}

{# reste a voir le calcul avec IsPaid #} {% set totalPrice = 0 %} {% set totalReste = 0 %} {% for r in rentals %} {% set totalPrice = totalPrice + r.price %} {% set totalReste = totalReste + r.price %} {% endfor %}

Facture Regler ce mois

{{ totalPrice|number_format(2) }} €

Reste a Regler ce mois

{{ totalReste|number_format(2) }} €

Dernières réservations de : {{ app.user }}
{% for rent in rentals %} {% endfor %}
# Modèle Adresse Hangar Bailleur Dates Start Dates Regl Prix/mois
{{ rent.id }} {{ rent.caro.carType.name }} {{ rent.caro.id }} : {{ rent.caro.adresse }} {{ rent.caro.renter.name }} {{ rent.user.firstname }} {{ rent.startDate ? rent.startDate|date('Y-m-d') : '' }} {{ rent.datelastregl ? rent.datelastregl|date('Y-m-d') : '' }} {{ rent.price }} € Détails
Afficher toutes les locations
{% endblock %} {% block panel_scripts %} {% endblock %}