getYearOptions(); $months = $statService->getMonthOptions(); $items = $statService->hotSales(); $this->view->pick('stat/hot_sales'); $this->view->setVar('years', $years); $this->view->setVar('months', $months); $this->view->setVar('items', $items); } /** * @Get("/sales", name="admin.stat.sales") */ public function salesAction() { $statService = new StatService(); $years = $statService->getYearOptions(); $months = $statService->getMonthOptions(); $data = $statService->sales(); $this->view->pick('stat/sales'); $this->view->setVar('years', $years); $this->view->setVar('months', $months); $this->view->setVar('data', $data); } /** * @Get("/refunds", name="admin.stat.refunds") */ public function refundsAction() { $statService = new StatService(); $years = $statService->getYearOptions(); $months = $statService->getMonthOptions(); $data = $statService->refunds(); $this->view->pick('stat/refunds'); $this->view->setVar('years', $years); $this->view->setVar('months', $months); $this->view->setVar('data', $data); } /** * @Get("/users/registered", name="admin.stat.reg_users") */ public function registeredUsersAction() { $statService = new StatService(); $years = $statService->getYearOptions(); $months = $statService->getMonthOptions(); $data = $statService->registeredUsers(); $this->view->pick('stat/registered_users'); $this->view->setVar('years', $years); $this->view->setVar('months', $months); $this->view->setVar('data', $data); } /** * @Get("/users/online", name="admin.stat.online_users") */ public function onlineUsersAction() { $statService = new StatService(); $years = $statService->getYearOptions(); $months = $statService->getMonthOptions(); $data = $statService->onlineUsers(); $this->view->pick('stat/online_users'); $this->view->setVar('years', $years); $this->view->setVar('months', $months); $this->view->setVar('data', $data); } }