Minor view and usability fixes, refactoring for Quota/Payout

This commit is contained in:
Torsten 2017-08-30 14:52:21 +02:00
parent 76947b1df9
commit b9e4fcca7f
12 changed files with 5736 additions and 139 deletions

View file

@ -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'));
}