Tippstart auf Tippable round, Link Roundmail: Tipps@Tippspiel
This commit is contained in:
parent
0abaeb2eba
commit
6aad1a7ab2
13 changed files with 149 additions and 34 deletions
|
|
@ -23,7 +23,6 @@ class TippsController extends Controller
|
|||
|
||||
$rounds = Round::all()->where('season_id', '=', $activeSeason->id);
|
||||
foreach($rounds as $round) {
|
||||
|
||||
$games=Game::all()->where('round_id','=',$round->id);
|
||||
foreach($games as $game) {
|
||||
|
||||
|
|
@ -74,14 +73,9 @@ class TippsController extends Controller
|
|||
|
||||
TippsController::createTipps($user->id); // ggfs. fehlender Tipp Eintraege einfügen
|
||||
|
||||
$lastLockedRoundId=Round::getLastLockedRoundId();
|
||||
|
||||
if ($activeSeason) {
|
||||
$activeSeasonId = Season::getCurrent()->id;
|
||||
$rounds = Round::all()->where('season_id', '=', $activeSeasonId);
|
||||
}
|
||||
|
||||
|
||||
Log::info("REDIRECTING to TIPPS index");
|
||||
$rounds = Round::where('season_id', '=', $activeSeason->id)->get();
|
||||
|
||||
return view('tipps.index', compact('rounds', 'activeSeason', 'user'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue