{% extends '@App/app.html.twig' %} {% block page_header %}{% endblock %} {% block content %} {% set stats = client_stats|default({active: clients|length, companies: 0, individuals: 0, archived: 0, total: clients|length}) %} {% set type_options = client_filter_options.types|default({}) %} {% set city_options = client_filter_options.cities|default([]) %} {% set category_options = client_filter_options.categories|default([]) %} {% set breakdown = client_type_breakdown|default([]) %} {% set current_filters = filters|default({q: '', type: '', status: 'active', city: '', perPage: 20}) %} {% set organization_name = company.nom|default(organization.nom|default('Nova Consulting SAS')) %} {% set visible_total = clients|length %} {% set page_size = current_filters.perPage|default(20) %}

Clients

Gérez les entreprises, particuliers et contacts commerciaux de la société active.

Nouveau client
Clients actifs {{ stats.active|default(0) }}
Entreprises {{ stats.companies|default(0) }}
Particuliers {{ stats.individuals|default(0) }}
Clients archivés {{ stats.archived|default(0) }}

Les clients sont filtrés par société active. {{ organization_name }}

{% for client in clients %} {% set client_name = client.nom|default('Client') %} {% set client_type_key = client.type|default('AUTRE') %} {% set client_type_label = type_options[client_type_key]|default(client_type_key|title) %} {% set client_siret = client.fundupSocieteId|default(null) ? client.fundupSocieteId : '—' %} {% set client_city = client.ville|default('—') ?: '—' %} {% set contact = client.users|default([])|first %} {% set contact_name = contact ? ((contact.prenom|default('') ~ ' ' ~ contact.nom|default(''))|trim ?: contact.email|default(client_name)) : client_name %} {% set contact_initials = contact_name|split(' ')|map(part => part|first)|join|upper|slice(0, 2) ?: 'CL' %} {% set client_phone = client.telephone|default(null) ? client.telephone : '—' %} {% set client_status = client.archive|default(false) ? 'Archivé' : 'Actif' %} {% set created_at = client.createdAt|default(null) %} {% set activity = created_at ? created_at|date('d/m/Y') : '—' %} {% set resolved_client_logo = client_logo_path(client) %} {% set tone = client_type_key == 'ENTREPRISE' ? 'blue' : (client_type_key == 'PARTICULIER' ? 'violet' : (client_type_key == 'ASSOCIATION' ? 'amber' : (client_type_key == 'ADMINISTRATION' ? 'teal' : 'slate'))) %} {% set icon = client_type_key == 'PARTICULIER' ? 'ti ti-user-filled' : (client_type_key == 'ASSOCIATION' ? 'ti ti-users-group' : (client_type_key == 'ADMINISTRATION' ? 'ti ti-building-bank' : 'ti ti-building')) %} {% endfor %}
Client Type Catégorie Ville Contact principal Statut Actions
{% if resolved_client_logo %} {% else %} {% endif %} {{ client_name }} {{ client_type_label }} {{ client.categorie ? client.categorie.nom : '—' }} {{ client_city }} {{ contact_initials }} {{ contact_name }} {{ client_status }}
{% endblock %}