{# app/templates/admin/platform-menu-config.html #} {% extends "admin/base.html" %} {% from 'shared/macros/alerts.html' import alert_dynamic, error_state %} {% from 'shared/macros/headers.html' import page_header %} {% from 'shared/macros/modals.html' import confirm_modal %} {% block title %}Menu Configuration{% endblock %} {% block alpine_data %}adminPlatformMenuConfig('{{ platform_code }}'){% endblock %} {% block content %} {{ page_header('Menu Configuration', back_url='/admin/platforms/' + platform_code) }} {{ alert_dynamic(type='success', title='Success', message_var='successMessage', show_condition='successMessage') }} {{ error_state('Error', show_condition='error') }}

Configure which menu items are visible for admins and stores on this platform.

{# Merchant frontend menu is driven by module enablement + subscriptions, not by AdminMenuConfig visibility. No tab needed here. #}

Total Items

Visible

Hidden

Toggle visibility for menu items. Mandatory items cannot be hidden.

Loading menu configuration...

No menu items configured for this frontend type.

{{ confirm_modal( 'showAllModal', 'Show All Menu Items', 'Are you sure you want to show all menu items? This will make all non-mandatory items visible.', 'showAll()', 'showShowAllModal', 'Show All', 'Cancel', 'info' ) }} {{ confirm_modal( 'hideAllModal', 'Hide All Menu Items', 'Are you sure you want to hide all optional menu items? Only mandatory items will remain visible.', 'resetToDefaults()', 'showHideAllModal', 'Hide All', 'Cancel', 'warning' ) }} {% endblock %} {% block extra_scripts %} {% endblock %}