{% extends 'base.html' %} {% load static %} {% block title %}Dashboard | FoxFitt{% endblock %} {% block content %}

Dashboard

Welcome back, {{ user.first_name|default:user.username }}!

Log Daily Work
{% if is_admin %}
Outstanding Payments
R {{ outstanding_payments|floatformat:2 }}
{# === BREAKDOWN — only shown when there are pending adjustments === #} {% if pending_adjustments_add or pending_adjustments_sub %}
Unpaid wages R {{ unpaid_wages|floatformat:2 }}
{% if pending_adjustments_add %}
+ Additions R {{ pending_adjustments_add|floatformat:2 }}
{% endif %} {% if pending_adjustments_sub %}
- Deductions -R {{ pending_adjustments_sub|floatformat:2 }}
{% endif %}
{% endif %}
Loan repayments deducted at payment time
Paid This Month
R {{ paid_this_month|floatformat:2 }}
Active Loans ({{ active_loans_count }})
R {{ active_loans_balance|floatformat:2 }}
Outstanding by Project
{% if outstanding_by_project %}
    {% for proj, amount in outstanding_by_project.items %}
  • {{ proj }}: R {{ amount|floatformat:2 }}
  • {% endfor %}
{% else %} None {% endif %}
This Week Summary
{{ this_week_logs }}
Work Logs Created This Week
Recent Activity
{% for log in recent_activity %}
{{ log.project.name }}
{{ log.date }} · {{ log.workers.count }} workers
{{ log.supervisor.username }}
{% empty %}
No recent activity.
{% endfor %}
Manage Resources
Export Workers

Toggle active status. Inactive items are hidden from forms.

{# Filter bar — Active / Inactive / All (defaults to Active) #}
{# === WORKERS TAB === #}
{% for item in workers %}
{{ item.name }}
{% empty %}

No workers found.

{% endfor %}
{# === PROJECTS TAB === #}
{% for item in projects %}
{{ item.name }}
{% empty %}

No projects found.

{% endfor %}
{# === TEAMS TAB === #}
{% for item in teams %}
{{ item.name }}
{% empty %}

No teams found.

{% endfor %}
{% else %}
My Projects
{{ my_projects_count }}
My Teams
{{ my_teams_count }}
My Workers
{{ my_workers_count }}
This Week Summary
{{ this_week_logs }}
Work Logs Created This Week
Recent Activity
{% for log in recent_activity %}
{{ log.project.name }}
{{ log.date }} · {{ log.workers.count }} workers
{% empty %}
No recent activity.
{% endfor %}
{% endif %}
{% endblock %}