Working in Liga Auf/Abstieg

This commit is contained in:
Torsten 2017-10-11 11:14:23 +02:00
parent 0d690560ab
commit 444ce18f63
4 changed files with 115 additions and 4 deletions

View file

@ -179,9 +179,11 @@ class User extends Authenticatable
// aktiv = hat die Saison bezahlt.
public static function getActives() {
public static function getActives($seasonId=-1) {
$currentSeason=Season::getCurrent();
$users = User::whereNull('deleted')->get();
if ($seasonId != -1) { $currentSeason = Season::where('id','=',$seasonId); }
$users = User::all();
$payments = Payment::where('season_id','=',$currentSeason->id)->get();
$payref = array();