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

Employee Expenses

➕ Add New Expense

💰 Pending

{{ expenses|selectattr('status', 'equalto', 'pending')|list|length }}
PKR {{ "%.2f"|format(pending_expenses) }}

✅ Approved

{{ expenses|selectattr('status', 'equalto', 'approved')|list|length }}
PKR {{ "%.2f"|format(approved_expenses) }}

❌ Rejected

{{ expenses|selectattr('status', 'equalto', 'rejected')|list|length }}
PKR {{ "%.2f"|format(rejected_expenses) }}

💼 Total

{{ expenses|length }}
PKR {{ "%.2f"|format(total_expenses) }}

All Expenses

{% if expenses %}
{% for expense in expenses %} {% endfor %}
ID Date Category Amount Description Status Receipt Actions
#{{ expense.id }} {{ expense.date|date_format }} {{ expense.category }} {{ expense.amount|currency }} {{ expense.description[:50] }}{% if expense.description|length > 50 %}...{% endif %} {% if expense.status == 'pending' %} ⏳ Pending {% elif expense.status == 'approved' %} ✅ Approved {% elif expense.status == 'rejected' %} ❌ Rejected {% endif %} {% if expense.receipt_path %} 📄 View {% else %} - {% endif %}
{% if expense.status == 'pending' %}
{% else %} Processed {% endif %}
{% else %}
💰

No expenses yet

Add your first expense to get started

Add First Expense
{% endif %}

Quick Actions

👥 Manage Employees 📅 Manage Attendance 💳 Process Payments

Expense Management Tips

📋 Categories: Organize expenses by type (General, Travel, Food, Supplies, etc.)

📄 Receipts: Always upload receipts for expense verification

✅ Auto-Approval: Admin expenses are automatically approved

📊 Tracking: Monitor expense patterns and costs by category

{% endblock %}