{# app/templates/vendor/customers.html #} {% extends "vendor/base.html" %} {% from 'shared/macros/pagination.html' import pagination %} {% from 'shared/macros/headers.html' import page_header_flex, refresh_button %} {% from 'shared/macros/alerts.html' import loading_state, error_state %} {% from 'shared/macros/tables.html' import table_wrapper %} {% from 'shared/macros/modals.html' import modal_simple %} {% block title %}Customers{% endblock %} {% block alpine_data %}vendorCustomers(){% endblock %} {% block content %} {% call page_header_flex(title='Customers', subtitle='View and manage your customer relationships') %}
{{ refresh_button(loading_var='loading', onclick='loadCustomers()', variant='secondary') }}
{% endcall %} {{ loading_state('Loading customers...') }} {{ error_state('Error loading customers') }}

Total Customers

0

Active

0

New This Month

0

{% call table_wrapper() %} Customer Email Joined Orders Actions

No customers found

Customers will appear here when they make purchases

{% endcall %}
{{ pagination(show_condition="!loading && pagination.total > 0") }} {% call modal_simple('customerDetailModal', 'Customer Details', show_var='showDetailModal', size='md') %}

Phone

Joined

Total Orders

Total Spent

{% endcall %}

Orders for

{% endblock %} {% block extra_scripts %} {% endblock %}