{% extends "base.html" %} {% block content %}

Sales Dashboard

Welcome {{ current_user.name }}. Track leads, follow-ups, quotes, proposals, and billing movement from one place.

Today
{{ today.strftime("%d %b %Y") }}
{% if quick_actions %}
Quick Actions
{% for action in quick_actions %} {% endfor %}
{% endif %}
Total Leads

{{ summary.total_leads }}

This month: {{ summary.month_leads }} | Mine: {{ summary.my_leads }}
Open Leads

{{ summary.open_leads }}

Converted: {{ summary.converted_count }} | Opportunities: {{ summary.total_opportunities }}
Today Follow-ups

{{ summary.today_followups_count }}

Overdue: {{ summary.overdue_followups_count }} | 7 days: {{ summary.upcoming_followups_count }}
Total Quotes

{{ summary.total_quotes }}

This month: {{ summary.month_quotes }} | Sent: {{ summary.sent_quotes }}
Total Quote Value

₹ {{ indian_amount(summary.total_quote_value) }}

This Month Quote Value

₹ {{ indian_amount(summary.month_quote_value) }}

Sent Proposal Value

₹ {{ indian_amount(summary.sent_quote_value) }}

Selected Quote Value

₹ {{ indian_amount(summary.selected_quote_value) }}

Quote Status Summary
Draft

{{ summary.draft_quotes }}

Pending Approval

{{ summary.pending_approval_quotes }}

Approved

{{ summary.approved_quotes }}

Selected

{{ summary.selected_quotes }}

Sent

{{ summary.sent_quotes }}

Rejected

{{ summary.rejected_quotes }}

Proposal / Billing Movement
Confirmed Proposals

{{ summary.confirmed_proposals }}

Pending Confirmation

{{ summary.pending_confirmation }}

Jobcards Created

{{ summary.jobcards_created }}

PI Generated

{{ summary.pi_generated }}

Invoices Generated

{{ summary.invoices_generated }}

Finance Requests

{{ summary.pi_pending_requests + summary.invoice_pending_requests }}

PI pending: {{ summary.pi_pending_requests }} | Invoice pending: {{ summary.invoice_pending_requests }}
Today Follow-ups
View All
{% for item in today_followups %} {% else %} {% endfor %}
Lead Subject Time
{% if item.lead %} {{ item.lead.lead_code }}
{{ item.lead.name }}
{% else %} — {% endif %}
{{ item.subject or "Follow-up" }} {% if item.next_follow_up_at %} {{ item.next_follow_up_at.strftime("%I:%M %p") }} {% else %} — {% endif %}
No follow-ups for today.
{% if overdue_followups %}
{{ summary.overdue_followups_count }} overdue follow-up(s). Please review them.
{% endif %}
Latest Leads
View Leads
{% for lead in latest_leads %} {% else %} {% endfor %}
Lead Company Owner
{{ lead.lead_code }}
{{ lead.name }}
{{ lead.company or "—" }} {{ lead.owner.name if lead.owner else "—" }}
No leads found.
Latest Quotes
View Quotes
{% for q in latest_quotes %} {% else %} {% endfor %}
Quote Opportunity Status Amount
{{ q.quote_code }}
V{{ q.version }}
{% if q.opportunity %} {{ q.opportunity.title }}
{{ q.opportunity.company or "—" }}
{% else %} — {% endif %}
{% set s = q.status.name if q.status else "No Status" %} {% if s == "Sent" %} {{ s }} {% elif s == "Selected" or s == "Approved" %} {{ s }} {% elif s == "Pending Approval" %} {{ s }} {% elif s == "Rejected" %} {{ s }} {% else %} {{ s }} {% endif %} ₹ {{ indian_amount(q.total_amount or q.total or 0) }}
No quotes found.
Team Snapshot
{% for row in team_rows %} {% else %} {% endfor %}
User Leads Quotes Value
{{ row.user.name }}
Sent: {{ row.sent_count }} | Selected: {{ row.selected_count }}
{{ row.lead_count }}
Month: {{ row.month_lead_count }}
{{ row.quote_count }} ₹ {{ indian_amount(row.quote_value) }}
No team data found.
{% endblock %}