Beispiel #1
0
 public function bowlers()
 {
     $baseURL = '../public/';
     $allBowlers = User::getAllBolwerDetails();
     if (empty($allBowlers)) {
         $allBowlers = 0;
     }
     foreach ($allBowlers as $bowler) {
         $Bowlers[$bowler->id][] = ['data' => $bowler];
     }
     $userDetails = Auth::user();
     $jackpotCount = Lottery::getJackpotCountOfUser($userDetails->id);
     $totalTickets = Lottery::getTotalLotteryCount($userDetails->id);
     $totalJackpot = Lottery::getTotaljackpotAmountofUser($userDetails->id);
     $totalLeagues = League::getLeagueByBowler($userDetails->id);
     return \View::make('bowlers')->with('Bowlers', $Bowlers)->with('userDetails', $userDetails)->with('jackpotCount', $jackpotCount)->with('totalTickets', $totalTickets)->with('totalJackpot', $totalJackpot)->with('totalLeagues', $totalLeagues)->with('baseURL', $baseURL);
 }