Arcanedev\LogViewer\Http\Controllers\LogViewerController::index PHP Method

index() public method

Show the dashboard.
public index ( ) : Illuminate\View\View
return Illuminate\View\View
    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'));
    }