{% extends 'base.html' %} {% load humanize %} {% block title %}Loan Receipt - {{ loan.loan_number }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Loan Receipt

{{ loan.loan_number }}

Borrower Name
{{ loan.borrower.first_name }} {{ loan.borrower.last_name }}
Phone Number
{{ loan.borrower.phone_number }}
Loan Amount
KSh {{ current_total|intcomma }}
Due Date
{{ loan.due_date|date:"M d, Y" }}
Loan Status
{{ loan.status }}
Application Date
{{ loan.created_at|date:"M d, Y" }}

Payment Summary

Total Loan Amount
KSh {{ current_total|intcomma }}
Total Paid
KSh {{ total_paid|intcomma }}
Remaining Balance
KSh {{ remaining_balance|intcomma }}
Payment Progress
{% if current_total > 0 %} {% widthratio total_paid current_total 100 as progress %} {{ progress }}% {% else %} 0% {% endif %}

📋 Payment History

{% if repayments %} {% for payment in repayments %} {% endfor %}
Payment Date Amount Payment Method Reference Status
{{ payment.payment_date|date:"M d, Y" }} KSh {{ payment.amount|intcomma }} {{ payment.payment_method|default:"N/A" }} {{ payment.reference|default:"N/A" }} {{ payment.status|default:"Completed" }}
{% else %}
â„šī¸

No payments have been recorded for this loan yet.

{% endif %}
{% endblock %}