₹{{ "%.2f"|format(summary.total_active_amount or 0) }}
Pending Applications
{{ summary.pending_count or 0 }}
Monthly EMI
₹{{ "%.2f"|format(summary.total_monthly_emi or 0) }}
Overdue EMIs
{{ summary.overdue_emi_count or 0 }}
{# Point 1: EMI due banner - visible only on/after 25th (route fills summary.current_month_emis) #}
{% if summary.current_month_emis and summary.current_month_emis|length > 0 %}
This Month’s EMI Due
{% for item in summary.current_month_emis %}
{{ item.loan.display_loan_type or item.loan.loan_type or "Loan" }}
Loan #{{ item.loan.id }} · Due on {{ item.due_date.strftime('%d-%b-%Y') }}
₹{{ "%.2f"|format(item.emi_amount or 0) }}
{% endfor %}
EMI details are shown from the 25th of each month.
{% endif %}
Loan History
#
Loan Type
Applied On
Amount
Tenure
EMI
Status
Approved By
{% if loans %}
{% for loan in loans %}
{% set amt = loan.sanctioned_amount or loan.requested_amount %}
{% set tenure = loan.tenure_months or loan.requested_tenure_months %}
{% if loan.emi_amount %}
{% set emi = loan.emi_amount %}
{% elif amt and tenure %}
{% set emi = amt / tenure %}
{% else %}
{% set emi = 0 %}
{% endif %}
{% set st = (loan.status or '')|lower %}
{{ loop.index }}
{{ loan.display_loan_type or loan.loan_type or "-" }}
{{ loan.requested_on.strftime("%d-%m-%Y") if loan.requested_on else "-" }}
₹{{ "%.2f"|format(amt or 0) }}
{{ tenure or '-' }} months
₹{{ "%.2f"|format(emi or 0) }}
{% if st in ['requested', 'pending', 'under_review'] %}
Pending
{% elif st in ['approved', 'active'] %}
Approved / Active
{% elif st == 'rejected' %}
Rejected
{% elif st == 'closed' %}
Closed
{% elif st == 'cancelled' %}
Cancelled
{% else %}
{{ loan.status or 'Unknown' }}
{% endif %}
{{ loan.approved_by.full_name if loan.approved_by else "-" }}