This commit is contained in:
salam committed 2026-05-27 11:16:27 +02:00
1 parent a777e304c3
commit 09e0e5b621
1 file changed
+9 -4
+9 -4
View File
@@ -62,6 +62,7 @@ class Statistic extends BaseDashboard
]) ])
->schema([ ->schema([
Select::make('league_id') Select::make('league_id')
->prefixIconColor('primary')
->prefixIcon('phosphor-trophy') ->prefixIcon('phosphor-trophy')
->options(fn () => LoadStatisticFixturesLeaguesOptions::load(1)) ->options(fn () => LoadStatisticFixturesLeaguesOptions::load(1))
->live() ->live()
@@ -70,7 +71,8 @@ class Statistic extends BaseDashboard
$set('match_id', null); $set('match_id', null);
}), }),
Select::make('match_id') Select::make('match_id')
->prefixIcon('icon-team') ->prefixIconColor('primary')
->prefixIcon('phosphor-calendar-check')
->options(function (Get $get) { ->options(function (Get $get) {
return LoadStatisticFixturesMatchOptions::load($get('league_id')); return LoadStatisticFixturesMatchOptions::load($get('league_id'));
}) })
@@ -81,7 +83,8 @@ class Statistic extends BaseDashboard
->live() ->live()
->label('Events'), ->label('Events'),
Select::make('team_id') Select::make('team_id')
->prefixIcon('icon-team') ->prefixIconColor('primary')
->prefixIcon('phosphor-users-three')
->options(function (Get $get) { ->options(function (Get $get) {
if ($get('match_id')) { if ($get('match_id')) {
$res = StatisticFixtures::where('id', $get('match_id'))->get(); $res = StatisticFixtures::where('id', $get('match_id'))->get();
@@ -101,6 +104,7 @@ class Statistic extends BaseDashboard
->label('Team'), ->label('Team'),
Select::make('team_position') Select::make('team_position')
->prefixIconColor('primary')
->prefixIcon('phosphor-map-pin') ->prefixIcon('phosphor-map-pin')
->default('all') ->default('all')
->selectablePlaceholder(false) ->selectablePlaceholder(false)
@@ -115,7 +119,8 @@ class Statistic extends BaseDashboard
'default' => 1, 'default' => 1,
'xl' => 2, 'xl' => 2,
]) ])
->prefixIcon('phosphor-cell-signal-full') ->prefixIconColor('primary')
->prefixIcon('phosphor-dots-three-outline')
->default('none') ->default('none')
->selectablePlaceholder(false) ->selectablePlaceholder(false)
->options([ ->options([
@@ -148,7 +153,7 @@ class Statistic extends BaseDashboard
->action(fn (Set $set) => $set('end_date', null)) ->action(fn (Set $set) => $set('end_date', null))
), ),
Select::make('similar_past_matches') Select::make('similar_past_matches')
->prefixIcon('phosphor-align-center-horizontal') ->prefixIcon('phosphor-approximate-equals')
->suffixAction( ->suffixAction(
Action::make('iconInfo') Action::make('iconInfo')
->color('gray') ->color('gray')