{% extends 'base.html' %} {% load humanize %} {% block title %}Expenses - HAVEN GRAZURI ADVANCE{% endblock %} {% block content %}
Total Today
KES {{ total_today|floatformat:2|intcomma }}

🔍 Click to filter

Total This Month
KES {{ total_month|floatformat:2|intcomma }}

🔍 Click to filter

Total This Year
KES {{ total_year|floatformat:2|intcomma }}

🔍 Click to filter

Pending Approvals
{{ pending_count }}

Requires action

Top Category
{% if top_category %} {{ top_category.category|title }} {% else %} N/A {% endif %}

{% if top_category %} KES {{ top_category.total|floatformat:2|intcomma }} {% endif %}

Expense Management

Track and manage all business expenses across branches.

+ Add Expense {% if user.role == 'admin' or user.role == 'team_leader' %} Approvals ({{ pending_count }}) {% endif %} 📊 Export Excel 📊 Analytics
{{ filter_form.search }}
{{ filter_form.category }}
{{ filter_form.payment_method }}
{{ filter_form.status }}
{{ filter_form.branch }}
{{ filter_form.date_from }}
{{ filter_form.date_to }}
{{ filter_form.loan_related }}
Clear Filters
{% for expense in expenses %} {% empty %} {% endfor %}
Date Title Category Amount Branch Staff Payment Status Receipt Actions
{{ expense.expense_date|date:"d M Y" }} {{ expense.title }} {% if expense.loan %} 🔗 Loan {% endif %} {{ expense.get_category_display }} KES {{ expense.amount|floatformat:2|intcomma }} {{ expense.branch.name }} {{ expense.staff.get_full_name }} {{ expense.get_payment_method_display }} {% if expense.status == 'pending' %} Pending {% elif expense.status == 'approved' %} Approved {% elif expense.status == 'rejected' %} Rejected {% endif %} {% if expense.has_receipt %} 📄 {% else %} {% endif %} View {% if expense.status == 'pending' %} Edit {% endif %}
📥

No expenses found.

Add your first expense
{% if expenses.has_other_pages %}
{% if expenses.has_previous %} Previous {% endif %} {% if expenses.has_next %} Next {% endif %}
{% endif %}
{% endblock %}