Add management of merchandises, enhance imageable trait
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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
19
app/Menu/Merchandises.php
Normal 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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user