wip del err

This commit is contained in:
salam committed 2026-10-04 15:22:39 +02:00
1 parent 812736ca9a
commit 9bcd4432c6
1210 files changed
-220941

No files matched your search

@@ -1,48 +0,0 @@
<?php
namespace App\Filament\Pages\Selections\Helper;
use Illuminate\Support\Carbon;
class GetSeason
{
public static function load(?array $season, ?string $seasonmode)
{
if (! \is_array($season) || ! \count($season)) {
$date = Carbon::now();
$season = [];
if ($seasonmode == 'halfyear') {
if ((int) date('m') > 7) {
$season[] = (string) $date->format('y').'/'.$date->format('y') + 1;
} else {
$season[] = (string) $date->format('y') - 1 .'/'.$date->format('y');
}
} else {
$season[] = (string) $date->year;
}
}
return $season;
}
public static function active(?string $seasonmode)
{
$date = Carbon::now();
$active_season = '';
if ($seasonmode == 'halfyear') {
if ((int) date('m') > 7) {
$active_season = (string) $date->format('y').'/'.$date->format('y') + 1;
} else {
$active_season = (string) $date->format('y') - 1 .'/'.$date->format('y');
}
} else {
$active_season = (string) $date->year;
}
return $active_season;
}
}