{% 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 — wages + adjustments (shown when adjustments exist) #} {% 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 }}
{% if certs_alert_total %} {% endif %}
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
{{ this_week_logs }}
Work Logs Created
Recent Activity
View All
{% for log in recent_activity %}
{{ log.project.name }}
{{ log.date }} · {{ log.workers.count }} workers
{{ log.supervisor.username }}
{% empty %}
No recent activity
{% endfor %}
Manage Resources

Toggle active status. Inactive items are hidden from forms.

{# === WORKERS === #}
{% for item in workers %}
{{ item.name }}
{% empty %}

No workers found.

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

No projects found.

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

No teams found.

{% endfor %}
{# === CONFIRM DEACTIVATION MODAL (Bootstrap — works in all browsers unlike confirm()) === #} {% else %}
My Projects
{{ my_projects_count }}
My Teams
{{ my_teams_count }}
My Workers
{{ my_workers_count }}
This Week
{{ this_week_logs }}
Work Logs Created
Recent Activity
{% for log in recent_activity %}
{{ log.project.name }}
{{ log.date }} · {{ log.workers.count }} workers
{% empty %}
No recent activity
{% endfor %}
{% endif %}
{% include 'core/_report_config_modal.html' %} {% endblock %}