Working in Liga Auf/Abstieg
This commit is contained in:
parent
0d690560ab
commit
444ce18f63
4 changed files with 115 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue