[WIP] config Datatables/Webpack/Yajra
This commit is contained in:
@@ -9,20 +9,26 @@ class Shop
|
||||
{
|
||||
public function make(Builder $menu)
|
||||
{
|
||||
$menu->add('Commerce', [ 'permission' => 'backend', 'icon' => 'cog' ])
|
||||
$menu->add('Commerce', [ 'permission' => 'backend', 'icon' => 'shopping-basket' ])
|
||||
->id('shop')
|
||||
->activeIfRoute('shop')
|
||||
|
||||
->order(1);
|
||||
|
||||
$menu->addTo('shop', 'Familles', [ 'route' => 'Shop.Admin.Families.index', 'permission' => 'backend' ])
|
||||
->activeIfRoute(['Shop.Admin.Families.index'])->order(1);
|
||||
$menu->addTo('shop', 'Genres', [ 'route' => 'Shop.Admin.Genres.index', 'permission' => 'backend' ])
|
||||
->activeIfRoute(['Shop.Admin.Genres.index'])->order(2);
|
||||
$menu->addTo('shop', 'Espèces', [ 'route' => 'Shop.Admin.Species.index', 'permission' => 'backend' ])
|
||||
->activeIfRoute(['Shop.Admin.Species.index'])->order(3);
|
||||
|
||||
$menu->addTo('shop', 'Categories', [ 'route' => 'Shop.Admin.Sections.index', 'permission' => 'backend' ])
|
||||
->activeIfRoute(['Shop.Admin.Sections.index'])->order(1);
|
||||
->activeIfRoute(['Shop.Admin.Sections.index'])->order(4);
|
||||
$menu->addTo('shop', 'Produits', [ 'route' => 'Shop.Admin.Products.index', 'permission' => 'backend' ])
|
||||
->activeIfRoute(['Shop.Admin.Products.index'])->order(2);
|
||||
->activeIfRoute(['Shop.Admin.Products.index'])->order(5);
|
||||
$menu->addTo('shop', 'Commandes', [ 'route' => 'Shop.Admin.Orders.index', 'permission' => 'backend' ])
|
||||
->activeIfRoute(['Shop.Admin.Orders.index'])->order(3);
|
||||
->activeIfRoute(['Shop.Admin.Orders.index'])->order(6);
|
||||
$menu->addTo('shop', 'Factures', [ 'route' => 'Shop.Admin.Invoices.index', 'permission' => 'backend' ])
|
||||
->activeIfRoute(['Shop.Admin.Invoices.index'])->order(4);
|
||||
->activeIfRoute(['Shop.Admin.Invoices.index'])->order(7);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user