Fix on AdminLTE 3, and add some features

This commit is contained in:
Ludovic CANDELLIER
2020-05-09 01:05:55 +02:00
parent d0e3bb6251
commit 86a073cad7
27 changed files with 670 additions and 95 deletions

21
app/Menu/Customers.php Normal file
View File

@@ -0,0 +1,21 @@
<?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', 'Clients', [ 'route' => 'Shop.Admin.Customers.index', 'permission' => 'backend_access' ])
->activeIfRoute(['Shop.Admin.Customers.*'])->order(1);
}
}