35 lines
742 B
PHP
35 lines
742 B
PHP
<?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::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;
|
|
}
|
|
}
|