/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { // rol ekle $menu->add(lmcTrans('laravel-user-module/admin.menu.role.add'), ['route' => 'admin.role.create'])->attribute('data-icon', config('laravel-user-module.icons.role'))->data('permissions', 'admin.role.create')->active(removeDomain(lmbRoute('admin.role.create'))); // yönetici ekle $menu->add(lmcTrans('laravel-user-module/admin.menu.user.add'), ['route' => 'admin.user.create'])->attribute('data-icon', 'icon-user-follow')->data('permissions', 'admin.user.create')->active(removeDomain(lmbRoute('admin.user.create'))); }
/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { // bayi kategorisi ekle $menu->add(lmcTrans('laravel-dealer-module/admin.menu.dealer_category.add'), ['route' => 'admin.dealer_category.create'])->attribute('data-icon', config('laravel-dealer-module.icons.dealer_category'))->data('permissions', 'admin.dealer_category.create')->active(removeDomain(lmbRoute('admin.dealer_category.create'))); // bayi ekle $menu->add(lmcTrans('laravel-dealer-module/admin.menu.dealer.add'), ['route' => 'admin.dealer.create'])->attribute('data-icon', config('laravel-dealer-module.icons.dealer'))->data('permissions', 'admin.dealer.create')->active(removeDomain(lmbRoute('admin.dealer.create'))); }
/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { // departman ekle $menu->add(lmcTrans('laravel-team-module/admin.menu.team_category.add'), ['route' => ['admin.team_category.create']])->attribute('data-icon', 'icon-users')->data('permissions', 'admin.team_category.create')->active(lmbRoute('admin.team_category.create')); // ekip ekle $menu->add(lmcTrans('laravel-team-module/admin.menu.team.add'), ['route' => ['admin.team.create']])->attribute('data-icon', 'icon-user')->data('permissions', 'admin.team.create')->active(lmbRoute('admin.team.create')); }
/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { // rol ekle $menu->add(lmcTrans('laravel-description-module/admin.menu.description_category.add'), ['route' => 'admin.description_category.create'])->attribute('data-icon', config('laravel-description-module.icons.description_category'))->data('permissions', 'admin.description_category.create')->active(removeDomain(lmbRoute('admin.description_category.create'))); // yönetici ekle $menu->add(lmcTrans('laravel-description-module/admin.menu.description.add'), ['route' => 'admin.description.create'])->attribute('data-icon', config('laravel-description-module.icons.description'))->data('permissions', 'admin.description.create')->active(removeDomain(lmbRoute('admin.description.create'))); }
/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { $menu->add(lmcTrans('laravel-menu-module/admin.menus.menu.root'), 'javascript:;')->attribute('is-header', true); // menu $menuM = $menu->add(lmcTrans('laravel-menu-module/admin.menus.menu.root'), ['route' => ['admin.menu.index']])->attribute('data-icon', config('laravel-menu-module.icons.menu'))->data('permissions', self::$menuPermissions)->active(removeDomain(lmbRoute('admin.menu.index'))); $menuM->add(lmcTrans('laravel-menu-module/admin.menus.menu.all'), ['route' => ['admin.menu.index']])->attribute('data-icon', 'icon-list')->data('permissions', self::$menuPermissions[0])->active(removeDomain(lmbRoute('admin.menu.index'))); $menuM->add(lmcTrans('laravel-menu-module/admin.menus.menu.add'), ['route' => ['admin.menu.create']])->attribute('data-icon', 'icon-plus')->data('permissions', self::$menuPermissions[1])->active(removeDomain(lmbRoute('admin.menu.create'))); }
/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { $menu->add(lmcTrans('laravel-user-module/admin.menu.user.root'), 'javascript:;')->attribute('is-header', true); $role = $menu->add(lmcTrans('laravel-user-module/admin.menu.role.root'), 'javascript:;')->attribute('data-icon', config('laravel-user-module.icons.role'))->data('permissions', self::$rolePermissions)->active(removeDomain(lmbRoute('admin.role.index')) . '/*'); $role->add(lmcTrans('laravel-user-module/admin.menu.role.all'), ['route' => ['admin.role.index']])->attribute('data-icon', 'icon-list')->data('permissions', self::$rolePermissions[0])->active(removeDomain(lmbRoute('admin.role.index'))); $role->add(lmcTrans('laravel-user-module/admin.menu.role.add'), ['route' => ['admin.role.create']])->attribute('data-icon', 'icon-plus')->data('permissions', self::$rolePermissions[1])->active(removeDomain(lmbRoute('admin.role.create'))); // user $user = $menu->add(lmcTrans('laravel-user-module/admin.menu.user.root'), 'javascript:;')->attribute('data-icon', config('laravel-user-module.icons.user'))->data('permissions', self::$userPermissions)->active(removeDomain(lmbRoute('admin.user.index')) . '/*'); $user->add(lmcTrans('laravel-user-module/admin.menu.user.all'), ['route' => ['admin.user.index']])->attribute('data-icon', 'icon-list')->data('permissions', self::$userPermissions[0])->active(removeDomain(lmbRoute('admin.user.index'))); $user->add(lmcTrans('laravel-user-module/admin.menu.user.add'), ['route' => ['admin.user.create']])->attribute('data-icon', 'icon-plus')->data('permissions', self::$userPermissions[1])->active(removeDomain(lmbRoute('admin.user.create'))); }
/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { // ürün kategorisi ekle $menu->add(lmcTrans('laravel-product-module/admin.menu.product_category.add'), ['route' => 'admin.product_category.create'])->attribute('data-icon', config('laravel-product-module.icons.product_category'))->data('permissions', 'admin.product_category.create')->active(removeDomain(lmbRoute('admin.product_category.create'))); // marka ekle $menu->add(lmcTrans('laravel-product-module/admin.menu.product_brand.add'), ['route' => 'admin.product_brand.create'])->attribute('data-icon', config('laravel-product-module.icons.product_brand'))->data('permissions', 'admin.product_brand.create')->active(removeDomain(lmbRoute('admin.product_brand.create'))); // vitrin ekle $menu->add(lmcTrans('laravel-product-module/admin.menu.product_showcase.add'), ['route' => 'admin.product_showcase.create'])->attribute('data-icon', config('laravel-product-module.icons.product_showcase'))->data('permissions', 'admin.product_showcase.create')->active(removeDomain(lmbRoute('admin.product_showcase.create'))); // ürün ekle $menu->add(lmcTrans('laravel-product-module/admin.menu.product.add'), ['route' => 'admin.product.create'])->attribute('data-icon', config('laravel-product-module.icons.product'))->data('permissions', 'admin.product.create')->active(removeDomain(lmbRoute('admin.product.create'))); }
/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { $menu->add(lmcTrans('laravel-document-module/admin.menu.document.root'), 'javascript:;')->attribute('is-header', true); // document_category $document_category = $menu->add(lmcTrans('laravel-document-module/admin.menu.document_category.root'), 'javascript:;')->attribute('data-icon', config('laravel-document-module.icons.document_category'))->data('permissions', self::$documentCategoryPermissions)->active(removeDomain(lmbRoute('admin.document_category.index')) . '/*'); $document_category->add(lmcTrans('laravel-document-module/admin.menu.document_category.all'), ['route' => ['admin.document_category.index']])->attribute('data-icon', 'icon-list')->data('permissions', self::$documentCategoryPermissions[0])->active(removeDomain(lmbRoute('admin.document_category.index'))); $document_category->add(lmcTrans('laravel-document-module/admin.menu.document_category.add'), ['route' => ['admin.document_category.create']])->attribute('data-icon', 'icon-plus')->data('permissions', self::$documentCategoryPermissions[1])->active(removeDomain(lmbRoute('admin.document_category.create'))); // document $document = $menu->add(lmcTrans('laravel-document-module/admin.menu.document.root'), 'javascript:;')->attribute('data-icon', config('laravel-document-module.icons.document'))->data('permissions', self::$documentPermissions)->active(removeDomain(lmbRoute('admin.document.index')) . '/*'); $document->add(lmcTrans('laravel-document-module/admin.menu.document.all'), ['route' => ['admin.document.index']])->attribute('data-icon', 'icon-list')->data('permissions', self::$documentPermissions[0])->active(removeDomain(lmbRoute('admin.document.index'))); $document->add(lmcTrans('laravel-document-module/admin.menu.document.add'), ['route' => ['admin.document.create']])->attribute('data-icon', 'icon-plus')->data('permissions', self::$documentPermissions[1])->active(removeDomain(lmbRoute('admin.document.create'))); }
/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { $menu->add(lmcTrans('laravel-product-module/admin.menu.product.root'), 'javascript:;')->attribute('is-header', true); // product_category $product_category = $menu->add(lmcTrans('laravel-product-module/admin.menu.product_category.root'), 'javascript:;')->attribute('data-icon', config('laravel-product-module.icons.product_category'))->data('permissions', self::$productCategoryPermissions)->active(removeDomain(lmbRoute('admin.product_category.index')) . '/*'); $product_category->add(lmcTrans('laravel-product-module/admin.menu.product_category.all'), ['route' => ['admin.product_category.index']])->attribute('data-icon', 'icon-list')->data('permissions', self::$productCategoryPermissions[0])->active(removeDomain(lmbRoute('admin.product_category.index'))); $product_category->add(lmcTrans('laravel-product-module/admin.menu.product_category.add'), ['route' => ['admin.product_category.create']])->attribute('data-icon', 'icon-plus')->data('permissions', self::$productCategoryPermissions[1])->active(removeDomain(lmbRoute('admin.product_category.create'))); // product_brand $product_brand = $menu->add(lmcTrans('laravel-product-module/admin.menu.product_brand.root'), 'javascript:;')->attribute('data-icon', config('laravel-product-module.icons.product_brand'))->data('permissions', self::$productBrandPermissions)->active(removeDomain(lmbRoute('admin.product_brand.index')) . '/*'); $product_brand->add(lmcTrans('laravel-product-module/admin.menu.product_brand.all'), ['route' => ['admin.product_brand.index']])->attribute('data-icon', 'icon-list')->data('permissions', self::$productBrandPermissions[0])->active(removeDomain(lmbRoute('admin.product_brand.index'))); $product_brand->add(lmcTrans('laravel-product-module/admin.menu.product_brand.add'), ['route' => ['admin.product_brand.create']])->attribute('data-icon', 'icon-plus')->data('permissions', self::$productBrandPermissions[1])->active(removeDomain(lmbRoute('admin.product_brand.create'))); // product_showcase $product_showcase = $menu->add(lmcTrans('laravel-product-module/admin.menu.product_showcase.root'), 'javascript:;')->attribute('data-icon', config('laravel-product-module.icons.product_showcase'))->data('permissions', self::$productShowcasePermissions)->active(removeDomain(lmbRoute('admin.product_showcase.index')) . '/*'); $product_showcase->add(lmcTrans('laravel-product-module/admin.menu.product_showcase.all'), ['route' => ['admin.product_showcase.index']])->attribute('data-icon', 'icon-list')->data('permissions', self::$productShowcasePermissions[0])->active(removeDomain(lmbRoute('admin.product_showcase.index'))); $product_showcase->add(lmcTrans('laravel-product-module/admin.menu.product_showcase.add'), ['route' => ['admin.product_showcase.create']])->attribute('data-icon', 'icon-plus')->data('permissions', self::$productShowcasePermissions[1])->active(removeDomain(lmbRoute('admin.product_showcase.create'))); // product $product = $menu->add(lmcTrans('laravel-product-module/admin.menu.product.root'), 'javascript:;')->attribute('data-icon', config('laravel-product-module.icons.product'))->data('permissions', self::$productPermissions)->active(removeDomain(lmbRoute('admin.product.index')) . '/*'); $product->add(lmcTrans('laravel-product-module/admin.menu.product.all'), ['route' => ['admin.product.index']])->attribute('data-icon', 'icon-list')->data('permissions', self::$productPermissions[0])->active(removeDomain(lmbRoute('admin.product.index'))); $product->add(lmcTrans('laravel-product-module/admin.menu.product.add'), ['route' => ['admin.product.create']])->attribute('data-icon', 'icon-plus')->data('permissions', self::$productPermissions[1])->active(removeDomain(lmbRoute('admin.product.create'))); }
/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { $menu->add(lmcTrans('admin.profile'), ['route' => ['admin.user.show', 'id' => Sentinel::getUser()->id]])->attribute('data-icon', config('laravel-user-module.icons.user'))->data('permissions', self::$userPermissions)->active(removeDomain(lmbRoute('admin.user.show', ['id' => Sentinel::getUser()->id])) . '/*'); $menu->add(lmcTrans('admin.logout'), ['route' => 'getLogout'])->attribute('data-icon', 'icon-logout'); }
/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { $menu->add(lmcTrans('laravel-company-module/admin.menu.company.root'), 'javascript:;')->attribute('is-header', true); // company $menu->add(lmcTrans('laravel-company-module/admin.menu.company.root'), ['route' => ['admin.company.edit']])->attribute('data-icon', config('laravel-company-module.icons.company'))->data('permissions', self::$companyPermissions)->active(removeDomain(lmbRoute('admin.company.edit'))); }
/** * add menu method * * @param \Caffeinated\Menus\Menu $menu * @return void */ public static function addMenu($menu) { // şube ekle $menu->add(lmcTrans('laravel-contact-module/admin.menu.contact.add'), ['route' => 'admin.contact.create'])->attribute('data-icon', config('laravel-contact-module.icons.contact'))->data('permissions', 'admin.contact.create')->active(removeDomain(lmbRoute('admin.contact.create'))); }
/** * Returns all menu instances. * * @return \Caffeinated\Menus\Collection * @static */ public static function all() { return \Caffeinated\Menus\Menu::all(); }