wip pp filter

This commit is contained in:
salam committed 2026-10-15 16:29:48 +02:00
1 parent fc1e1b2832
commit 55f31acf2a
23 files changed
+1127 -329

No files matched your search

@@ -7,16 +7,16 @@ use Illuminate\Support\Carbon;
class LoadSeasons
{
public static function load(string $seasonmode)
public static function load(string $season_mode)
{
if (! $seasonmode) {
if (! $season_mode) {
return [];
}
$season = [];
$period = CarbonPeriod::create(Carbon::now()->year(2024), '1 year', Carbon::now());
foreach ($period as $date) {
if ($seasonmode == 'halfyear') {
if ($season_mode == 'halfyear') {
if ((int) date('m') > 7) {
$tmp = $date->format('y').'/'.$date->format('y') + 1;
} else {