{% set page_group = "customers" %} {% include 'components/head.html' %}
{% include 'components/nav-account.html' %}
{% include 'components/alerts.html' %}

{{box_title}}

{% for customer in topCustomers %} {% set firstSeg = customer.phone|slice(0, 3) %} {% set secondSeg = customer.phone|slice(3, 3) %} {% set thirdSeg = customer.phone|slice(6, 4) %} {% set formattedString = '(' ~ firstSeg ~ ') ' ~ secondSeg ~ '-' ~ thirdSeg %} {% endfor %}
# ID Phone Number Name Number of Buys Buys Last 30 Days
{{ loop.index }} {{ customer.customerID }} {{ formattedString }} {{ customer.name }} {{ customer.numBuys }} {{ customer.last30 }}
{% include 'components/footer.html' %}