{# app/templates/admin/merchant-edit.html #} {% extends "admin/base.html" %} {% from 'shared/macros/alerts.html' import loading_state %} {% from 'shared/macros/inputs.html' import search_autocomplete, selected_item_display %} {% from 'shared/macros/headers.html' import edit_page_header %} {% from 'shared/macros/modals.html' import confirm_modal_dynamic %} {% block title %}Edit Merchant{% endblock %} {% block alpine_data %}adminMerchantEdit(){% endblock %} {% block content %} {% call edit_page_header('Edit Merchant', '/admin/merchants', subtitle_show='merchant', back_label='Back to Merchants') %} {% endcall %} {{ loading_state('Loading merchant...', show_condition='loadingMerchant') }}

Quick Actions

Verified Pending Active Inactive

Basic Information

Contact Information

Business Details

Cancel

More Actions

Ownership transfer affects all stores under this merchant. Merchant cannot be deleted while it has stores ( stores).

{{ confirm_modal_dynamic( 'toggleVerificationModal', 'Toggle Verification', "merchant?.is_verified ? 'Are you sure you want to unverify this merchant?' : 'Are you sure you want to verify this merchant?'", 'toggleVerification()', 'showToggleVerificationModal', 'Confirm', 'Cancel', 'warning' ) }} {{ confirm_modal_dynamic( 'toggleActiveModal', 'Toggle Active Status', "merchant?.is_active ? 'Are you sure you want to deactivate this merchant? This will affect all stores under this merchant.' : 'Are you sure you want to activate this merchant? This will affect all stores under this merchant.'", 'toggleActive()', 'showToggleActiveModal', 'Confirm', 'Cancel', 'warning' ) }} {{ confirm_modal_dynamic( 'deleteMerchantModal', 'Delete Merchant', "'Are you sure you want to delete merchant \"' + (merchant?.name || '') + '\"? This action cannot be undone.'", 'confirmDeleteMerchantStep()', 'showDeleteMerchantModal', 'Continue', 'Cancel', 'danger' ) }} {{ confirm_modal_dynamic( 'deleteMerchantFinalModal', 'Final Confirmation', "'FINAL CONFIRMATION: Delete \"' + (merchant?.name || '') + '\"? This will permanently delete the merchant and all its data.'", 'deleteMerchant()', 'showDeleteMerchantFinalModal', 'Delete Permanently', 'Cancel', 'danger' ) }} {# noqa: FE-004 - Complex form modal with dynamic user search and transfer functionality #}

Transfer Merchant Ownership

Warning: This will transfer ownership of the merchant "" and all its stores to another user.

Please confirm the transfer by checking the box above

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