{% extends 'base.html' %} {% load humanize %} {% load static %} {% block title %}Loans Due Dashboard - Repayment Tracking{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
Daily Payments
{{ daily_loans_count|default:0 }}
KSh {{ daily_amount_due|default:0|floatformat:0|intcomma }}
Weekly Payments
{{ weekly_loans_count|default:0 }}
KSh {{ weekly_amount_due|default:0|floatformat:0|intcomma }}
Monthly Payments
{{ monthly_loans_count|default:0 }}
KSh {{ monthly_amount_due|default:0|floatformat:0|intcomma }}
Total Due
{{ total_loans_count|default:0 }}
KSh {{ total_amount_due|default:0|floatformat:0|intcomma }}
{% if daily_loans %}

Daily Payments

Critical attention required - payments due every day

{{ daily_loans|length }} of {{ daily_loans_count }} loans {% if daily_loans_count > 6 %} {% endif %}
{% for loan in daily_loans %}
{{ loan.loan_number }}
{{ loan.urgency|title }}
{{ loan.borrower_name|slice:":2"|upper }}

{{ loan.borrower_name }}

{{ loan.borrower_phone }}

Outstanding
KSh {{ loan.outstanding_balance|floatformat:0|intcomma }}
Amount Paid
KSh {{ loan.amount_paid|default:0|floatformat:0|intcomma }}
KSh {{ loan.expected_payment_amount|floatformat:0|intcomma }}
Daily Payment Required
Due: {{ loan.due_date|date:"M d, Y" }}
{% if loan.days_until_due < 0 %} {% widthratio loan.days_until_due 1 -1 %} days overdue {% elif loan.days_until_due == 0 %} Due today! {% elif loan.days_until_due == 1 %} Due tomorrow {% else %} {{ loan.days_until_due }} days {% endif %}
{% endfor %}
{% if pagination.daily_total_pages > 1 and not pagination.daily_show_all %}
Showing {{ daily_loans|length }} of {{ daily_loans_count }} loans
{% if pagination.daily_has_prev %} {% endif %} Page {{ pagination.daily_page }} of {{ pagination.daily_total_pages }} {% if pagination.daily_has_next %} {% endif %}
{% endif %}
{% endif %} {% if weekly_loans %}

Weekly Payments

Weekly payment schedule - monitor closely

{{ weekly_loans|length }} of {{ weekly_loans_count }} loans {% if weekly_loans_count > 6 %} {% endif %}
{% for loan in weekly_loans %}
{{ loan.loan_number }}
{{ loan.urgency|title }}
{{ loan.borrower_name|slice:":2"|upper }}

{{ loan.borrower_name }}

{{ loan.borrower_phone }}

Outstanding
KSh {{ loan.outstanding_balance|floatformat:0|intcomma }}
Amount Paid
KSh {{ loan.amount_paid|default:0|floatformat:0|intcomma }}
KSh {{ loan.expected_payment_amount|floatformat:0|intcomma }}
Weekly Payment Required
Due: {{ loan.due_date|date:"M d, Y" }}
{% if loan.days_until_due < 0 %} {% widthratio loan.days_until_due 1 -1 %} days overdue {% elif loan.days_until_due == 0 %} Due today! {% elif loan.days_until_due <= 3 %} Due in {{ loan.days_until_due }} days {% else %} {{ loan.days_until_due }} days {% endif %}
{% endfor %}
{% if pagination.weekly_total_pages > 1 and not pagination.weekly_show_all %}
Showing {{ weekly_loans|length }} of {{ weekly_loans_count }} loans
{% if pagination.weekly_has_prev %} {% endif %} Page {{ pagination.weekly_page }} of {{ pagination.weekly_total_pages }} {% if pagination.weekly_has_next %} {% endif %}
{% endif %}
{% endif %} {% if monthly_loans %}
📅

Monthly Payments

Monthly payment schedule - standard monitoring

{{ monthly_loans|length }} of {{ monthly_loans_count }} loans {% if monthly_loans_count > 6 %} {% endif %}
{% for loan in monthly_loans %}
{{ loan.loan_number }}
{{ loan.urgency|title }}
{{ loan.borrower_name|slice:":2"|upper }}

{{ loan.borrower_name }}

{{ loan.borrower_phone }}

Outstanding
KSh {{ loan.outstanding_balance|floatformat:0|intcomma }}
Amount Paid
KSh {{ loan.amount_paid|default:0|floatformat:0|intcomma }}
Due: {{ loan.due_date|date:"M d, Y" }}
{% if loan.days_until_due < 0 %} {% widthratio loan.days_until_due 1 -1 %} days overdue {% elif loan.days_until_due == 0 %} Due today! {% elif loan.days_until_due <= 7 %} Due in {{ loan.days_until_due }} days {% else %} {{ loan.days_until_due }} days {% endif %}
{% endfor %}
{% if pagination.monthly_total_pages > 1 and not pagination.monthly_show_all %}
Showing {{ monthly_loans|length }} of {{ monthly_loans_count }} loans
{% if pagination.monthly_has_prev %} {% endif %} Page {{ pagination.monthly_page }} of {{ pagination.monthly_total_pages }} {% if pagination.monthly_has_next %} {% endif %}
{% endif %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}