{# templates/commercial/portefeuille/tabs/contrat/index.html.twig #}
{# Section Gauche : Détails techniques du bien #}
Détails du Produit
{% if lot.surfaceBatie %} {% endif %}
Projet Immobilier {{ lot.projet ? lot.projet.nom : 'Non spécifié' }}
Référence / Numéro Lot {{ lot.numeroLot }}
Superficie Terrain {{ lot.surfaceTerrain|number_format(2, ',', ' ') }} m²
Surface Bâtie {{ lot.surfaceBatie|number_format(2, ',', ' ') }} m²
Type de bien {{ lot.typeBien ? lot.typeBien.libelle : 'N/A' }}
Prix au m² (Négocié) {{ prixM2|number_format(0, ',', ' ') }} FCFA / m²
{# Statut du lot : Utilisation sécurisée de l'Enum (Backing Value) #}
Statut Actuel du Lot {{ lot.statut.value|upper }}
{# Section Droite : Conditions Financières #}
{# Carte du Prix Final #}
Prix de Vente Final
{{ souscription.prixFinal|number_format(0, ',', ' ') }}
FRANC CFA (FCFA)
{# Bilan Financier Détaillé #}
Bilan des Paiements (Validés)
Total encaissé : {{ dejaPaye|number_format(0, ',', ' ') }} FCFA
Reste à recouvrer : {{ resteAPayer|number_format(0, ',', ' ') }} FCFA
{# Barre de progression du recouvrement #}
{% set pct_recouvrement = (souscription.prixFinal > 0) ? (dejaPaye / souscription.prixFinal * 100) : 0 %}
{{ pct_recouvrement|round(1) }}% du montant total réglé

Date de souscription : {{ souscription.dateSouscription ? souscription.dateSouscription|date('d/m/Y') : 'En attente' }}
{# Actions Documentaires #}