49 lines
2.5 KiB
PHP
49 lines
2.5 KiB
PHP
<?php
|
|
|
|
namespace App\Menu;
|
|
|
|
use Sebastienheyd\Boilerplate\Menu\Builder;
|
|
|
|
class Shop
|
|
{
|
|
public function make(Builder $menu)
|
|
{
|
|
$menu->add('Catalogue', [ 'permission' => 'backend_access', 'icon' => 'store' ])
|
|
->id('shop')
|
|
->activeIfRoute('shop')
|
|
->order(2);
|
|
|
|
$menu->addTo('shop', 'Articles', [ 'route' => 'Shop.Admin.Articles.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Shop.Admin.Articles.*'])->order(1);
|
|
$menu->addTo('shop', 'Rayons', [ 'route' => 'Shop.Admin.Categories.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Shop.Admin.Categories.*'])->order(2);
|
|
$menu->addTo('shop', 'Familles d\'articles', [ 'route' => 'Shop.Admin.ArticleFamilies.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Shop.Admin.ArticleFamilies.*'])->order(3);
|
|
/*
|
|
$menu->addTo('shop', 'Attributs', [ 'route' => 'Shop.Admin.ArticleAttributeValues.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Shop.Admin.ArticleAttributeValues.*'])->order(4);
|
|
*/
|
|
$menu->addTo('shop', 'Familles de tags', [ 'route' => 'Shop.Admin.TagGroups.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Shop.Admin.TagGroups.*'])->order(5);
|
|
$menu->addTo('shop', 'Tags', [ 'route' => 'Shop.Admin.Tags.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Shop.Admin.Tags.*'])->order(6);
|
|
|
|
/*
|
|
$menu->addTo('shop', 'Réductions', [ 'route' => 'Shop.Admin.ArticleAttributeValues.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Shop.Admin.ArticleAttributeValues.*'])->order(8);
|
|
$menu->addTo('shop', 'Stock', [ 'route' => 'Shop.Admin.ArticleAttributeValues.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Shop.Admin.ArticleAttributeValues.*'])->order(9);
|
|
*/
|
|
$menu->addTo('shop', 'Prix génériques', [ 'route' => 'Shop.Admin.PriceGenerics.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Shop.Admin.PriceGenerics.*'])->order(10);
|
|
|
|
$menu->addTo('shop', 'Packages', [ 'route' => 'Shop.Admin.Packages.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Shop.Admin.Packages.*'])->order(12);
|
|
|
|
$menu->addTo('shop', 'Unités', [ 'route' => 'Shop.Admin.Unities.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Shop.Admin.Unities.*'])->order(14);
|
|
|
|
|
|
}
|
|
}
|