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

{{ title }}

{{ total_count }} active loans in portfolio

📊
Total Portfolio Value
KES {{ total_portfolio|floatformat:2|intcomma }}
⚠️
Outstanding Balance
KES {{ total_outstanding|floatformat:2|intcomma }}
1.
Active Loans
{{ total_count|intcomma }}

Active Loans Portfolio

Detailed breakdown of all active loans in the portfolio

{% if loans %}
{% for loan in loans %} {% endfor %}
Borrower Principal Amount Total Amount Amount Paid Outstanding Due Date Actions
{% if loan.borrower.profile_image or loan.borrower.selfie %} {{ loan.borrower.get_full_name }} {% else %}
{{ loan.borrower.get_initials }}
{% endif %}
{{ loan.borrower.get_full_name }}
{{ loan.borrower.phone_number }}
KES {{ loan.principal_amount|floatformat:2|intcomma }} KES {{ loan.total_amount|floatformat:2|intcomma }} KES {{ loan.amount_paid|floatformat:2|intcomma }} {% with outstanding=loan.total_amount|sub:loan.amount_paid %} KES {{ outstanding|floatformat:2|intcomma }} {% endwith %} {{ loan.due_date|date:"M d, Y" }} {% if loan.due_date < today %} Overdue {% endif %} View Details
{% if loans.has_other_pages %}
{% if loans.has_previous %} Previous {% endif %} {% if loans.has_next %} Next {% endif %}
{% endif %} {% else %}
📊

No active loans found

There are currently no active loans in the portfolio.

{% endif %}
{% endblock %}