coding style
This commit is contained in:
@@ -3,24 +3,23 @@
|
||||
namespace App\Menu;
|
||||
|
||||
use Sebastienheyd\Boilerplate\Menu\Builder;
|
||||
use App\Repositories\Users;
|
||||
|
||||
class Botanic
|
||||
{
|
||||
public function make(Builder $menu)
|
||||
{
|
||||
$menu->add('Botanique', [ 'permission' => 'backend_access', 'icon' => 'leaf' ])
|
||||
$menu->add('Botanique', ['permission' => 'backend_access', 'icon' => 'leaf'])
|
||||
->id('botanic')
|
||||
->activeIfRoute('botanic')
|
||||
->order(4);
|
||||
|
||||
$menu->addTo('botanic', 'Familles', [ 'route' => 'Admin.Botanic.Families.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('botanic', 'Familles', ['route' => 'Admin.Botanic.Families.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Botanic.Families.*'])->order(1);
|
||||
$menu->addTo('botanic', 'Genres', [ 'route' => 'Admin.Botanic.Genres.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('botanic', 'Genres', ['route' => 'Admin.Botanic.Genres.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Botanic.Genres.*'])->order(2);
|
||||
$menu->addTo('botanic', 'Espèces', [ 'route' => 'Admin.Botanic.Species.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('botanic', 'Espèces', ['route' => 'Admin.Botanic.Species.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Botanic.Species.*'])->order(3);
|
||||
$menu->addTo('botanic', 'Variétés', [ 'route' => 'Admin.Botanic.Varieties.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('botanic', 'Variétés', ['route' => 'Admin.Botanic.Varieties.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Botanic.Varieties.*'])->order(4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ class Contents
|
||||
{
|
||||
public function make(Builder $menu)
|
||||
{
|
||||
$menu->add('Contenus', ['icon' => 'newspaper' ])
|
||||
$menu->add('Contenus', ['icon' => 'newspaper'])
|
||||
->id('contents')
|
||||
->order(6);
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ class Customers
|
||||
{
|
||||
public function make(Builder $menu)
|
||||
{
|
||||
$menu->add('Clients', [ 'permission' => 'backend_access', 'icon' => 'address-card' ])
|
||||
$menu->add('Clients', ['permission' => 'backend_access', 'icon' => 'address-card'])
|
||||
->id('customers')
|
||||
->activeIfRoute('customers')
|
||||
->order(3);
|
||||
|
||||
@@ -14,10 +14,10 @@ class Deliveries
|
||||
|
||||
$menu->addTo('sales_mode', __('shop.sale_channels.name'), [
|
||||
'route' => 'Admin.Shop.SaleChannels.index',
|
||||
])->activeIfRoute(['Admin.Shop.SaleChannels.*'])->order(1);
|
||||
])->activeIfRoute(['Admin.Shop.SaleChannels.*'])->order(1);
|
||||
|
||||
$menu->addTo('sales_mode', __('shop.deliveries.title'), [
|
||||
'route' => 'Admin.Shop.Deliveries.index',
|
||||
])->activeIfRoute(['Admin.Shop.Deliveries.*'])->order(1);
|
||||
])->activeIfRoute(['Admin.Shop.Deliveries.*'])->order(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ class Merchandises
|
||||
{
|
||||
public function make(Builder $menu)
|
||||
{
|
||||
$menu->add('Marchandises', ['icon' => 'shopping-bag' ])
|
||||
$menu->add('Marchandises', ['icon' => 'shopping-bag'])
|
||||
->id('merchandises')
|
||||
->order(5);
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ class Orders
|
||||
{
|
||||
public function make(Builder $menu)
|
||||
{
|
||||
$menu->add('Commandes', [ 'permission' => 'backend_access', 'icon' => 'shopping-basket' ])
|
||||
$menu->add('Commandes', ['permission' => 'backend_access', 'icon' => 'shopping-basket'])
|
||||
->id('orders')
|
||||
->activeIfRoute('orders')
|
||||
->order(1);
|
||||
|
||||
|
||||
$menu->addTo('orders', 'Commandes', [
|
||||
'route' => 'Admin.Shop.Orders.index',
|
||||
'permission' => 'backend_access',
|
||||
@@ -22,16 +22,16 @@ class Orders
|
||||
'route' => 'Admin.Shop.Invoices.index',
|
||||
'permission' => 'backend_access',
|
||||
])->activeIfRoute(['Admin.Shop.Invoices.*'])->order(2);
|
||||
/*
|
||||
$menu->addTo('orders', 'Avoirs', [
|
||||
'route' => 'Admin.Shop.Invoices.index',
|
||||
'permission' => 'backend_access',
|
||||
])->activeIfRoute(['Admin.Shop.Invoices.*'])->order(3);
|
||||
|
||||
$menu->addTo('orders', 'Bons de livraison', [
|
||||
'route' => 'Admin.Shop.Invoices.index',
|
||||
'permission' => 'backend_access',
|
||||
])->activeIfRoute(['Admin.Shop.Invoices.*'])->order(4);
|
||||
*/
|
||||
/*
|
||||
$menu->addTo('orders', 'Avoirs', [
|
||||
'route' => 'Admin.Shop.Invoices.index',
|
||||
'permission' => 'backend_access',
|
||||
])->activeIfRoute(['Admin.Shop.Invoices.*'])->order(3);
|
||||
|
||||
$menu->addTo('orders', 'Bons de livraison', [
|
||||
'route' => 'Admin.Shop.Invoices.index',
|
||||
'permission' => 'backend_access',
|
||||
])->activeIfRoute(['Admin.Shop.Invoices.*'])->order(4);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,11 +8,11 @@ class Settings
|
||||
{
|
||||
public function make(Builder $menu)
|
||||
{
|
||||
$menu->add('Paramètres', [ 'permission' => 'backend_access', 'icon' => 'cogs' ])
|
||||
$menu->add('Paramètres', ['permission' => 'backend_access', 'icon' => 'cogs'])
|
||||
->id('settings')
|
||||
->activeIfRoute('settings')
|
||||
->order(7);
|
||||
|
||||
|
||||
$menu->addTo('settings', __('shop.delivery_types.title'), [
|
||||
'route' => 'Admin.Shop.DeliveryTypes.index',
|
||||
'permission' => 'backend_access',
|
||||
|
||||
@@ -8,33 +8,33 @@ class Shop
|
||||
{
|
||||
public function make(Builder $menu)
|
||||
{
|
||||
$menu->add('Catalogue', [ 'permission' => 'backend_access', 'icon' => 'store' ])
|
||||
$menu->add('Catalogue', ['permission' => 'backend_access', 'icon' => 'store'])
|
||||
->id('shop')
|
||||
->activeIfRoute('shop')
|
||||
->order(2);
|
||||
|
||||
$menu->addTo('shop', 'Articles', [ 'route' => 'Admin.Shop.Articles.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('shop', 'Articles', ['route' => 'Admin.Shop.Articles.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Shop.Articles.*'])->order(1);
|
||||
$menu->addTo('shop', 'Déclinaisons', [ 'route' => 'Admin.Shop.Variations.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('shop', 'Déclinaisons', ['route' => 'Admin.Shop.Variations.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Shop.Variations.*'])->order(2);
|
||||
$menu->addTo('shop', 'Tarifs', [ 'route' => 'Admin.Shop.Tariffs.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('shop', 'Tarifs', ['route' => 'Admin.Shop.Tariffs.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Shop.Tariffs.*'])->order(3);
|
||||
$menu->addTo('shop', 'Offres', [ 'route' => 'Admin.Shop.Offers.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('shop', 'Offres', ['route' => 'Admin.Shop.Offers.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Shop.Offers.*'])->order(4);
|
||||
|
||||
$menu->addTo('shop', 'Rayons', [ 'route' => 'Admin.Shop.Categories.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('shop', 'Rayons', ['route' => 'Admin.Shop.Categories.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Shop.Categories.*'])->order(6);
|
||||
|
||||
$menu->addTo('shop', 'Tags', [ 'route' => 'Admin.Shop.Tags.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('shop', 'Tags', ['route' => 'Admin.Shop.Tags.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Shop.Tags.*'])->order(8);
|
||||
|
||||
$menu->addTo('shop', 'Natures d\'articles', [ 'route' => 'Admin.Shop.ArticleNatures.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('shop', 'Natures d\'articles', ['route' => 'Admin.Shop.ArticleNatures.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Shop.ArticleNatures.*'])->order(9);
|
||||
|
||||
$menu->addTo('shop', 'Packages', [ 'route' => 'Admin.Shop.Packages.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('shop', 'Packages', ['route' => 'Admin.Shop.Packages.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Shop.Packages.*'])->order(12);
|
||||
|
||||
$menu->addTo('shop', 'Unités', [ 'route' => 'Admin.Shop.Unities.index', 'permission' => 'backend_access' ])
|
||||
$menu->addTo('shop', 'Unités', ['route' => 'Admin.Shop.Unities.index', 'permission' => 'backend_access'])
|
||||
->activeIfRoute(['Admin.Shop.Unities.*'])->order(14);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user