wip
This commit is contained in:
1 parent
0a09953bdd
commit
89cb571b56
7 files changed
+23
-60
No files matched your search
@@ -8,8 +8,14 @@ use App\Models\StatistikoEvent;
|
||||
|
||||
class AverageTeam
|
||||
{
|
||||
/**
|
||||
* BOX 4 - AVERAGE TEAM
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function load(array &$expectations, array $filter)
|
||||
{
|
||||
|
||||
$tournament_id = (int) $filter['league_id'] ?? 0;
|
||||
$team_position = $filter['team_position'];
|
||||
$team_id = (int) $filter['team_id'] ?? 0;
|
||||
@@ -27,15 +33,6 @@ class AverageTeam
|
||||
$season = GetSeason::load($season, $seasonmode);
|
||||
}
|
||||
|
||||
$active_season = GetSeason::active($seasonmode);
|
||||
|
||||
// Average made and got for team selected
|
||||
// Box 1
|
||||
// for selected Date or Time or All
|
||||
// Box 2
|
||||
// fixed to active season
|
||||
// Box 3 wie 2
|
||||
// fixed to active season but all league
|
||||
$res = StatistikoEvent::where('league_id', $tournament_id)
|
||||
->when($start, function ($query) use ($start) {
|
||||
return $query->whereDate('starttime', '>=', $start);
|
||||
|
||||
Reference in new issue
Block a user