Shows the dashboard view.

@return \Illuminate\View\View
179851
public function showDashboard()
    {
        $components = Component::orderBy('order')->get();
        $incidents = $this->getIncidents();
        $subscribers = $this->getSubscribers();

        $componentGroups = $this->getVisibleGroupedComponents();
        $ungroupedComponents = Component::ungrouped()->get();

        $welcomeUser = !Auth::user()->welcomed;
        if ($welcomeUser) {
            execute(new WelcomeUserCommand(Auth::user()));
        }

        $entries = null;
        if ($feed = $this->feed->latest()) {
            if (is_object($feed)) {
                $entries = array_slice($feed->channel->item, 0, 5);
            }
        }

        return View::make('dashboard.index')
            ->withPageTitle(trans('dashboard.dashboard'))
            ->withComponents($components)
            ->withIncidents($incidents)
            ->withSubscribers($subscribers)
            ->withEntries($entries)
            ->withComponentGroups($componentGroups)
            ->withUngroupedComponents($ungroupedComponents)
            ->withWelcomeUser($welcomeUser);
    }
1027774
public function indexAction()
    {
        if (!$this->rcmUserService->isAllowed(ResourceName::RESOURCE_SITES, 'admin')) {
            $this->getResponse()->setStatusCode(Response::STATUS_CODE_401);

            return $this->getResponse();
        }

        $this->layout()->setTemplate('layout/blank');

        $view = new ViewModel();
        $view->setVariable(
            'siteSettingsSectionDefinitions',
            $this->getSettingsSectionDefinitions->__invoke()
        );

        return $view;
    }
858284
public function render()
    {
        $variables = [
            'items' => $this->items,
            'title' => $this->title,
            'attributes' => $this->formatAttributes(),
        ];

        return view($this->view, $variables)->render();
    }
1191131
public function render()
    {
        $data = $this->grid->getViewData();
        $data['column'] = $this->column;
        $data['filter'] = $this;
        $data['label'] = $this->config->getLabel();
        return View::make(
            $this->getTemplate(),
            $data
        )->render();
    }
64557
public function index(): View
    {
        $categoryGroups = CategoryGroup::all();
        $selectedGroupId = request()->get('group', optional($categoryGroups->first())->id);

        if (!$categoryGroups->pluck('id')->contains($selectedGroupId)) {
            abort(404);
        }

        $categoryGroup = $categoryGroups->where('id', $selectedGroupId)->first();
        $languages = TransHelper::getAllLanguages();

        return view('category::index', compact('categoryGroups', 'categoryGroup', 'languages'));
    }
1118197
public function view()
    {
        $this->reflectionParams('query');
        $query = call_user_func_array([$this, 'query'], $this->arguments);
        $this->post = new Repository($query);

        return view('platform::container.layouts.base', [
            'screen'    => $this,
        ]);
    }
792649
public function getView()
    {
        if (view()->exists(static::$view)) {
            return static::$view;
        }

        if (view()->exists('admin.widgets.'.static::safeTitle().'.widget')) {
            return 'admin.widgets.'.static::safeTitle().'.widget';
        }

        if (view()->exists('admin.widgets.'.static::safeTitle())) {
            return 'admin.widgets.'.static::safeTitle();
        }

        if (view()->exists('admin.'.static::safeTitle())) {
            return 'admin.'.static::safeTitle();
        }

        if (view()->exists('flare::'.self::$view)) {
            return 'flare::'.self::$view;
        }
    }
267473
public function view()
    {
        if ($this->view !== null && ($this->view instanceof View)) {
            return $this->view;
        }
        $this->view = new View();
        return $this->view;
    }
1190055
public function index()
    {
        $orderReturnGrid = new OrderReturnRequestDataGrid($this->repository->all());

        return view('avored-framework::order.return-request.index')
                    ->withDataGrid($orderReturnGrid->dataGrid);
    }
220950
public function index()
    {
        $view = $this->_getDashboardView('@Dashboard/index');
        $view->dashboardSettingsControl = new DashboardManagerControl();
        $view->hasSomeAdminAccess = Piwik::isUserHasSomeAdminAccess();
        $view->dashboards = array();
        if (!Piwik::isUserIsAnonymous()) {
            $login = Piwik::getCurrentUserLogin();

            $view->dashboards = $this->dashboard->getAllDashboards($login);
        }
        return $view->render();
    }
648307
public function indexAction()
    {
        $view = new ViewModel();
        $service = $this->getThemeService();
        $view->registeredThemes = $service->getRegisteredThemes();
        $view->options = $this->getModuleOptions();
        $flashMessenger = $this->flashMessenger();
        if ($flashMessenger->hasMessages()) {
            $view->messages = $flashMessenger->getMessages();
        }
        return $view;
    }
919385
public function index()
    {
        $stats     = $this->logViewer->statsTable();
        $chartData = $this->prepareChartData($stats);
        $percents  = $this->calcPercentages($stats->footer(), $stats->header());

        return $this->view('dashboard', compact('chartData', 'percents'));
    }
945762
public function index()
    {
        $categories = $this->repository->all();
        $categoryGrid = new CategoryDataGrid($this->repository->query());

        return view('avored-framework::product.category.index')
            ->with('dataGrid', $categoryGrid->dataGrid)
            ->with('categories', $categories);
    }
213785
public function showMetrics()
    {
        $metrics = Metric::orderBy('order')->orderBy('id')->get();

        return View::make('dashboard.metrics.index')
            ->withPageTitle(trans('dashboard.metrics.metrics').' - '.trans('dashboard.dashboard'))
            ->withMetrics($metrics);
    }
871431
public function dashboardAction()
    {
        $translator = $this->container->get('translator');

        /** @var \Wanjee\Shuwee\AdminBundle\Manager\AdminManager $adminManager */
        $adminManager = $this->get('shuwee_admin.admin_manager');

        $sections = [];
        /** @var \Wanjee\Shuwee\AdminBundle\Admin\AdminInterface $admin */
        foreach ($adminManager->getAdmins() as $alias => $admin) {
            $section = $admin->getOption('menu_section');
            if (!is_string($section)) {
                throw new \Exception(
                    sprintf('"menu_section" option must return a string, %s returned.', gettype($section))
                );
            }

            // Create parent menu item if it does not exist yet
            if (!isset($sections[$section])) {
                $sections[$section]['label'] = ucfirst(
                    $translator->trans($section, [], 'ShuweeAdminBundle')
                );
                $sections[$section]['admins'] = [];
            }

            $sections[$section]['admins'][] = $admin;
        }

        return $this->render(
            'ShuweeAdminBundle:Admin:dashboard.html.twig',
            [
                'sections' => $sections,
            ]
        );
    }
649611
public function display() {
		
		$view = $this->getView();

		if (is_subclass_of($view, 'Pair\View')) {
			$view->display();
		} else {
			if (!$this->router->isRaw()) {
				$this->enqueueError($this->translator->get('RESOURCE_NOT_FOUND', $this->router->module . '/' . $this->router->action));
			}
			$this->redirect($this->router->module);
		}
		
	}
557550
public function render()
    {
        $data = array_merge(
            $this->data,
            ['attributes' => $this->formatAttributes()]
        );

        return view($this->view, $data)->render();
    }