{# app/templates/admin/merchant-users.html #} {% extends "admin/base.html" %} {% from 'shared/macros/pagination.html' import pagination %} {% from 'shared/macros/headers.html' import page_header %} {% from 'shared/macros/alerts.html' import loading_state, error_state %} {% from 'shared/macros/tables.html' import table_wrapper, table_header %} {% from 'shared/macros/modals.html' import confirm_modal_dynamic %} {% block title %}Merchant Users{% endblock %} {% block alpine_data %}merchantUsersPage(){% endblock %} {% block content %} {{ page_header('Merchant User Management', subtitle='View merchant owners and store team members') }} {{ loading_state('Loading merchant users...') }} {{ error_state('Error loading merchant users') }}

Total Merchant Users

0

Owners

0

Team Members

0

Active

0

{% call table_wrapper() %} {{ table_header(['User', 'Email', 'Role', 'Status', 'Last Login', 'Actions']) }} {% endcall %} {{ pagination() }}
{{ confirm_modal_dynamic( 'deleteUserModal', 'Delete User', "'Are you sure you want to delete \"' + (userToDelete?.full_name || userToDelete?.username || userToDelete?.email || '') + '\"? This action cannot be undone.'", 'confirmDeleteStep()', 'showDeleteModal', 'Delete', 'Cancel', 'danger' ) }} {{ confirm_modal_dynamic( 'deleteUserFinalModal', 'Final Confirmation', "'FINAL CONFIRMATION: Are you absolutely sure you want to permanently delete \"' + (userToDelete?.full_name || userToDelete?.username || userToDelete?.email || '') + '\"?'", 'deleteUser(userToDelete)', 'showDeleteFinalModal', 'Permanently Delete', 'Cancel', 'danger' ) }} {% endblock %} {% block extra_scripts %} {% endblock %}