{# templates/client/dashboard/index.html.twig #} {% extends 'layouts/client_layout.html.twig' %} {% block title %}Mon Espace Client{% endblock %} {% block content %}
{# --- EN-TÊTE BIENVENUE --- #} {# CORRECTION : On utilise .prenoms au lieu de .prenom #}

Bienvenue, {{ app.user.prenoms }} {{ app.user.nom }} !

Suivez en temps réel l'évolution de votre patrimoine immobilier chez LUXIM.

{{ "now"|date("d F Y")|trans }}
{# --- STATISTIQUES RAPIDES --- #}
Mes Biens

{{ souscriptions|length }}

Dossiers Validés
{% set valides = 0 %} {% for s in souscriptions %} {% if s.statutDossier.value == 'VALIDE' %}{% set valides = valides + 1 %}{% endif %} {% endfor %}

{{ valides }}

Paiements validés

{% set totalPaye = 0 %} {% for s in souscriptions %}{% set totalPaye = totalPaye + s.getMontantTotalPaye %}{% endfor %} {{ totalPaye|number_format(0, ',', ' ') }} FCFA

{# --- LISTE DES SOUSCRIPTIONS --- #}
Mes Acquisitions Immobilières
{{ souscriptions|length }} Dossier(s)
{% for souscription in souscriptions %} {% else %} {% endfor %}
Détails du Lot Statut Dossier Avancement Chantier Situation Financière Actions
{# CORRECTION : On utilise .nomBien de l'entité Lot #} {{ souscription.lot.nomBien }} {{ souscription.lot.projet.nom }}
{% set badge_class = 'bg-secondary' %} {% if souscription.statutDossier.value == 'VALIDE' %} {% set badge_class = 'bg-success' %} {% elseif souscription.statutDossier.value == 'BROUILLON' %} {% set badge_class = 'bg-warning text-dark' %} {% elseif souscription.statutDossier.value == 'ANNULE' %} {% set badge_class = 'bg-danger' %} {% endif %} {{ souscription.statutDossier.value }}
{# On utilise la méthode de logique métier de Souscription #}
{{ souscription.evolutionChantier }}%
Suivi technique
{{ souscription.pourcentagePaiement }}%
Recouvrement
Aucune souscription active

Vous n'avez pas encore de dossier enregistré ou validé.

Découvrir nos projets
{% endblock %}