group(trans('admin::sidebar.content'), function (Group $group) { $group->item(trans('product::sidebar.products'), function (Item $item) { $item->icon('fa fa-cube'); $item->weight(10); $item->route('admin.products.index'); $item->authorize( $this->auth->hasAnyAccess([ 'admin.products.index', 'admin.categories.index', 'admin.attributes.index', 'admin.attribute_sets.index', 'admin.options.index', ]) ); $item->item(trans('product::sidebar.catalog'), function (Item $item) { $item->weight(5); $item->route('admin.products.index'); $item->authorize( $this->auth->hasAccess('admin.products.index') ); }); }); }); } }