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

Utile aux Bailleur

renter - index.html.twig - $rents = $rentRepository->findRenter($user)

Listes des Locations de : {{ app.user.name }}

Gestion Panel -

findRenter() et findDateLastreglRenter()

recherche des locations par bailleur

si pas bailleur alors pas de resultat

{% endblock %} {% block dashboard_body %}
{% set totalRevenus = 0 %} {% for r in rentals %} {% if r.getRent.isMonthlyRecurring %} {% set totalRevenus = totalRevenus + (r.getRent.price * r.getRent.paidMonths) %} {% elseif r.getRent.isPaid %} {% set totalRevenus = totalRevenus + r.getRent.price %} {% endif %} {% endfor %} {# voir pour isPaid #}

Revenus du mois : {{ "now"|date("M","Europe/Paris") }}

{{ totalRevenus }} €

Réservations

{{ rentals|length }}

Clients

{{ nbCustomers }}

Revenus mois en cours
{% for rent in rentals|slice(0,10) %} {% endfor %}
# Modèle Adresse Client startdate dateReference Paiement Nb Jours Montant Action
{{ rent.getRent.id }} {{ rent.getRent.caro.carType.name }} {{ rent.getRent.caro.adresse }} {{ rent.getRent.user.name }} {{ rent.getRent.startDate|date("d/m/Y") }} {{ rent.getRent.dateReference|date("d/m/Y") }} {% if rent.ongoing > 30 and rent.ongoing < 45 %} En attente {% elseif rent.ongoing > 45 %} Probleme {% else %} Regler {% endif %} {{ rent.ongoing }} {{ rent.getRent.price }} € Detail
Probleme Retard paie
{% for problem in problams|slice(0,10) %} {% endfor %}
# Modèle Adres Client startdate dateReference Statut Nb Jours Montant Action
{{ problem.getRent.id }} {{ problem.getRent.caro.carType.name }} {{ problem.getRent.caro.adresse }} {{ problem.getRent.user.name }} {{ problem.getRent.startDate|date("d/m/Y") }} {{ problem.getRent.dateReference|date("d/m/Y") }} {% if problem.ongoing >= 30 and problem.ongoing < 45 %} En attente du paiement {% elseif problem.ongoing > 45 %} Probleme paiement {% else %} Regler {% endif %} {{ problem.ongoing }} {{ problem.getRent.price }} € Detail Billing
{% endblock %} {% block panel_scripts %} {% endblock %}