This commit is contained in:
salam committed 2026-08-25 12:22:16 +02:00
1 parent f90887009c
commit c5095ac25a
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -85,7 +85,7 @@ class Statistic extends BaseDashboard
->schema([
Select::make('sofascore_category_id')
->live()
->searchable()
->preload()
->prefixIconColor(fn(Get $get): string => $get('sofascore_category_id') ? 'success' : 'danger')
->prefixIcon('phosphor-globe-fill')
->hiddenLabel()
@@ -100,7 +100,7 @@ class Statistic extends BaseDashboard
}),
Select::make('league_id')
->live()
->searchable()
->preload()
->prefixIconColor(fn(Get $get): string => $get('league_id') ? 'success' : 'danger')
->prefixIcon('phosphor-trophy-fill')
->hiddenLabel()
+1 -1
View File
@@ -248,7 +248,7 @@ class LoadEvents
$dataset_away2[] = (int) $value['val_home'];
}
}
$n = min(count($dataset_home), count($dataset_home2));
$n = max(count($dataset_home), count($dataset_away), count($dataset_away2), count($dataset_home2));
$f = array_first($labels);
$step = round($f / $n);
$labels = [];