This commit is contained in:
salam committed 2026-08-11 11:02:22 +02:00
1 parent 10baadb780
commit 874f6f75c8
7 files changed
+85 -132

No files matched your search

@@ -0,0 +1,30 @@
<?php
namespace App\Filament\Pages\Selections;
use App\Models\StatistikoEvent;
class LoadSeasons
{
public static function load($league_id = 0)
{
// $res = CompetitionGroup::with('country')->where('id', $league_id)->first();
// $season_mode = $res->country->season_mode;
$res = StatistikoEvent::where('league_id', $league_id)
->groupBy('season')
->orderBy('starttime', 'ASC')
->get();
if (! $res) {
return [];
}
$arr = [];
foreach ($res as $val) {
$arr[$val->season] = $val->season;
}
return $arr;
}
}