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

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

Total Principal
KES {{ total_principal|floatformat:2 }}
Total Interest
KES {{ total_interest|floatformat:2 }}
Total Collected
KES {{ total_collected|floatformat:2 }}

Completed Loans 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 with Completed Loans

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

Completed Loans

View and analyze all completed (paid) loans in the system.

🔍
💵
📅 to
Clear Filters
{% if request.GET.search 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.product_type %}{% if request.GET.search %}, {% 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.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 %}