{% extends 'base.html' %} {% load static %} {% load humanize %} {% load json_tags %} {% block title %}Dashboard - HAVEN GRAZURI INVESTMENT LIMITED{% endblock %} {% block content %}

Dashboard

💵

Active Loans

{{ active_loans }}

{% if active_loans_change >= 0 %}Increased{% else %}Decreased{% endif %} by {% if active_loans_change >= 0 %} {% else %} {% endif %} {{ active_loans_change|floatformat:1 }}%

👥

Active Clients

{{ active_users }}

{% if active_users_change >= 0 %}Increased{% else %}Decreased{% endif %} by {% if active_users_change >= 0 %} {% else %} {% endif %} {{ active_users_change|floatformat:1 }}%

Pending Applications

{{ pending_applications }}

{% if pending_applications_change >= 0 %}Increased{% else %}Decreased{% endif %} by {% if pending_applications_change >= 0 %} {% else %} {% endif %} {{ pending_applications_change|floatformat:1 }}%

⚠️

Default Rate

{{ default_rate|floatformat:1 }}%

{% if default_rate_change <= 0 %}Decreased{% else %}Increased{% endif %} by {% if default_rate_change <= 0 %} {% else %} {% endif %} {{ default_rate_change|floatformat:1 }}%

Loan Performance

Monthly disbursements vs collections

Recent Activity

Latest system activities

    {% for activity in recent_activity %}
  • {% if not forloop.last %} {% endif %}

    {{ activity.user }} {{ activity.action }}

  • {% empty %}
  • No recent activity

  • {% endfor %}

Loan Distribution

Breakdown by loan status

Client Growth

New client registrations over time

{% if dashboard_data.enhanced %}

Collection Rate

{{ dashboard_data.enhanced.loan_performance.collection_rate|floatformat:1 }}%

Portfolio Value

KES {{ dashboard_data.enhanced.loan_performance.total_disbursed|floatformat:0|intcomma }}

📈

Overdue Rate

{{ dashboard_data.enhanced.portfolio_quality.overdue_rate|floatformat:1 }}%

⚠️
{% endif %} {% endblock %} {% block scripts %} {% endblock %}