23 lines
768 B
PHP
23 lines
768 B
PHP
<?php
|
|
|
|
namespace App\Menu;
|
|
|
|
use Sebastienheyd\Boilerplate\Menu\Builder;
|
|
|
|
class Customers
|
|
{
|
|
public function make(Builder $menu)
|
|
{
|
|
$menu->add('Clients', [ 'permission' => 'backend_access', 'icon' => 'address-card' ])
|
|
->id('customers')
|
|
->activeIfRoute('customers')
|
|
->order(3);
|
|
|
|
$menu->addTo('customers', __('customer.customers.name'), [ 'route' => 'Admin.Shop.Customers.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Admin.Shop.Customers.*'])->order(1);
|
|
|
|
$menu->addTo('customers', __('customer.sale_channels.name'), [ 'route' => 'Admin.Shop.SaleChannels.index', 'permission' => 'backend_access' ])
|
|
->activeIfRoute(['Admin.Shop.SaleChannels.*'])->order(1);
|
|
}
|
|
}
|