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

Complete Client History

Comprehensive overview for {{ client.get_full_name }}

๐Ÿ“„

Total Applications

{{ total_applications }}

{{ approved_applications }} approved โ€ข {{ rejected_applications }} rejected โ€ข {{ pending_applications }} pending

Total Loans

{{ total_loans }}

{{ paid_loans }} paid โ€ข {{ active_loans }} active โ€ข {{ defaulted_loans }} defaulted
๐Ÿ’ต

Total Borrowed

KES {{ total_borrowed|floatformat:0 }}

KES {{ total_repaid|floatformat:0 }} repaid
โš ๏ธ

Outstanding

KES {{ total_outstanding|floatformat:0 }}

{% if overdue_count > 0 %} {{ overdue_count }} overdue {% else %} All current {% endif %}

Activity Timeline

    {% for activity in timeline_activities %}
  • {% if not forloop.last %} {% endif %}
    {% if activity.type == 'application' %} ๐Ÿ“„ {% elif activity.type == 'loan' %} {% elif activity.type == 'payment' %} ๐Ÿ’ต {% else %} {% endif %}

    {{ activity.title }}

    {{ activity.description }}

  • {% empty %}
  • No activity found
  • {% endfor %}
{% endblock %}