{% extends "base.html" %} {% block title %}Today's Follow-ups{% endblock %} {% block header %}Today's Follow-ups{% endblock %} {% block content %}
Lead Activity Dashboard

Today's Follow-ups

{{ today.strftime('%A, %d %B %Y') }} · Updated {{ now.strftime('%I:%M %p') }}
My Follow-ups
{{ my_count }}
Assigned to me today
Visible Team Queue
{{ visible_count }}
Before table filters
Overdue Today
{{ overdue_today_count }}
Scheduled time has passed
Remaining Today
{{ remaining_today_count }}
Still upcoming today
Follow-up Queue
{{ items|length }} record(s) matching the selected filters
{% if q or activity_type_id or time_slot != 'all' or selected_owner != 'me' %}Filters active{% endif %}
{% if items %}
{% for a in items %} {% set is_overdue = a.next_follow_up_at and a.next_follow_up_at < now %} {% endfor %}
DueLead / ContactCompanyOwnerActivitySubject & NotesOutcomeAction
{{ a.next_follow_up_at.strftime('%I:%M %p') if a.next_follow_up_at else '—' }}
{{ 'Overdue' if is_overdue else 'Upcoming' }}
{% if a.lead %}{{ a.lead.name }}
{{ a.lead.lead_code or '—' }}
{{ a.lead.email or a.lead.phone or 'No contact details' }}
{% else %}—{% endif %}
{{ a.lead.company if a.lead and a.lead.company else '—' }} {{ a.lead.owner.name if a.lead and a.lead.owner else 'Unassigned' }} {% if a.activity_type %}{{ a.activity_type.name }}{% else %}—{% endif %}
{{ a.subject or 'No subject' }}
{% if a.notes %}
{{ a.notes }}
{% endif %}
{{ a.outcome or '—' }} Open
{% else %}
No matching follow-ups
Try clearing one or more filters, or open the full follow-up schedule.
View All Follow-ups
{% endif %}
{% endblock %}