{% extends "admin/change_form.html" %} {% load static %} {% block extrahead %} {{ block.super }} {% endblock %} {% block content %} {% if original and original.status == 'pending' %}
| Loan Number | Amount | Disbursed | Total Repaid | Outstanding | Status | Repayment Rate |
|---|---|---|---|---|---|---|
| {{ loan.loan_number }} | KES {{ loan.principal_amount|floatformat:2 }} | {{ loan.disbursement_date|date:"Y-m-d" }} | KES {{ loan.amount_paid|floatformat:2 }} | KES {{ loan.outstanding_amount|floatformat:2 }} | {% if loan.status == 'active' %} Active {% elif loan.status == 'paid' %} Paid {% elif loan.status == 'defaulted' %} Defaulted {% else %} {{ loan.status|title }} {% endif %} | {% if loan.status == 'paid' %} 100% {% elif loan.status == 'active' %} {{ loan.repayment_percentage|default:"0" }}% {% elif loan.status == 'defaulted' %} {{ loan.repayment_percentage|default:"0" }}% {% else %} {{ loan.repayment_percentage|default:"0" }}% {% endif %} |
No previous loan history for this borrower
This will be their first loan