{% extends "adminpanel/base.html" %} {% load money %} {% block title %}Dashboard — admin{% endblock %} {% block heading %}Dashboard{% endblock %} {% block content %}
Total clients
{{ client_count }}
on the books
Active projects
{{ active_count }}
in flight
Completed
{{ completed_count }}
delivered
Websites managed
{{ website_count }}
in inventory
Revenue collected
{{ revenue|naira }}
confirmed payments
Pending payments
{{ outstanding|naira }}
issued and unpaid
New leads
{{ new_leads }}
not yet won
Open tickets
{{ open_tickets }}
need a reply

Projects in flight

All projects
{% for p in active_projects %}
{{ p.name }} {{ p.get_status_display }} {{ p.deadline|date:"j M Y"|default:"no date" }}
{{ p.progress }}%
{{ p.client }} · {{ p.amount_paid|naira }} of {{ p.budget|naira }}
{% empty %}

Nothing in flight

Won leads become projects here.

{% endfor %}

New leads

All leads
{% for l in leads %} {% empty %}{% endfor %}
LeadTypeBudgetStatus
{{ l.name }}
{{ l.company|default:l.reference }}
{{ l.project_type }}{{ l.budget }} {{ l.get_status_display }}
No leads yet.

Recent payments

All payments
{% for p in payments %} {% empty %}{% endfor %}
DateClientAmountReference
{{ p.paid_on|date:"j M Y" }}{{ p.client }}{{ p.amount|naira }}{{ p.reference }}
No payments recorded.

Needs attention

{% for i in overdue_invoices %}
{{ i.number }} is overdue
{{ i.client }} · {{ i.balance|naira }} · due {{ i.due_on|date:"j M" }}
Chase invoice
{% endfor %} {% for w in expiring %}
{{ w.domain }} expires {{ w.domain_expiry|date:"j M Y" }}
auto-renew {% if w.auto_renew %}on{% else %}off{% endif %}
Open domains
{% endfor %} {% if not overdue_invoices and not expiring %}

Nothing needs chasing today.

{% endif %}

Upcoming deadlines

    {% for p in deadlines %}
  • {{ p.deadline|date:"j M Y" }}

    {{ p.name }} — {{ p.client }}

  • {% empty %}

    No deadlines set.

    {% endfor %}

Open tickets

All
    {% for t in tickets %}
  • {{ t.reference }} · {{ t.client }}
    {{ t.get_status_display }}
  • {% empty %}
  • No open tickets.
  • {% endfor %}

Recent activity

    {% for a in activity %}
  • {{ a.created_at|date:"j M Y · H:i" }}

    {{ a.description }}

  • {% empty %}

    Nothing logged yet.

    {% endfor %}
{% endblock %}