32 lines
699 B
PHP
32 lines
699 B
PHP
<?php
|
|
|
|
namespace App\Filament\Pages\Selections;
|
|
|
|
use App\Models\SofaScoreCategory;
|
|
use App\Models\StatistikoEvent;
|
|
|
|
class LoadSeasons
|
|
{
|
|
public static function load($sofascore_category_id)
|
|
{
|
|
if(!$sofascore_category_id){
|
|
return [];
|
|
}
|
|
|
|
$season_mode = SofaScoreCategory::where('id', $sofascore_category_id)->value('season_mode');
|
|
|
|
$arr = [];
|
|
if($season_mode == 'fullyear') {
|
|
$arr[2024] = 2024;
|
|
$arr[2025] = 2025;
|
|
$arr[2026] = 2026;
|
|
}else {
|
|
$arr['24/25'] = '24/25';
|
|
$arr['25/26'] = '25/26';
|
|
$arr['26/27'] = '26/27';
|
|
}
|
|
|
|
return $arr;
|
|
}
|
|
}
|