/** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { $analytics = new Analytics(); $statistics = $analytics->init(); $statistics['statistics']['browsersJson'] = json_encode($statistics['statistics']['browsers']); $statistics['statistics']['browsersNum'] = count($statistics['statistics']['browsers']); $statistics['statistics']['opsJson'] = json_encode($statistics['statistics']['ops']); $statistics['statistics']['opsNum'] = count($statistics['statistics']['ops']); // dd($statistics['statistics']['ops']); return view('contents.analytics', $statistics); }
/** * Show the application dashboard. * * @return \Illuminate\Http\Response */ public function index() { $analytics = new Analytics(); $statistics = $analytics->init(); return view('contents.home', $statistics); }