wip
This commit is contained in:
1 parent
f90887009c
commit
c5095ac25a
2 files changed
+3
-3
No files matched your search
@@ -85,7 +85,7 @@ class Statistic extends BaseDashboard
|
|||||||
->schema([
|
->schema([
|
||||||
Select::make('sofascore_category_id')
|
Select::make('sofascore_category_id')
|
||||||
->live()
|
->live()
|
||||||
->searchable()
|
->preload()
|
||||||
->prefixIconColor(fn(Get $get): string => $get('sofascore_category_id') ? 'success' : 'danger')
|
->prefixIconColor(fn(Get $get): string => $get('sofascore_category_id') ? 'success' : 'danger')
|
||||||
->prefixIcon('phosphor-globe-fill')
|
->prefixIcon('phosphor-globe-fill')
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
@@ -100,7 +100,7 @@ class Statistic extends BaseDashboard
|
|||||||
}),
|
}),
|
||||||
Select::make('league_id')
|
Select::make('league_id')
|
||||||
->live()
|
->live()
|
||||||
->searchable()
|
->preload()
|
||||||
->prefixIconColor(fn(Get $get): string => $get('league_id') ? 'success' : 'danger')
|
->prefixIconColor(fn(Get $get): string => $get('league_id') ? 'success' : 'danger')
|
||||||
->prefixIcon('phosphor-trophy-fill')
|
->prefixIcon('phosphor-trophy-fill')
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ class LoadEvents
|
|||||||
$dataset_away2[] = (int) $value['val_home'];
|
$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);
|
$f = array_first($labels);
|
||||||
$step = round($f / $n);
|
$step = round($f / $n);
|
||||||
$labels = [];
|
$labels = [];
|
||||||
|
|||||||
Reference in new issue
Block a user