{% extends 'base.html' %} {% block content %}

{{ tenant.get_full_name|default:tenant.username }}

ID: {{ profile.id_number|default:"Not Provided" }}

Phone: {% if tenant.phone_number %} {{ tenant.phone_number }} {% else %} Not Provided {% endif %}

Unit: {% if profile and profile.unit %} {{ profile.unit }} {% else %} Not Assigned {% endif %}

Rent Status: {% if rent_status == "Paid" %} Paid {% else %} Unpaid {% endif %}

{% if profile and profile.id_image %} {% else %}

No ID Image

{% endif %}
Payment History
{% if payments %} {% for p in payments|slice:":3" %} {% endfor %}
Date Amount
{{ p.created_at }} KES {{ p.amount }}
{% if payments|length > 3 %} {% endif %} {% else %}

No payments found.

{% endif %}
Complaints
{% if complaints %} {% for c in complaints|slice:":3" %} {% endfor %}
Date Description Status
{{ c.created_at }} {{ c.description }} {{ c.status }}
{% if complaints|length > 3 %} {% endif %} {% else %}

No complaints found.

{% endif %}
Repairs / Damages
{% if repairs %} {% for r in repairs|slice:":3" %} {% endfor %}
Date Description Status
{{ r.created_at }} {{ r.description }} {{ r.status }}
{% if repairs|length > 3 %} {% endif %} {% else %}

No repairs found.

{% endif %}
Tenant Actions
{% if user.role == "landlord" or user.role == "caretaker" %} Evict Tenant Force Vacate {% endif %} {% if user.role == "tenant" %} Vacate Unit {% endif %}
{% endblock %}