{% extends 'base.html' %} {% load humanize %} {% block title %}Client Management - Enhanced Dashboard{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Client Management Dashboard

Comprehensive client analytics and management

{% load permission_tags %} {% has_permission user 'clients' 'create' as can_create_client %} {% if can_create_client %} +Add New Client {% endif %}
{{ total_clients|default:0 }}
Total Clients
{{ active_clients|default:0 }}
Active Clients
{{ new_clients_this_month|default:0 }}
New This Month
KES {{ total_portfolio|default:0|floatformat:0|intcomma }}
Total Portfolio
Client Demographics
Portfolio Distribution
Performance Metrics
Growth Trends

Client List

Showing {{ clients|length }} of {{ total_clients }} clients
{% for client in clients %} {% empty %} {% endfor %}
Client Contact Branch Loans Portfolio Value Status Last Activity Actions
{% if client.profile_picture %} {{ client.get_full_name }} {% else %}
{{ client.first_name.0|upper }}{{ client.last_name.0|upper }}
{% endif %}
{{ client.get_full_name }}
ID: {{ client.id_number|default:"N/A" }}
{{ client.phone_number|default:"N/A" }}
{{ client.email|default:"N/A" }}
{{ client.branch.name|default:"N/A" }}
{{ client.total_loans|default:0 }}
{{ client.active_loans|default:0 }} active
KES {{ client.portfolio_value|default:0|floatformat:0|intcomma }}
{{ client.status|default:"Active"|title }} {{ client.last_login|date:"M d, Y"|default:"Never" }}
👥
No clients found
{% endblock %} {% block extra_js %} {% endblock %}