{# app/templates/admin/stores.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, confirm_modal_dynamic %} {% from 'shared/macros/inputs.html' import entity_selector, entity_selected_badge %} {% block title %}Stores{% endblock %} {% block alpine_data %}adminStores(){% endblock %} {% block content %} {{ page_header('Store Management', action_label='Create Store', action_url='/admin/stores/create') }} {{ loading_state('Loading stores...') }} {{ error_state('Error loading stores') }}

Total Stores

0

Verified Stores

0

Pending

0

Inactive

0

{{ entity_selector(ref_name='merchantSelect', id='merchant-select', placeholder='Filter by merchant...', width='w-64') }}
{{ entity_selected_badge(entity_var='selectedMerchant', clear_fn='clearMerchantFilter()', name_field='name', color='blue') }}
{% call table_wrapper() %} {{ table_header(['Store', 'Subdomain', 'Status', 'Created', 'Actions']) }} {% endcall %} {{ pagination() }}
{{ confirm_modal_dynamic( 'deleteStoreModal', 'Delete Store', "'Are you sure you want to delete \"' + (storeToDelete?.name || '') + '\"? This action cannot be undone.'", 'deleteStore(storeToDelete)', 'showDeleteStoreModal', 'Delete', 'Cancel', 'danger' ) }} {% endblock %} {% block extra_scripts %} {% endblock %}