{% set page_group = "customer" %} {% include 'components/head.html' %} {# Module CSS #} {# Syncfusion EJ2 Components #}
{% include 'components/nav-account.html' %}
{% include 'components/alerts.html' %}
{# ================================================================ PAGE HEADER ================================================================ #}

{{ customerData.customer.name }}

Back to Customer Search

{% if customerAlert|length > 0 %} {% endif %}
{# ================================================================ KPI STAT CARDS ================================================================ #}
{{ customerData.customer.dateAdded ?: '—' }}
First Seen
{{ customerData.customer.lastSeen ?: '—' }}
Last Seen
{{ customerData.customer.last30 }}
Buys in Last 30 Days
{# ================================================================ CUSTOMER INFO CARD ================================================================ #}
{# Left column #}
Email
{% if customerData.customer.email %} {{ customerData.customer.email }} {% else %} Not provided {% endif %}
Phone
{% if customerData.customer.phone %} {{ customerData.customer.phone }} {% else %} Not provided {% endif %}
Driver's License
{{ customerData.customer.driversLicenseMasked }} {% if customerData.customer.hasDL and checkAccess('uri_store_settings') %} {% endif %}
Address
{% if customerData.customer.address %} {{ customerData.customer.address }}
{{ customerData.customer.city }}, {{ customerData.customer.state }} {{ customerData.customer.zipcode }} {% else %} Not provided {% endif %}
{# Right column #}
SMS Status
{% if customerData.customer.onSMS == 1 %} On SMS List {% else %} Not on SMS List {% endif %}
Email Status
{% if customerData.customer.onEmail == 1 %} On Email List {% else %} Not on Email List {% endif %}
{# ================================================================ ALERTS SECTION ================================================================ #}

Buyer Alerts {% if customerAlert|length > 0 %} {{ customerAlert|length }} {% endif %}

{% if customerAlert|length > 0 %} {% endif %}
{% if customerAlert|length > 0 %}
{% for alert in customerAlert %} {% endfor %}
Type Comment Date Added Actions
{% if alert.class == 'danger' %} NO BUY {% elseif alert.class == 'warning' %} Warning {% elseif alert.class == 'green' %} Positive {% else %} Info {% endif %} {{ alert.comment }} {{ alert.dateAdded }}
{% else %}

No alerts for this customer

{% endif %}
{# ================================================================ VISITS / BUY HISTORY (Syncfusion Grid) ================================================================ #}

Visit History

{# /.cd-container #} {% include 'components/footer.html' %} {# ================================================================ DL VIEWER MODAL (kept as-is - already modern BS5) ================================================================ #} {% if customerData.customer.hasDL and checkAccess('uri_store_settings') %} {% include 'customer/modals/dl-viewer-modal.html' %} {% endif %} {# ================================================================ EDIT ALERT MODAL (Handlebars template) ================================================================ #} {# ================================================================ JAVASCRIPT ================================================================ #}
{# ================================================================ ADD ALERT WIZARD MODAL (Bootstrap 5 native) ================================================================ #}