app->l11nManager, $request, $response); $view->setTemplate('/Modules/BudgetManagement/Theme/Backend/budgeting-dashboard'); $view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1004601001, $request, $response); $result = ItemAttributeTypeMapper::getAll() ->with('l11n') ->with('defaults') ->with('defaults/l11n') ->where('name', ['segment', 'section', 'sales_group', 'product_group'], 'IN') ->where('l11n/language', $response->header->l11n->language) ->where('defaults/l11n/language', $response->header->l11n->language) ->execute(); $segmentation = []; foreach ($result as $seg) { $segmentation[$seg->name] = $seg; } $view->data['segmentation'] = $segmentation; return $view; } }