{# app/templates/merchant/partials/sidebar.html #} {# Collapsible sidebar sections with localStorage persistence - matching store pattern #} {# ============================================================================ REUSABLE MACROS FOR SIDEBAR ITEMS ============================================================================ #} {# Macro for collapsible section header #} {% macro section_header(title, section_key, icon=none) %}

{% endmacro %} {# Macro for collapsible section content wrapper #} {% macro section_content(section_key) %} {% endmacro %} {# Macro for menu item - uses static href (no storeCode needed) #} {% macro menu_item(page_id, path, icon, label) %}
  • {{ label }}
  • {% endmacro %} {# ============================================================================ SIDEBAR CONTENT (shared between desktop and mobile) ============================================================================ #} {% macro sidebar_content() %}
    Merchant Portal {{ section_header('Billing', 'billing', 'credit-card') }} {% call section_content('billing') %} {{ menu_item('subscriptions', '/merchants/billing/subscriptions', 'clipboard-list', 'Subscriptions') }} {{ menu_item('billing', '/merchants/billing/billing', 'currency-euro', 'Billing History') }} {% endcall %} {{ section_header('Account', 'account', 'cog') }} {% call section_content('account') %} {{ menu_item('stores', '/merchants/account/stores', 'shopping-bag', 'Stores') }} {{ menu_item('profile', '/merchants/account/profile', 'user', 'Profile') }} {% endcall %}
    {% endmacro %} {# ============================================================================ DESKTOP SIDEBAR ============================================================================ #} {# ============================================================================ MOBILE SIDEBAR ============================================================================ #}