diff --git a/app/Datatables/FamiliesDataTable.php b/app/Datatables/Botanic/FamiliesDataTable.php similarity index 92% rename from app/Datatables/FamiliesDataTable.php rename to app/Datatables/Botanic/FamiliesDataTable.php index fe8a50aa..e1984886 100644 --- a/app/Datatables/FamiliesDataTable.php +++ b/app/Datatables/Botanic/FamiliesDataTable.php @@ -1,10 +1,10 @@ add('Botanique', [ 'permission' => 'backend', 'icon' => 'envira' ]) + $menu->add('Botanique', [ 'permission' => 'backend', 'icon' => 'leaf' ]) ->id('botanic') ->activeIfRoute('botanic') ->order(2); - $menu->addTo('Botanic', 'Familles', [ 'route' => 'Botanic.Admin.Families.index', 'permission' => 'backend' ]) + $menu->addTo('botanic', 'Familles', [ 'route' => 'Botanic.Admin.Families.index', 'permission' => 'backend' ]) ->activeIfRoute(['Botanic.Admin.Families.index'])->order(1); - $menu->addTo('Botanic', 'Genres', [ 'route' => 'Botanic.Admin.Genres.index', 'permission' => 'backend' ]) + $menu->addTo('botanic', 'Genres', [ 'route' => 'Botanic.Admin.Genres.index', 'permission' => 'backend' ]) ->activeIfRoute(['Botanic.Admin.Genres.index'])->order(2); - $menu->addTo('Botanic', 'Espèces', [ 'route' => 'Botanic.Admin.Species.index', 'permission' => 'backend' ]) + $menu->addTo('botanic', 'Espèces', [ 'route' => 'Botanic.Admin.Species.index', 'permission' => 'backend' ]) ->activeIfRoute(['Botanic.Admin.Species.index'])->order(3); - $menu->addTo('Botanic', 'Variétés', [ 'route' => 'Botanic.Admin.Varieties.index', 'permission' => 'backend' ]) + $menu->addTo('botanic', 'Variétés', [ 'route' => 'Botanic.Admin.Varieties.index', 'permission' => 'backend' ]) ->activeIfRoute(['Botanic.Admin.Varieties.index'])->order(4); } diff --git a/app/Menu/Shop.php b/app/Menu/Shop.php index 7e815188..8346285d 100644 --- a/app/Menu/Shop.php +++ b/app/Menu/Shop.php @@ -14,14 +14,14 @@ class Shop ->activeIfRoute('shop') ->order(1); - $menu->addTo('shop', 'Categories', [ 'route' => 'Shop.Admin.Sections.index', 'permission' => 'backend' ]) - ->activeIfRoute(['Shop.Admin.Sections.index'])->order(5); - $menu->addTo('shop', 'Produits', [ 'route' => 'Shop.Admin.Products.index', 'permission' => 'backend' ]) - ->activeIfRoute(['Shop.Admin.Products.index'])->order(6); + $menu->addTo('shop', 'Categories', [ 'route' => 'Shop.Admin.Categories.index', 'permission' => 'backend' ]) + ->activeIfRoute(['Shop.Admin.Categories.index'])->order(1); + $menu->addTo('shop', 'Articles', [ 'route' => 'Shop.Admin.Articles.index', 'permission' => 'backend' ]) + ->activeIfRoute(['Shop.Admin.Articles.index'])->order(2); $menu->addTo('shop', 'Commandes', [ 'route' => 'Shop.Admin.Orders.index', 'permission' => 'backend' ]) - ->activeIfRoute(['Shop.Admin.Orders.index'])->order(7); + ->activeIfRoute(['Shop.Admin.Orders.index'])->order(3); $menu->addTo('shop', 'Factures', [ 'route' => 'Shop.Admin.Invoices.index', 'permission' => 'backend' ]) - ->activeIfRoute(['Shop.Admin.Invoices.index'])->order(8); + ->activeIfRoute(['Shop.Admin.Invoices.index'])->order(4); } }