{% extends 'base.html' %} {% load static %} {% block title %}Expenditure Dashboard - Optinet Global Links{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Expenditure Dashboard

Manage expenses, budgets, and financial allocations

New Expense {% if can_manage %} Create Allocation {% endif %}
{% if my_expenses_count is not None %}
My Expenses
{{ my_expenses_count }}
Pending Approval
{{ my_pending_expenses }}
Approved Expenses
{{ my_approved_expenses }}
Total Spent
KSh {{ my_total_spent|floatformat:2 }}
{% if my_allocations %}
Current Budget Allocations
{% for allocation in my_allocations %}
{{ allocation.category.name }}
KSh {{ allocation.spent_amount|floatformat:2 }} / KSh {{ allocation.allocated_amount|floatformat:2 }}
KSh {{ allocation.remaining_amount|floatformat:2 }} remaining ({{ allocation.utilization_percentage|floatformat:1 }}% used)
{% endfor %}
{% endif %} {% if recent_expenses %}
Recent Expenses
View All
{% for expense in recent_expenses %} {% endfor %}
Expense # Title Amount Status Date
{{ expense.expense_number }} {{ expense.title|truncatechars:30 }} KSh {{ expense.amount|floatformat:2 }} {{ expense.get_status_display }} {{ expense.expense_date|date:"M d, Y" }}
Quick Actions
{% endif %} {% if current_month_salary %}
Recent Expenses
{{ recent_expenses|length }}
{% if current_month_salary %}
Current Month Salary
KES {{ current_month_salary.amount|floatformat:2 }}
{% endif %}
{% endif %} {% if can_manage %}
Pending Expenses
{{ total_pending_expenses }}
{% if payroll_stats %}
Current Month Payroll
KES {{ payroll_stats.current_month_salaries|add:payroll_stats.current_month_bonuses|floatformat:2 }}
{{ payroll_stats.salary_count }} salaries, {{ payroll_stats.bonus_count }} bonuses
YTD Payroll
KES {{ payroll_stats.ytd_total_payroll|floatformat:2 }}
{% endif %}
Pending Approvals

{{ total_pending_expenses }} expenses

Total Amount: KSh {{ pending_amount|floatformat:2 }}

{% if pending_expenses %}
{% for expense in pending_expenses %} {% endfor %}
Employee Amount Date Action
{{ expense.employee.full_name }} KSh {{ expense.amount|floatformat:2 }} {{ expense.expense_date|date:"M d" }} Review
{% endif %}
{% if has_financial_access %}
Budget Allocations
Expense Categories
{% endif %}
{% endif %}
{% endif %} {% endblock %}