27 lines
1.1 KiB
PHP
27 lines
1.1 KiB
PHP
<?php
|
|
|
|
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' ])
|
|
->id('botanic')
|
|
->activeIfRoute('botanic')
|
|
->order(5);
|
|
|
|
$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' ])
|
|
->activeIfRoute(['Admin.Botanic.Genres.*'])->order(2);
|
|
$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' ])
|
|
->activeIfRoute(['Admin.Botanic.Varieties.*'])->order(4);
|
|
}
|
|
}
|