Esempio n. 1
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function index()
 {
     $locs = [];
     foreach (\App\Location::week()->get() as $one) {
         $locs[] = \Scriptixru\SypexGeo\SypexGeoFacade::get($one->ip);
     }
     $locations = new \App\Classes\Mapper($locs);
     return view('home', compact('locations'));
 }
 public function index()
 {
     $users = \App\User::all();
     $latest = \App\Myclasses\Counter::todayStats();
     $locs = \App\Location::week()->get();
     $locations = new \App\Myclasses\Mapper($locs);
     $statData = new \App\Myclasses\charters\charterModer();
     return view($this->localeDir . 'moderation.first', compact('users', 'latest', 'locations', 'statData'));
 }