From e370174f94157dbd5a02e28590d7b80cbc3a3989 Mon Sep 17 00:00:00 2001 From: Ludovic CANDELLIER Date: Tue, 21 Apr 2020 19:52:11 +0200 Subject: [PATCH] Botanic release --- app/Datatables/{ => Botanic}/FamiliesDataTable.php | 4 ++-- app/Datatables/{ => Botanic}/GenresDataTable.php | 4 ++-- app/Datatables/{ => Botanic}/SpeciesDataTable.php | 4 ++-- app/Datatables/{ => Botanic}/VarietiesDataTable.php | 4 ++-- .../Controllers/Botanic/Admin/FamilyController.php | 2 +- .../Controllers/Botanic/Admin/GenreController.php | 2 +- .../Controllers/Botanic/Admin/SpecieController.php | 2 +- .../Controllers/Botanic/Admin/VarietyController.php | 2 +- app/Menu/Botanic.php | 10 +++++----- app/Menu/Shop.php | 12 ++++++------ 10 files changed, 23 insertions(+), 23 deletions(-) rename app/Datatables/{ => Botanic}/FamiliesDataTable.php (92%) rename app/Datatables/{ => Botanic}/GenresDataTable.php (92%) rename app/Datatables/{ => Botanic}/SpeciesDataTable.php (92%) rename app/Datatables/{ => Botanic}/VarietiesDataTable.php (90%) 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); } }