App\Http\Controllers\PagesController::dashboard PHP Méthode

dashboard() public méthode

public dashboard ( )
    public function dashboard()
    {
        /**
         * Other Statistics
         *
         */
        $companyname = $this->settings->getCompanyName();
        $users = $this->users->getAllUsers();
        $totalClients = $this->clients->getAllClientsCount();
        $totalTimeSpent = $this->tasks->totalTimeSpent();
        /**
         * Statistics for all-time tasks.
         *
         */
        $alltasks = $this->tasks->allTasks();
        $allCompletedTasks = $this->tasks->allCompletedTasks();
        $totalPercentageTasks = $this->tasks->percantageCompleted();
        /**
         * Statistics for today tasks.
         *
         */
        $completedTasksToday = $this->tasks->completedTasksToday();
        $createdTasksToday = $this->tasks->createdTasksToday();
        /**
         * Statistics for tasks this month.
         *
         */
        $taskCompletedThisMonth = $this->tasks->completedTasksThisMonth();
        /**
         * Statistics for tasks each month(For Charts).
         *
         */
        $createdTasksMonthly = $this->tasks->createdTasksMothly();
        $completedTasksMonthly = $this->tasks->completedTasksMothly();
        /**
         * Statistics for all-time Leads.
         *
         */
        $allleads = $this->leads->allLeads();
        $allCompletedLeads = $this->leads->allCompletedLeads();
        $totalPercentageLeads = $this->leads->percantageCompleted();
        /**
         * Statistics for today leads.
         *
         */
        $completedLeadsToday = $this->leads->completedLeadsToday();
        $createdLeadsToday = $this->leads->completedLeadsToday();
        /**
         * Statistics for leads this month.
         *
         */
        $leadCompletedThisMonth = $this->leads->completedLeadsThisMonth();
        /**
         * Statistics for leads each month(For Charts).
         *
         */
        $completedLeadsMonthly = $this->leads->createdLeadsMonthly();
        $createdLeadsMonthly = $this->leads->completedLeadsMonthly();
        return view('pages.dashboard', compact('completedTasksToday', 'completedLeadsToday', 'createdTasksToday', 'createdLeadsToday', 'createdTasksMonthly', 'completedTasksMonthly', 'completedLeadsMonthly', 'createdLeadsMonthly', 'taskCompletedThisMonth', 'leadCompletedThisMonth', 'totalTimeSpent', 'totalClients', 'users', 'companyname', 'alltasks', 'allCompletedTasks', 'totalPercentageTasks', 'allleads', 'allCompletedLeads', 'totalPercentageLeads'));
    }