FleetCart/Themes/Storefront/Sidebar/SidebarExtender.php

27 lines
860 B
PHP
Raw Permalink Normal View History

2023-06-11 12:14:03 +00:00
<?php
namespace Themes\Storefront\Sidebar;
use Maatwebsite\Sidebar\Item;
use Maatwebsite\Sidebar\Menu;
use Maatwebsite\Sidebar\Group;
use Modules\Admin\Sidebar\BaseSidebarExtender;
class SidebarExtender extends BaseSidebarExtender
{
public function extend(Menu $menu)
{
$menu->group(trans('admin::sidebar.system'), function (Group $group) {
$group->item(trans('admin::sidebar.appearance'), function (Item $item) {
$item->item(trans('storefront::sidebar.storefront'), function (Item $item) {
$item->weight(10);
$item->route('admin.storefront.settings.edit');
$item->authorize(
$this->auth->hasAccess('admin.storefront.edit')
);
});
});
});
}
}