Add management of merchandises, enhance imageable trait

This commit is contained in:
Ludovic CANDELLIER
2022-04-16 11:40:19 +02:00
parent 68a13b7a58
commit 2d111605f2
8 changed files with 40 additions and 22 deletions

View File

@@ -11,7 +11,7 @@ class Botanic
{
$menu->add('Botanique', ['icon' => 'leaf' ])
->id('botanic')
->order(5);
->order(4);
$menu->addTo('botanic', 'Familles', [
'route' => 'Admin.Botanic.Families.index',

View File

@@ -10,7 +10,7 @@ class Customers
{
$menu->add('Clients finaux', ['icon' => 'address-card' ])
->id('customers')
->order(4);
->order(6);
$menu->addTo('customers', __('customer.customers.name'), [
'route' => 'Admin.Shop.Customers.index',

19
app/Menu/Merchandises.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
namespace App\Menu;
use Sebastienheyd\Boilerplate\Menu\Builder;
class Merchandises
{
public function make(Builder $menu)
{
$menu->add('Marchandises', ['icon' => 'shopping-bag' ])
->id('merchandises')
->order(5);
$menu->addTo('merchandises', __('Marchandises'), [
'route' => 'Admin.Shop.Merchandises.index',
])->activeIfRoute(['Admin.Shop.Merchandises.*'])->order(1);
}
}

View File

@@ -60,10 +60,6 @@ class Shop
$menu->addTo('shop', 'Accueil', [
'route' => 'Admin.Shop.Homepages.index',
])->activeIfRoute(['Admin.Shop.Homepages.*'])->order(15);
$menu->addTo('shop', 'Marchandises', [
'route' => 'Admin.Shop.Merchandises.index',
])->activeIfRoute(['Admin.Shop.Merchandises.*'])->order(16);
}
}