GetSeason as string bf
This commit is contained in:
1 parent
db8f32ad48
commit
bfcb7230af
3 files changed
+6
-3
No files matched your search
@@ -23,12 +23,10 @@ class LoadSeasons
|
||||
$tmp = $date->format('y') - 1 . '/' . $date->format('y');
|
||||
$season[$tmp] = $tmp;
|
||||
} else {
|
||||
$season[$date->year] = $date->year;
|
||||
$season[(string) $date->year] = (string) $date->year;
|
||||
}
|
||||
}
|
||||
|
||||
$season = array_reverse($season);
|
||||
|
||||
return $season;
|
||||
}
|
||||
}
|
||||
@@ -347,6 +347,10 @@ class Statistic extends BaseDashboard
|
||||
'date' => 'Date',
|
||||
]),
|
||||
]),
|
||||
|
||||
/************************
|
||||
* SEASON
|
||||
************************/
|
||||
Select::make('season')
|
||||
->live()
|
||||
->columns(2)
|
||||
|
||||
@@ -37,6 +37,7 @@ class LoadEventsQuery
|
||||
// $team_id = 0;
|
||||
// }
|
||||
|
||||
// dd($season);
|
||||
$season = GetSeason::load($season, $seasonmode);
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user