This commit is contained in:
salam committed 2026-09-23 12:34:17 +02:00
1 parent 4cdec4be8e
commit b74c374586
3 files changed
+13 -13

No files matched your search

+3
View File
@@ -169,6 +169,7 @@ class Statistic extends BaseDashboard
Select::make('match_id')
->live()
->hiddenLabel()
->columnSpan(fn (Get $get) => $get('similar_past_matches') != 'none' ? 2 : 1)
->prefixIconColor(fn (Get $get): string => $get('match_id') ? 'success' : 'danger')
->prefixIcon('phosphor-calendar-check-fill')
->options(function (Get $get) {
@@ -278,7 +279,9 @@ class Statistic extends BaseDashboard
************************/
Select::make('similar_past_matches')
->live()
// ->columnSpan(2)
->hiddenLabel()
->columnSpan(fn (Get $get) => $get('similar_past_matches') != 'none' ? 2 : 1)
->suffixAction(Action::make('reset')
->icon('phosphor-x-circle')
->action(fn (callable $set) => $set('similar_past_matches', 'none'))