public function registerAdminMenu() { $adminMenu = ['sale' => ['label' => 'Sales', 'route' => '#']]; AdminMenu::registerMenu('mage2-order', $adminMenu); $adminMenu = ['sale' => ['submenu' => ['order' => ['label' => 'Orders', 'route' => 'admin.order.index']]]]; AdminMenu::registerMenu('mage2-order', $adminMenu); $orderStatusMenu = ['sale' => ['submenu' => ['order-status' => ['label' => 'Order Status', 'route' => 'admin.order-status.index']]]]; AdminMenu::registerMenu('mage2-order', $orderStatusMenu); }
public function registerAdminMenu() { $adminMenu = ['page' => ['label' => 'Pages', 'route' => 'admin.page.index']]; AdminMenu::registerMenu('mage2-page', $adminMenu); }
public function registerAdminMenu() { $adminUserMenu = ['user' => ['label' => 'Users', 'route' => '#', 'submenu' => ['admin-users' => ['label' => 'Admin Users', 'route' => 'admin.admin-user.index'], 'roles' => ['label' => 'Roles', 'route' => 'admin.role.index']]]]; AdminMenu::registerMenu('mage2-user', $adminUserMenu); }
public function registerAdminMenu() { $adminMenu = ['system' => ['label' => 'System', 'route' => '#', 'submenu' => ['module' => ['label' => 'Module', 'route' => 'admin.module.index']]]]; AdminMenu::registerMenu('mage2-system', $adminMenu); }
/** * Bind data to the view. * * @param View $view * @return void */ public function compose(View $view) { $adminMenus = (array) AdminMenu::getMenuItems(); $view->with('adminMenus', $adminMenus); }
public function registerAdminMenu() { $adminMenu = ['system' => ['submenu' => ['theme' => ['label' => 'Themes', 'route' => 'admin.theme.index']]]]; AdminMenu::registerMenu('mage2-system', $adminMenu); }
public function registerAdminMenu() { $adminUserMenu = ['catalog' => ['label' => 'Catalog', 'route' => '#', 'submenu' => ['category' => ['label' => 'Category', 'route' => 'admin.category.index'], 'product' => ['label' => 'Products', 'route' => 'admin.product.index']]]]; AdminMenu::registerMenu('mage2-catalog', $adminUserMenu); }