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);
    }
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);
    }
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 ) ; }
Shows the dashboard view.

@return \Illuminate\View\View
Shows the dashboard view .