{% extends "base.html" %} {% block title %}Dashboard{% endblock %} {% block head %} {% endblock %} {% block content %}

Dashboard

{# ── Date Period Filter ── #}
{# ── 1. KPI Cards ── #}
{{ kpi.total_contacts }}
Total Contacts
{{ kpi.icp }}
ICP
{{ kpi.poi }}
POI
{{ kpi.not_icp }}
Not ICP
{{ kpi.review }}
Review
{{ kpi.coverage_pct }}%
Coverage
{# ── 2. Monthly Top Performer ── #} {% if top_performer %}
Top Performer{% if not has_date_filter %} This Month{% endif %}: {{ top_performer.name }} — {{ top_performer.icp_this_month }} ICP interactions {% if top_performer.trend_pct > 0 %} +{{ top_performer.trend_pct }}% {% elif top_performer.trend_pct < 0 %} {{ top_performer.trend_pct }}% {% endif %}
{% endif %} {# ── 3. Executive Leaderboard ── #}

Executive Leaderboard

{% for e in leaderboard %} {% endfor %}
# Executive {% if has_date_filter %}ICP (Period){% else %}ICP This Month{% endif %} {% if has_date_filter %}ICP (Prior){% else %}ICP Last Month{% endif %} Trend Posts New ICPs
{{ loop.index }} {{ e.name }} ({{ e.code }}) {{ e.icp_this_month }} {{ e.icp_last_month }} {% if e.trend_pct > 0 %} +{{ e.trend_pct }}% {% elif e.trend_pct < 0 %} {{ e.trend_pct }}% {% else %} 0% {% endif %} {{ e.posts }} {{ e.new_icps }}
{# ── 4. Posting Frequency ── #}

Posting Frequency

{% for p in posting %} {% endfor %}
Executive {% if has_date_filter %}Posts (Period){% else %}Posts (30 days){% endif %} Days Since Last Post
{{ p.name }} ({{ p.code }}) {{ p.posts_30d }} {{ p.days_since_last_post if p.days_since_last_post is not none else "—" }}
{# ── 5–7. Charts ── #}

ICP Interactions by Executive{% if has_date_filter %} ({{ active_period_label }}){% endif %}

Monthly ICP Trend

Status Distribution

{# ── Status Distribution Table ── #}

Status Distribution

{% for s in status_dist %} {% endfor %}
StatusCount%
{{ s.status }} {{ s.count }} {{ s.percentage }}%
{# ── 8. Recent Activity ── #} {% if has_date_filter %}
{{ activity.interactions_7d }}
Interactions (Period)
{{ activity.active_icps_7d }}
Active ICPs (Period)
{% else %}
{{ activity.interactions_7d }}
Interactions (7 days)
{{ activity.interactions_30d }}
Interactions (30 days)
{{ activity.active_icps_7d }}
Active ICPs (7 days)
{{ activity.active_icps_30d }}
Active ICPs (30 days)
{% endif %} {# ── 9. Top 10 ICP Engagers ── #}

Top 10 ICP Engagers

{% for e in top_engagers %} {% endfor %}
#NameCompanyInteractionsLast Active
{{ loop.index }} {{ e.name }} {{ e.company }} {{ e.total_interactions }} {{ e.latest_interaction }}
{# ── 10. Top 10 Companies ── #}

Top 10 Companies by ICP Engagement

{% for c in top_companies %} {% endfor %}
#CompanyICP ContactsTotal Interactions
{{ loop.index }} {{ c.company }} {{ c.icp_count }} {{ c.total_interactions }}
{# ── 11. Top 5 Posts ── #}

Top 5 Posts by ICP Reactions

{% for p in top_posts %} {% endfor %}
#PostByReactionsUnique ICPs
{{ loop.index }} {{ p.post_hook[:80] }}{% if p.post_hook|length > 80 %}…{% endif %} {{ p.source_profile }} {{ p.reaction_count }} {{ p.unique_icps }}
{% endblock %} {% block scripts %} {% endblock %}