{% extends 'base.html' %} {% load humanize %} {% load utils_filters %} {% block title %}Loans - Haven Grazuri Investment Limited{% endblock %} {% block content %}
Total Loans
{{ total_loans }}

Average Amount: KES {{ advanced_stats.avg_loan_amount|floatformat:2 }}

Active Loans
{{ active_loans }}

Overdue: {{ advanced_stats.overdue_loans }}

Total Disbursed
KES {{ total_disbursed|floatformat:2 }}

Default Rate: {{ advanced_stats.default_rate|percentage }}

Total Collected
KES {{ total_collected|floatformat:2 }}
{% with collection_rate=total_collected|divide:total_disbursed|multiply:100 %}

Collection Rate: {{ collection_rate|percentage }}

{% endwith %}

Loan Distribution by Product

{% for product in advanced_stats.loans_by_product %} {% endfor %}
Product Type Count Total Amount
{{ product.loan_product__product_type }} {{ product.count }} KES {{ product.total_amount|floatformat:2 }}

Top Borrowers

{% for client in advanced_stats.client_summary %} {% endfor %}
Client Total Loans Active Loans Total Amount
{{ client.borrower__first_name }} {{ client.borrower__last_name }} {{ client.total_loans }} {{ client.active_loans }} KES {{ client.total_amount|floatformat:2 }}

Loan Administration

Monitor and manage all client loans, process payments, and handle loan status updates.

🔍
🔍
đŸ’ĩ
📅 to
✕ Clear Filters
{% if request.GET.search or request.GET.status or request.GET.product_type or request.GET.date_from or request.GET.date_to %}
🔍 {% if request.GET.search %}Search: "{{ request.GET.search }}"{% endif %} {% if request.GET.status %}{% if request.GET.search %}, {% endif %}Status: {{ request.GET.status|title }}{% endif %} {% if request.GET.product_type %}{% if request.GET.search or request.GET.status %}, {% endif %}Product: {{ request.GET.product_type|title }}{% endif %} {% if request.GET.date_from or request.GET.date_to %}{% if request.GET.search or request.GET.status or request.GET.product_type %}, {% endif %}Date Range: {{ request.GET.date_from|default:"Start" }} to {{ request.GET.date_to|default:"End" }}{% endif %}
✕Clear all
{% endif %}
{% include 'loans/loans_table.html' %}
{% if loans.paginator.num_pages > 1 %}
{% if loans.has_previous %} Previous {% endif %} {% if loans.has_next %} Next {% endif %}
{% endif %} {% endblock %}