Show the application dashboard.

@return \Illuminate\Http\Response
342243
public function index()
    {
        $totalRegisteredUser = app(UserInterface::class)->all();
        $totalOrder = $this->repository->all()->count();

        return view('avored-framework::home')
            ->with('totalRegisteredUser', $totalRegisteredUser)
            ->with('totalOrder', $totalOrder);
    }
142460
public function application()
    {
        if (is_null($this->application)) {
            $this->application = app(Application::class);
        }

        return $this->application;
    }
471604
public function usageAction()
    {
        $this->assign('version', Samurai::getVersion());
        $this->assign('state', Samurai::getState());
        $this->assign('script', './app');   // TODO: $this->request->getScript()
        return self::VIEW_TEMPLATE;
    }
702534
public function actionIndex()
	{
		// Fetch all the dashboard cards for the current user
		$cards 		= $this->loadDashboardCards();
		$cardData 	= array();

		// Find all the metadata for those cards and load them
		foreach ($cards->value as $id=>$url)
		{
			$metadata 		= $this->loadCardDetailsModel($id);
			$cardData[$id] 	= $metadata->value;
		}

		return array(
           'cards'    => $cards->value,
           'cardData' => $cardData
       );
	}
988339
public function dashboardAction()
    {
        /* @var Request $request */
        $request = $this->getRequest();
        $params = $request->getQuery();
        $isRecruiter = $this->Acl()->isRole('recruiter');
        if ($isRecruiter) {
            $params->set('by', 'me');
        }

        //default sorting
        if (!isset($params['sort'])) {
            $params['sort']="-date";
        }
        $params->count = 5;
        $params->pageRange=5;

        $this->paginationParams()->setParams('Applications\Index', $params);

        $paginator = $this->paginator('Applications', $params->toArray());
     
        return array(
            'script' => 'applications/index/dashboard',
            'applications' => $paginator
        );
    }
328125
public function showAction()
    {
        $this->isGranted('VIEW');

        $this->container->get('ekyna_admin.menu.builder')
            ->breadcrumbAppend('settings', 'ekyna_setting.parameter.label.plural');
        
        $manager = $this->getSettingsManager();
        $schemas = $this->getSettingsRegistry()->getSchemas();
        $settings = [];

        foreach($schemas as $namespace => $schema) {
            $settings[$namespace] = $manager->loadSettings($namespace);
        }

        return $this->render('EkynaSettingBundle:Settings:show.html.twig', [
            'settings'   => $settings,
            'labels'     => $manager->getLabels(),
            'templates'  => $manager->getShowTemplates(),
        ]);
    }
1085821
public function index()
    {
        $modules = Module::all();
        $moduleDataGrid = new ModuleDataGrid($modules);

        return view('avored-framework::system.module.index')
            ->with('modules', $modules)
            ->with('dataGrid', $moduleDataGrid->dataGrid);
    }
1352708
public function dashboard()
    {
        //if the dev has chosen to use a dashboard
        if (config('administrator.use_dashboard')) {
            //set the layout dashboard
            $this->layout->dashboard = true;

            //set the layout content
            $this->layout->content = view(config('administrator.dashboard_view'));

            return $this->layout;
        }
        //else we should redirect to the menu item
        else {
            $configFactory = app('admin_config_factory');
            $home          = config('administrator.home_page');

            //first try to find it if it's a model config item
            $config = $configFactory->make($home);

            if (!$config) {
                throw new \InvalidArgumentException('Administrator: '.trans('administrator::administrator.valid_home_page'));
            } elseif ($config->getType() === 'model') {
                return redirect()->route('admin_index', array($config->getOption('name')));
            } elseif ($config->getType() === 'settings') {
                return redirect()->route('admin_settings', array($config->getOption('name')));
            }
        }
    }
703043
public function showComponents()
    {
        $components = Component::with('group')->orderBy('order')->orderBy('created_at')->get();

        $this->subMenu['components']['active'] = true;

        return View::make('dashboard.components.index')
            ->withPageTitle(trans_choice('dashboard.components.components', 2).' - '.trans('dashboard.dashboard'))
            ->withComponents($components)
            ->withSubMenu($this->subMenu);
    }
357248
public function index()
    {
        $urls = [];
        foreach ($this->actions as $action => $description) {
            $fired = \Illuminate\Support\Facades\Event::fire('analyzer:before.' . $action);
            if (!empty($fired)) {
                array_push($urls, current($fired));
            }
            array_push($urls, [
                'url'         => handles('antares::logger/analyze/' . $action, ['csrf' => true]),
                'description' => $description,
            ]);
        }
        return new JsonResponse($urls);
    }
644300
public function indexUrl()
    {
        $route = 'admin::index-'.$this->getTable();
        if (Route::has($route)) {
            return route($route);
        }

        return route('dashboard');
    }
1190055
public function index()
    {
        $orderReturnGrid = new OrderReturnRequestDataGrid($this->repository->all());

        return view('avored-framework::order.return-request.index')
                    ->withDataGrid($orderReturnGrid->dataGrid);
    }
1063374
public function index()
    {
        $roleGrid = new RoleDataGrid($this->repository->query());

        return view('avored-framework::system.role.index')->with('dataGrid', $roleGrid->dataGrid);
    }
584710
public function showAction()
    {
        $id = (int) $this->params()->fromRoute('id', null);

        $service = $this->getService();
        $entity  = $service->getById($id);

        $view = new ViewModel(array(
            'entity'  => $entity,
            'options' => $this->getOptions(),
        ));

        if ($this->getOptions()->getDisplayDiagrammInDetailView()) {
            $diagramm = $this->getService()->createUseCaseDiagrammFor($entity);
            $view->setVariable('diagramm', $diagramm);
        }

        return $view;
    }
1099529
public function index(): View
    {
        $config = [
            'title' => trans('HCResource::resource_grab_property.page_title'),
            'url' => route('admin.api.resource.grab.property'),
            'form' => route('admin.api.form-manager', ['resource.grab.property']),
            'headers' => $this->getTableColumns(),
            'actions' => ['search']
        ];

        return view('HCCore::admin.service.index', ['config' => $config]);
    }
521436
protected function application()
    {
        return $this->grid->fieldset(trans('antares/foundation::label.settings.application'), function (Fieldset $fieldset) {
                    $fieldset->legend('Application configuration');

                    $fieldset->control('select', 'mode')
                            ->label(trans('antares/foundation::label.mode'))
                            ->options([
                                'production'  => trans('antares/foundation::global.modes.production'),
                                'development' => trans('antares/foundation::global.modes.development'),
                            ])
                            ->labelWrapper(['class' => 'col-mb-8 col-6 col-dt-4 col-ld-4']);

                    $fieldset->control('button', 'cancel')
                            ->field(function() {
                                return app('html')->link(handles("antares::/"), trans('antares/foundation::label.cancel'), ['class' => 'btn btn--md btn--default mdl-button mdl-js-button']);
                            });

                    $fieldset->control('button', 'button')
                            ->attributes(['type' => 'submit'])
                            ->value(trans('antares/foundation::label.save_changes'));
                });
    }
301304
public function index()
    {
        if (! config('eyewitness.debug')) {
            return redirect(route('eyewitness.dashboard').'#overview')->withError('Sorry, but you need to enable eyewitness.debug mode to be able to view the debug page');
        }

        // Get all application config
        $config = Config::all();

        // Strip known sensitive config
        $config['services'] = null;
        $config['mail'] = null;
        $config['filesystems']['disks'] = null;

        // Now try to strip anything that might be senstive
        $this->recursive_unset($config, 'key');
        $this->recursive_unset($config, 'secret');
        $this->recursive_unset($config, 'password');

        return view('eyewitness::debug.index')->withEye(app(Eye::class))->withConfig($config);
    }