{% extends 'base.html' %} {% load humanize %} {% block title %}Tenant Dashboard{% endblock %} {% block content %}
Current Rent Status
{% if current_invoice %}

Unit: {{ current_invoice.unit.unit_number }}

Amount Due: KES {{ current_invoice.balance|intcomma }}

Due Date: {{ current_invoice.due_date|date:"M d, Y" }}

Status: {{ current_invoice.status|title }}

{% if current_invoice.status == 'overdue' %}
This payment is overdue. Please pay immediately.
{% elif current_invoice.status == 'pending' %}
Upcoming rent due soon.
{% endif %} {% if current_invoice.balance > 0 %} Pay Now via M-Pesa {% else %} Fully Paid {% endif %} {% else %}

No active rent invoice found.

{% endif %}
{% if user.tenantprofile and not user.tenantprofile.id_image %} {% endif %}
{% endblock %}