{% extends 'base.html' %} {% load humanize %} {% block title %}Loan Aging Report - Haven Grazuri{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

⏳ Loan Aging Report

Portfolio at Risk  ·  As at {{ as_of|date:"d M Y" }}

Active Loans
{{ total_active_loans }}
Total in portfolio
Portfolio Outstanding
KES {{ total_portfolio|floatformat:0|intcomma }}
Overdue Amount
KES {{ total_overdue|floatformat:0|intcomma }}
{{ overdue_count }} loan(s)
PAR (Portfolio at Risk)
{{ par_ratio|floatformat:1 }}%
{% if par_ratio <= 5 %}Healthy{% elif par_ratio <= 15 %}Monitor{% else %}Critical{% endif %}
Aging Buckets Summary
{% for bucket in buckets %} {% with idx=forloop.counter0 %}
{{ bucket.label }}
{{ bucket.count }} loan(s)
KES {{ bucket.outstanding|floatformat:0|intcomma }}
{{ bucket.percentage }}% of portfolio
{% endwith %} {% endfor %}
{% for bucket in buckets %} {% if bucket.count > 0 %}
{{ bucket.label }}   {{ bucket.count }}   KES {{ bucket.outstanding|floatformat:0|intcomma }}
{% for loan in bucket.loans %} {% endfor %}
Loan #BorrowerPhoneProduct PrincipalOutstanding Due DateDays Overdue
{{ loan.loan_number }} {{ loan.borrower_name }} {{ loan.borrower_phone }} {{ loan.product }} {{ loan.principal|floatformat:0|intcomma }} {{ loan.outstanding|floatformat:0|intcomma }} {{ loan.due_date|date:"d/m/Y" }} {% if loan.days_past_due == 0 %} Current {% elif loan.days_past_due <= 30 %} {{ loan.days_past_due }}d {% elif loan.days_past_due <= 60 %} {{ loan.days_past_due }}d {% elif loan.days_past_due <= 90 %} {{ loan.days_past_due }}d {% else %} {{ loan.days_past_due }}d {% endif %}
{% endif %} {% endfor %}
{% endblock %} {% block extra_js %} {% endblock %}