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'));
    }
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'));
    }
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' ) ) ; }
Show the dashboard.

@return \Illuminate\View\View
Show the dashboard .