Пример #1
0
 /**
  * Show the application dashboard.
  *
  * @return Response
  */
 public function index()
 {
     $scores = new ScoreClass();
     $ScoreTable = $scores->ScoreTable();
     //return view('home');
     return view('home', ['ScoreTable' => $ScoreTable]);
 }
Пример #2
0
 public function index()
 {
     if (!\Gate::allows('admin-check')) {
         $matches = $this->getMatches('A');
         $matches16 = $this->getMatches('B');
         $matches8 = $this->getMatches('C');
         $matches4 = $this->getMatches('D');
         $matches2 = $this->getMatches('E');
         $ownscore = new ScoreClass();
         $totalscore = $ownscore->Scores(Auth::user()->id);
         return view('Game.index', ['matches' => $matches, 'matches16' => $matches16, 'matches8' => $matches8, 'matches4' => $matches4, 'matches2' => $matches2, 'totalscore' => $totalscore]);
     } else {
         return Redirect::action('AdminController@index');
     }
 }
Пример #3
0
 public function Scores()
 {
     $scores = new ScoreClass();
     $ScoreTable = $scores->ScoreTable();
     return View("Admin.Scores", ['ScoreTable' => $ScoreTable]);
 }