{% extends 'layouts/admin_layout.html.twig' %} {% block title %}Dossiers Clients {% endblock %} {% block content %}
{# SECTION EN-TÊTE #}

Historique et suivi opérationnel des dossiers. Page {{ souscriptions.currentPageNumber }}

{# STATISTIQUES RAPIDES #}
Total Portefeuille
{{ souscriptions.getTotalItemCount }} Dossier(s)
Dossiers filtrés
{{ souscriptions|length }} sur cette page
Recherche active
{% if app.request.query.get('q') %} Mot-clé : "{{ app.request.query.get('q') }}" {% else %} Aucun filtre textuel {% endif %}
{# BARRE DE RECHERCHE & FILTRES #}
{% set currentStatus = app.request.query.get('status', 'ALL') %}
{# TABLEAU AVEC ACCORDÉON #}
{% for s in souscriptions %} {% set isEnAttente = (s.statutDossier.value == 'EN_ATTENTE') %} {% set lot = s.lot %} {# LIGNE PRINCIPALE #} {# LIGNE DE DÉTAIL DÉROULANTE #} {% else %} {% endfor %}
Client Bien / Lot Recouvrement Chantier Statut Date
{# --- NAVIGATION DES 5 ONGLETS --- #}
{# 1. Fiche Technique #}
{{ include('_shared/lot/show.html.twig', {'lot': s.lot}) }}
{# 2. Client #}
{{ include('_shared/user/show_client.html.twig', {'user': s.client}) }}
{# 3. Commercial #}
Responsable commercial du dossier
{# Modal d'affectation #}
{% if s.agent %}
{{ include('_shared/user/show.html.twig', {'user': s.agent}) }}
{% else %}
Aucun agent assigné.
{% endif %}
{# 4. Paiement #}
{% if s.modeFinancement and s.modeFinancement.value == 'ECHEANCIER' %} {{ include('_shared/paiement/_list_echeancier.html.twig', { 'echeanciers': s.echeanciers, 'souscription': s }) }} {% else %} {{ include('_shared/paiement/_list_simple.html.twig', {'souscription': s, 'paiements': s.paiements }) }} {% endif %}
{# 5. Travaux #}
{{ render(controller('App\\Controller\\Shared\\LotSharedController::etapesFragment', {'id': s.lot.id})) }}
{# PAGINATION #}
{% endblock %}