diff --git a/app/Filament/Pages/Statistic.php b/app/Filament/Pages/Statistic.php index caf1c563..f0b86af6 100644 --- a/app/Filament/Pages/Statistic.php +++ b/app/Filament/Pages/Statistic.php @@ -63,12 +63,11 @@ class Statistic extends BaseDashboard ->columnSpanFull() ->schema([ Select::make('league_id') - // ->prefixIconColor('primary') + ->live() ->prefixIconColor(fn(Get $get): string => $get('league_id') ? 'success' : 'danger') - ->prefixIcon('phosphor-trophy') + ->prefixIcon('phosphor-trophy-fill') ->hiddenLabel() ->options(fn() => LoadStatisticFixturesLeaguesOptions::load(1)) - ->live() ->placeholder('League') ->afterStateUpdated(function (callable $set, $state) { $set('match_id', null); @@ -77,9 +76,10 @@ class Statistic extends BaseDashboard $set('season', null); }), Select::make('match_id') + ->live() ->hiddenLabel() ->prefixIconColor(fn(Get $get): string => $get('match_id') ? 'success' : 'danger') - ->prefixIcon('phosphor-calendar-check') + ->prefixIcon('phosphor-calendar-check-fill') ->options(function (Get $get) { return LoadStatisticFixturesMatchOptions::load($get('league_id')); }) @@ -87,10 +87,10 @@ class Statistic extends BaseDashboard $set('team_id', null); $set('tm_player_id', null); }) - ->live() ->placeholder('Events'), Select::make('team_id') + ->live() ->hiddenLabel() ->prefixIconColor(function (Get $get): string { if ($get('team_id')) { @@ -101,7 +101,7 @@ class Statistic extends BaseDashboard return 'danger'; } }) - ->prefixIcon('phosphor-users-three') + ->prefixIcon('phosphor-users-three-fill') ->hidden(fn(Get $get) => $get('similar_past_matches') != 'none') ->options(function (Get $get) { if ($get('match_id')) { @@ -117,16 +117,16 @@ class Statistic extends BaseDashboard ->afterStateUpdated(function (callable $set) { $set('tm_player_id', null); }) - ->live() ->placeholder('Team'), Select::make('team_position') + ->live() ->hiddenLabel() ->placeholder('Team Position') ->prefix('TP') ->prefixAction( Action::make('iconInfo') - ->icon('phosphor-question') + ->icon('phosphor-question-fill') ->tooltip(fn() => 'Team Position') ) ->hidden(fn(Get $get) => $get('similar_past_matches') != 'none') @@ -136,8 +136,7 @@ class Statistic extends BaseDashboard 'all' => 'All', 'home' => 'Home', 'away' => 'Away', - ]) - ->live(), + ]), ]), Grid::make([ 'default' => 1, @@ -147,20 +146,21 @@ class Statistic extends BaseDashboard ->columnSpanFull() ->schema([ Select::make('statistic_type') + ->live() ->hiddenLabel() ->allowHtml() ->placeholder('Statistic Type') ->prefixIconColor('success') ->prefixIcon(function (Get $get) { return match ($get('statistic_type')) { - 'gls' => 'phosphor-soccer-ball', + 'gls' => 'phosphor-soccer-ball-fill', 'crn' => 'phosphor-angle', 'fls' => 'phosphor-first-aid-kit', - 'ofs' => 'phosphor-arrow-fat-lines-right', - 'crd' => 'phosphor-cards', - 'snt' => 'phosphor-target', - 'tsh' => 'phosphor-chart-polar', - default => 'phosphor-soccer-ball', + 'ofs' => 'phosphor-arrow-fat-lines-right-fill', + 'crd' => 'phosphor-cards-fill', + 'snt' => 'phosphor-target-fill', + 'tsh' => 'phosphor-chart-polar-fill', + default => 'phosphor-soccer-ball-fill', }; }) ->default('gls') @@ -173,20 +173,19 @@ class Statistic extends BaseDashboard 'crd' => 'Cards', 'snt' => 'Shots On Target', 'tsh' => 'Total Shots', - ]) - ->live(), + ]), Select::make('similar_past_matches') + ->live() ->hiddenLabel() ->placeholder('Similar Past Matches') ->prefixIconColor('primary') ->suffix(fn(Get $get): string|HtmlString => $get('similar_past_matches') != 'none' ? new HtmlString('