public function compose($view) { \Assets::add(['admin', 'offcanvas', 'datepicker', 'responsive-tables']); // Build menu tree for the top bar $menu = new Node('menu', [self::buildTree()->addChild(AdminPanelMenuComposer::buildTree())]); $rightmenu = new Node('rightmenu', [AdminPanelMenuComposer::buildSecondaryTree()]); // Pass menu to the view $view->with('menu', $menu->setRender(new FoundationTopBar())->purge())->with('rightmenu', $rightmenu->setRender(new FoundationTopBar())->purge()); }
public function compose($view) { \Assets::add('admin'); // Build menu tree for the top bar $menu = new Node('menu', [self::buildTree()->addChild(ReportsMenuComposer::buildTree())]); $rightmenu = new Node('rightmenu', [self::buildSecondaryTree()]); // Pass menu to the view $view->with('menu', $menu->setRender(new FoundationTopBar())->purge())->with('rightmenu', $rightmenu->setRender(new FoundationTopBar())->purge()); }