Minor view and usability fixes, refactoring for Quota/Payout
This commit is contained in:
parent
76947b1df9
commit
b9e4fcca7f
12 changed files with 5736 additions and 139 deletions
|
|
@ -8,6 +8,7 @@ use App\Round;
|
|||
use App\Game;
|
||||
use App\User;
|
||||
use App\Tipp;
|
||||
use App\Quota;
|
||||
use DB;
|
||||
use Auth;
|
||||
use Log;
|
||||
|
|
@ -21,15 +22,15 @@ class RoundsController extends Controller
|
|||
$activeSeason=Season::getCurrent();
|
||||
$rounds =null;
|
||||
|
||||
|
||||
//$rounds=Round::all();
|
||||
|
||||
if ($activeSeason) {
|
||||
$activeSeasonId = Season::getCurrent()->id;
|
||||
$rounds = Round::all()->where('season_id', '=', $activeSeasonId);
|
||||
}
|
||||
|
||||
return view('rounds.index', compact('rounds','activeSeason'));
|
||||
$quotas = Quota::getQuotas($activeSeason->id);
|
||||
$round_count = $quotas['Runden'];
|
||||
|
||||
return view('rounds.index', compact('rounds','activeSeason', 'round_count'));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue