{% extends "base.html" %} {% block title %}{{ lead.name }} • Lead{% endblock %} {% block header %}Lead Details{% endblock %} {% block content %} {% set owner_name = lead.owner.name if lead.owner else '—' %} {% set lead_status_name = lead.status.name if lead.status else '—' %} {% set latest_activity = activities[0] if activities and activities|length > 0 else none %} {% set next_followup = namespace(value=none) %} {% for a in activities %} {% if not next_followup.value and a.next_follow_up_at %} {% set next_followup.value = a.next_follow_up_at %} {% endif %} {% endfor %}
Lead Details

{{ lead.name }}

{{ lead.lead_code }} • {{ lead.company or '—' }} {% if lead.service %} • {{ lead.service.name }} {% endif %}
{% if lead.status %} {{ lead.status.name }} {% else %} No Status {% endif %} {% if has_opportunity %} Converted {% else %} Open Lead {% endif %} {% if lead.service %} {{ lead.service.name }} {% endif %}
Back {% if not has_opportunity %} Convert to Opportunity Edit {% else %} {% endif %}
Current Status
{{ lead_status_name }}
{{ lead.lead_code }}
Lead Owner
{{ owner_name }}
{% if lead.owner and lead.owner.profile and lead.owner.profile.employee_code %} {{ lead.owner.profile.employee_code }} {% else %} Assigned user {% endif %}
Next Follow-up
{% if next_followup.value %} {{ next_followup.value.strftime("%d %b %Y") }} {% else %} — {% endif %}
{% if next_followup.value %} {{ next_followup.value.strftime("%I:%M %p") }} {% else %} No follow-up scheduled {% endif %}
Lead Profile
Contact & Business
Primary information captured for this lead.
{% if lead.status %} {{ lead.status.name }} {% else %} — {% endif %}
Owner
{{ owner_name }}
{% if lead.owner and lead.owner.profile and lead.owner.profile.employee_code %}
{{ lead.owner.profile.employee_code }}
{% endif %}
Conversion
{% if has_opportunity %} Converted {% else %} Pending {% endif %}
{% if current_user.has_perm('leads.assign') %}
Reassign Lead
Search by name or employee code.
You can assign within your team. Admin can assign to anyone.
{% endif %}
Contact
Email
{{ lead.email or '—' }}
Phone
{% if lead.phone %} {{ lead.phone_country or '' }} {{ lead.phone }} {% else %} — {% endif %}
Location
{{ lead.location or '—' }}
Business
Company
{{ lead.company or '—' }}
Industry
{{ lead.industry.name if lead.industry else '—' }}
Service
{{ lead.service.name if lead.service else '—' }}
Website
{{ lead.website or '—' }}
{% if lead.client %}
Linked Client
Client
{{ lead.client.company_name }}
Branch
{{ lead.branch.branch_location if lead.branch else '—' }}
{% if lead.branch and lead.branch.state %}
{{ lead.branch.state }}{% if lead.branch.country %}, {{ lead.branch.country }}{% endif %}
{% endif %}
GST
{{ lead.branch.gst if lead.branch and lead.branch.gst else '—' }}
{% endif %}
Notes
Lead Notes
{{ lead.notes or '—' }}
Activity Capture
Quick Add Activity
Add calls, emails, meetings, outcomes and follow-ups to keep the lead timeline KPI-ready.
{{ activities|length }} Activity(s)
Timeline
Lead Activity Timeline
Latest 50 activities for this lead.
{% if latest_activity %} Latest: {{ latest_activity.activity_at.strftime("%d %b") if latest_activity.activity_at else '—' }} {% endif %}
{% if activities|length == 0 %}
No activities yet
Add your first activity using the form above.
{% else %}
{% for a in activities %}
{{ a.activity_type.name if a.activity_type else 'Activity' }} • {{ a.subject or '—' }}
{{ a.activity_at.strftime("%d %b %Y, %I:%M %p") if a.activity_at else '—' }} • by {{ a.created_by.name if a.created_by else '—' }}
{% if a.next_follow_up_at %} Follow-up: {{ a.next_follow_up_at.strftime("%d %b %Y, %I:%M %p") }} {% endif %}
{% if a.outcome %}
Outcome {{ a.outcome }}
{% endif %} {% if a.notes %}
{{ a.notes }}
{% endif %}
{% endfor %}
{% endif %}
{% if current_user.has_perm('leads.assign') %} {% endif %} {% endblock %}