wip
This commit is contained in:
1 parent
cbddd2fc46
commit
67fe7c1b93
3 files changed
+14
-31
No files matched your search
@@ -2,33 +2,18 @@
|
||||
|
||||
namespace App\Filament\Pages\Selections;
|
||||
|
||||
use App\Models\SofaScoreCategory;
|
||||
use App\Models\StatistikoEvent;
|
||||
|
||||
class LoadSeasons
|
||||
{
|
||||
public static function load($league_id = 0)
|
||||
public static function load($league_id)
|
||||
{
|
||||
// $res = CompetitionGroup::with('country')->where('id', $league_id)->first();
|
||||
// $season_mode = $res->country->season_mode;
|
||||
if(!$league_id){
|
||||
return [];
|
||||
}
|
||||
|
||||
return StatistikoEvent::query()->where('league_id', $league_id)->groupBy('season')->pluck('season','season')->toArray();
|
||||
|
||||
// $res = StatistikoEvent::query()->where('league_id', $league_id)->get();
|
||||
|
||||
// if (! $res) {
|
||||
// return [];
|
||||
// }
|
||||
|
||||
// $arr = [];
|
||||
// foreach ($res as $val) {
|
||||
// $arr[$val->season] = $val->season;
|
||||
// }
|
||||
|
||||
// asort($arr);
|
||||
|
||||
$arr = [];
|
||||
$arr['24/25'] = '24/25';
|
||||
$arr['25/26'] = '25/26';
|
||||
$arr['26/27'] = '26/27';
|
||||
|
||||
return $arr;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user