{% extends 'layouts/admin_layout.html.twig' %} {% block title %}Inventaire Global des Lots {% endblock %} {% block content %}
{# SECTION EN-TÊTE : TITRE ET ACTIONS #}

Vue d'ensemble du parc immobilier et suivi opérationnel des unités.

{# SECTION FILTRES : ÉPURÉE #}
{# TABLEAU DES LOTS #}
{% for lot in lots %} {% set statutValue = lot.statut.value|default(lot.statut) %} {% set badgeClass = { 'DISPONIBLE': 'bg-success-soft', 'VENDU': 'bg-danger-soft', 'RESERVE': 'bg-warning-soft' } %} {# LIGNE PRINCIPALE #} {# LIGNE DE DÉTAIL DÉROULANTE #} {% else %} {% endfor %}
Désignation Projet Statut Avancement Chantier Recouvrement Prix Standard
{# --- NAVIGATION DES 5 ONGLETS --- #}
{# 1. Fiche Technique #}
{{ include('_shared/lot/show.html.twig', {'lot': lot}) }}
{# 2. Client #}
{% if lot.souscription and lot.souscription.client %}
{{ include('_shared/user/show.html.twig', {'user': lot.souscription.client}) }}
{% else %}
Aucun acquéreur assigné.
{% endif %}
{# 3. Commercial #}
{% if lot.souscription and lot.souscription.agent %}
{{ include('_shared/user/show.html.twig', {'user': lot.souscription.agent}) }}
{% else %}
Aucun(e) commercial(e) assigné(e).
{% endif %}
{# 4. Paiement #}
{% if lot.souscription and lot.souscription.id %}
{% if lot.souscription.modeFinancement and lot.souscription.modeFinancement.value == 'ECHEANCIER' %} {{ include('_shared/paiement/_list_echeancier.html.twig', { 'echeanciers': lot.souscription.echeanciers, 'souscription': lot.souscription }) }} {% else %} {{ include('_shared/paiement/_list_simple.html.twig', {'souscription': lot.souscription, 'paiements': lot.souscription.paiements }) }} {% endif %}
{% else %}
Aucun paiement enregistré.
{% endif %}
{# 5. Travaux #}
{{ render(controller('App\\Controller\\Shared\\LotSharedController::etapesFragment', {'id': lot.id})) }}

Aucun lot trouvé.

{% endblock %}