{% extends 'base.html' %} {% load i18n static humanize %} {% load crispy_forms_tags %} {% block customCSS %} {% endblock customCSS %} {% block content %}

{{ _("Lead Details")}}

{{ _("Lead Details")}}

{{ lead.first_name }} {{ lead.last_name }}

{% if lead.staff %}

{{ _("Assigned to")}}: {{ lead.staff }}

{% else %}

{{ _("Not Assigned")}}

{% endif %}
{{ _("Status")}} {% if lead.status == "new" %} {{_("New")}} {% elif lead.status == "pending" %} {{_("Pending")}} {% elif lead.status == "in_progress" %} {{_("In Progress")}} {% elif lead.status == "qualified" %} {{_("Qualified")}} {% elif lead.status == "canceled" %} {{_("Canceled")}} {% endif %}
{{ _("Car Requested") }}
{{ lead.id_car_make.get_local_name }} - {{ lead.id_car_model.get_local_name }} {{ lead.year }}
{{ _("Email") }}
{{ lead.email }}
{{ _("Phone") }}
{{ lead.phone_number}}
{{ _("Salary")}}

{{lead.salary}}

{{ _("Created")}}

{{ lead.created|naturalday|capfirst }}

{{ _("Lead Source")}}

{{ lead.source|upper }}

{{ _("Lead Channel")}}

{{ lead.channel|upper }}

{{ _("Address") }}

{{ lead.address}}

{{ _("City") }}

{{ lead.city }}

{{lead.status|capfirst}}
  {% trans "Current Stage" %}
{{lead.next_action|capfirst}}
  {% trans "Next Action" %}

{{ _("Activities") }} ({{ activities.count}})

{% for activity in activities %}
{% if activity.activity_type == "call" %} {% elif activity.activity_type == "email" %} {% elif activity.activity_type == "visit" %} {% elif activity.activity_type == "whatsapp" %} {% endif %}
{% if forloop.last %} {% else %} {% endif %}
{{ activity.activity_type|capfirst }}

{{ activity.created|naturalday|capfirst }}

{{ _("created by") }} {{ activity.created_by }}

{{ activity.notes }}

{% endfor %}

{{ _("Notes") }}

{% for note in notes %} {% if note.created_by.staff %} {% else %} {% endif %} {% endfor %}
{{ _("Note") }} {{ _("Created By")}} {{ _("Created On")}}
{{note.note}}{{ note.created_by.staff.name }}{{ note.created_by.dealer.get_local_name|default:note.created_by.dealer.name }}{{ note.created|naturalday|capfirst }} {% if note.created_by == request.user %} {{ _("Update") }} {% endif %}

{{ _("Emails") }}

{% for email in emails.sent %} {% endfor %}
Subject Sent by Date Action Status
{{email.subject}}
{{email.to_email}}
{{email.from_email}} {{email.created|naturalday}} Call sent
{% for email in emails.draft %} {% endfor %}
Subject Sent by Date Action Status
{{email.subject}}
{{email.to_email}}
{{email.from_email}} {{email.created}} Send draft
{% comment %} {% endcomment %}

{{ _("Tasks") }}

{% for task in tasks %} {% endfor %}
Title Assigned to Due Date Completed
{{task.title}}
{{task.description}}
{{task.assigned_to}} {{task.created|naturalday|capfirst}} {% if task.completed %} {% else %} {% endif %}
{% include 'modal/delete_modal.html' %} {% comment %} {% endcomment %} {% include "components/activity_modal.html" with content_type="lead" slug=lead.slug %} {% endblock content %} {% block customJS %} {% endblock customJS %}