{% extends 'base.html' %} {% load static %} {% load custom_filters %} {% block page_title %}Loan Management{% endblock %} {% block header_actions %}
{% endblock %} {% block content %}| Borrower | Amount | Interest | Total Due | Issued | Due Date | Status | Actions |
|---|---|---|---|---|---|---|---|
|
{{ loan.borrower_name }}
{% if loan.borrower_phone %}
{{ loan.borrower_phone }}
{% endif %}
|
KSh {{ loan.amount|floatformat:2 }} | {{ loan.interest_rate }}% | KSh {{ loan.total_due|floatformat:2 }} | {{ loan.issued_date|date:"M d, Y" }} |
{{ loan.due_date|date:"M d, Y" }}
{% if loan.days_remaining > 0 %}
{{ loan.days_remaining }} days left
{% elif loan.is_overdue %}
{{ loan.days_remaining|abs }} days overdue
{% endif %}
|
{% if loan.status == 'active' %} {% if loan.is_overdue %} Overdue {% else %} Active {% endif %} {% elif loan.status == 'paid' %} Paid {% elif loan.status == 'defaulted' %} Defaulted {% endif %} |
|
No loans foundAdd your first loan using the "Add Loan" button. |
|||||||
No overdue loans
{% endif %}No recent payments
{% endif %}