{% extends "base.html" %} {% block title %}Client Details{% endblock %} {% block header %}Client Details{% endblock %} {% block content %} {% set client_type = (client.client_type or '') %} {% set is_domestic = (client_type|lower == 'domestic') %}
CRM • Client Profile

{{ client.company_name }}

{{ client.industry.name if client.industry else (client.company_industry or "No industry") }} {% if client.service %} • {{ client.service }}{% endif %}
{{ client.client_type or "Type: —" }} {{ client.client_category or "Category: —" }} {% if client.pan %} {{ client.pan }} {% endif %} {% if client.website %} {{ client.website }} {% endif %}
{% if is_domestic %}
GST on quotes depends on Company Branch state vs Client Branch state.
{% endif %}
{% if client.is_active %} Active {% else %} Inactive {% endif %}
Profile
Client Details
Documents
Client Documents
Overall or quote-wise documents.
Allowed: PDF, Images, DOC/DOCX, XLSX

{% if documents|length == 0 %}
No documents uploaded yet.
{% else %}
{% for d in documents %} {% endfor %}
Document Type Validity Actions
{{ d.document_name }}
{{ d.file_name }}
{% if d.uploaded_at %}
Uploaded: {{ d.uploaded_at.strftime("%d-%b-%Y") }}
{% endif %}
{% if d.quote_id %} Quote
#{{ d.quote_id }}
{% else %} Overall {% endif %}
{{ d.start_date.strftime("%d-%b-%Y") if d.start_date else "—" }}
to {{ d.expiry_date.strftime("%d-%b-%Y") if d.expiry_date else "—" }}
{% endif %}
Branch Setup
Add Branch
Each branch requires at least one contact.
Primary Contact
Branch Directory
Branches & Contacts
{{ branches|length }} Branch{{ 'es' if branches|length != 1 else '' }}
{% if branches|length == 0 %}
No branches yet
Add a branch from the left panel.
{% else %}
{% for b in branches %} {% set contacts = contacts_by_branch.get(b.id, []) %} {% set has_gst = (b.gst or '')|length > 0 %}

Edit Branch
Contacts
{% for ct in contacts %}
{% endfor %}
Add Contact
{% endfor %}
{% endif %}
{% endblock %}