{% for (const contact of contact_list) { %}

{%= contact.first_name %} {%= contact.last_name %} {% if (contact.is_primary_contact) { %}  ·  {%= __("Primary Contact") %} {% } %} {% if (contact.is_billing_contact) { %}  ·  {%= __("Billing Contact") %} {% } %} {% if (contact.designation){ %}  ·  {%= contact.designation %} {% } %}

{% if (contact.phone || contact.mobile_no || contact.phone_nos.length > 0) { %}

{% if (contact.phone) { %} {%= frappe.utils.escape_html(contact.phone) %} · {%= __("Primary Phone") %}
{% endif %} {% if (contact.mobile_no) { %} {%= frappe.utils.escape_html(contact.mobile_no) %} · {%= __("Primary Mobile") %}
{% endif %} {% if (contact.phone_nos) { %} {% for (const phone_no of contact.phone_nos) { %} {%= frappe.utils.escape_html(phone_no.phone) %}
{% } %} {% endif %}

{% endif %} {% if (contact.email_id || contact.email_ids.length > 0) { %}

{% if (contact.email_id) { %} {%= frappe.utils.escape_html(contact.email_id) %} · {%= __("Primary Email") %}
{% endif %} {% if (contact.email_ids) { %} {% for (const email_id of contact.email_ids) { %} {%= frappe.utils.escape_html(email_id.email_id) %}
{% } %} {% endif %}

{% endif %} {% if (contact.address) { %}

{%= contact.address %}

{% endif %}
{% } %} {% if (!contact_list.length) { %}

{%= __("No contacts added yet.") %}

{% } %}