{{ clients|length }} client{{ 's' if clients|length != 1 else '' }} found

Export {% if current_user.is_admin %} {% endif %}
{% if current_user.is_admin %} {% endif %} {% if custom_field_definitions %} {% for definition in custom_field_definitions %} {% endfor %} {% endif %} {% for client in clients %} {% if current_user.is_admin %} {% endif %} {% if custom_field_definitions %} {% for definition in custom_field_definitions %} {% endfor %} {% endif %} {% else %} {% endfor %}
Name Contact Person Email Status Projects Portal{{ definition.label }}Actions
{{ client.name }} {{ client.contact_person or '—' }} {% if client.email %} {{ client.email }} {% else %} — {% endif %} {% if client.status == 'active' %} Active {% else %} Inactive {% endif %} {{ client.active_projects }}/{{ client.total_projects }} {% if client.portal_enabled %} Enabled {% else %} Disabled {% endif %} {% if client.custom_fields and client.custom_fields.get(definition.field_key) %} {% set field_value = client.custom_fields.get(definition.field_key) %} {% set link_template = link_templates_by_field.get(definition.field_key) if (link_templates_by_field is defined and link_templates_by_field) else None %} {% if link_template %} {{ field_value }} {% if link_template.icon %} {% endif %} {% else %} {{ field_value }} {% endif %} {% else %} — {% endif %} View
{% if not clients %} {% from "components/ui.html" import empty_state %} {% set actions %} {% if current_user.is_admin %} Create Your First Client {% endif %} Learn More {% endset %} {% if search or status != 'active' %} {{ empty_state('fas fa-search', 'No Clients Match Your Filters', 'Try adjusting your filters to see more results. You can clear filters or create a new client that matches your criteria.', actions, type='no-results') }} {% else %} {{ empty_state('fas fa-users', 'No Clients Yet', 'Clients help you organize your projects and manage relationships. Create your first client to get started!', actions, type='no-data') }} {% endif %} {% endif %}