{hook name="main.before-top-menu" location="before_top_menu" }

- {loop name="top-bar-search" type="auth" role="ADMIN" resource="admin.search" access="VIEW"}
  {/loop}
{loop name="menu-auth-home" type="auth" role="ADMIN" resource="admin.artabanmarketplace.administrator" access="VIEW"} {/loop} {ifloop rel="menu-auth-home"}
- {intl l="Home"}
{/ifloop} {elseloop rel="menu-auth-home"}
- {intl l="Home"}
{/elseloop} {loop name="menu-auth-customer" type="auth" role="ADMIN" resource="admin.customer" access="VIEW"} {ifhook rel="main.top-menu-customer"} {hookblock name="main.top-menu-customer" fields="id,class,url,title"}
- {intl l="Customers"}
  - {intl l="Customers"}
  {forhook rel="main.top-menu-customer"}
  - {$title}
  {/forhook}
{/hookblock} {/ifhook} {elsehook rel="main.top-menu-customer"}
- {intl l="Customers"}
{/elsehook} {/loop} {loop name="menu-auth-order" type="auth" role="ADMIN" resource="admin.artabanmarketplace.administrator" access="VIEW"}
- {intl l="Orders"}
  - {intl l="Sellers orders"} {count type="ampseller_order"}
  - {intl l="General orders"} {count type="order" customer="*" backend_context="1"}
  {loop name="order-status-list" type="order-status"} {$count = {count type="ampseller_order" amp_seller_id=0 customer="*" backend_context="1" status={$ID}}} {if $count}
  - {$TITLE} {$count}
  {/if} {/loop} {hookblock name="main.top-menu-order" fields="id,class,url,title"} {forhook rel="main.top-menu-order"}
  - {$title}
  {/forhook} {/hookblock}
{/loop} {loop name="menu-auth-catalog" type="auth" role="ADMIN" resource="admin.category" access="VIEW"} {ifhook rel="main.top-menu-catalog"} {hookblock name="main.top-menu-catalog" fields="id,class,url,title"}
- {intl l="Catalog"}
  - {intl l="Catalog"}
  {forhook rel="main.top-menu-catalog"}
  - {$title}
  {/forhook}
{/hookblock} {/ifhook} {elsehook rel="main.top-menu-catalog"}
- {intl l="Catalog"}
{/elsehook} {/loop} {loop name="menu-auth-content" type="auth" role="ADMIN" resource="admin.folder" access="VIEW"} {ifhook rel="main.top-menu-content"} {hookblock name="main.top-menu-content" fields="id,class,url,title"}
- {intl l="Folders"}
  - {intl l="Folders"}
  {forhook rel="main.top-menu-content"}
  - {$title}
  {/forhook}
{/hookblock} {/ifhook} {elsehook rel="main.top-menu-content"}
- {intl l="Folders"}
{/elsehook} {/loop} {loop name="menu-auth-tools" type="auth" role="ADMIN" resource="admin.tools" access="VIEW"}
- {intl l="Tools"}
  {loop name="auth-coupon" type="auth" role="ADMIN" resource="admin.coupon" access="VIEW"}
  - {intl l="Coupons"}
  {/loop} {loop name="auth-sales" type="auth" role="ADMIN" resource="admin.sales" access="VIEW"}
  - {intl l="Sales management"}
  {/loop} {loop name="auth-brand" type="auth" role="ADMIN" resource="admin.brand" access="VIEW"}
  - {intl l="Brands"}
  {/loop} {loop name="auth-export" type="auth" role="ADMIN" resource="admin.export" access="VIEW"}
  - {intl l="Export"}
  {/loop} {loop name="auth-import" type="auth" role="ADMIN" resource="admin.import" access="VIEW"}
  - {intl l="Import"}
  {/loop} {hookblock name="main.top-menu-tools" fields="id,class,url,title"} {forhook rel="main.top-menu-tools"}
  - {$title}
  {/forhook} {/hookblock}
{/loop} {loop name="menu-auth-modules" type="auth" role="ADMIN" resource="admin.module" access="VIEW"} {ifhook rel="main.top-menu-modules"} {hookblock name="main.top-menu-modules" fields="id,class,url,title"}
- {intl l="Modules"}
  - {intl l="Modules"}
  {forhook rel="main.top-menu-modules"}
  - {$title}
  {/forhook}
{/hookblock} {/ifhook} {elsehook rel="main.top-menu-modules"}
- {intl l="Modules"}
{/elsehook} {/loop} {loop name="menu-auth-config" type="auth" role="ADMIN" resource="admin.configuration" access="VIEW"} {ifhook rel="main.top-menu-configuration"} {hookblock name="main.top-menu-configuration" fields="id,class,url,title"}
- {intl l="Configuration"}
  {forhook rel="main.top-menu-configuration"}
  - {$title}
  {/forhook}
{/hookblock} {/ifhook} {elsehook rel="main.top-menu-configuration"}
- {intl l="Configuration"}
{/elsehook} {/loop} {hook name="main.in-top-menu-items" location="in_top_menu_items" admin_current_location=$admin_current_location}

{hook name="main.topbar-bottom" } {hook name="main.after-top-menu" location="after_top_menu" }