wip
This commit is contained in:
1 parent
9030bc9006
commit
d275d7bfad
1 file changed
+5
-4
@@ -83,8 +83,9 @@ class Statistic extends BaseDashboard
|
|||||||
->live()
|
->live()
|
||||||
->label('Events'),
|
->label('Events'),
|
||||||
Select::make('team_id')
|
Select::make('team_id')
|
||||||
->prefixIconColor('primary')
|
->prefixIconColor(fn (Get $get): string => $get('similar_past_matches') == 'none' ? 'primary' : '')
|
||||||
->prefixIcon('phosphor-users-three')
|
->prefixIcon('phosphor-users-three')
|
||||||
|
->disabled(fn (Get $get) => $get('similar_past_matches') != 'none')
|
||||||
->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();
|
||||||
@@ -104,8 +105,9 @@ class Statistic extends BaseDashboard
|
|||||||
->label('Team'),
|
->label('Team'),
|
||||||
|
|
||||||
Select::make('team_position')
|
Select::make('team_position')
|
||||||
->prefixIconColor('primary')
|
->prefixIconColor(fn (Get $get): string => $get('similar_past_matches') == 'none' ? 'primary' : '')
|
||||||
->prefixIcon('phosphor-map-pin')
|
->prefixIcon('phosphor-map-pin')
|
||||||
|
->disabled(fn (Get $get) => $get('similar_past_matches') != 'none')
|
||||||
->default('all')
|
->default('all')
|
||||||
->selectablePlaceholder(false)
|
->selectablePlaceholder(false)
|
||||||
->options([
|
->options([
|
||||||
@@ -142,7 +144,6 @@ class Statistic extends BaseDashboard
|
|||||||
'xl' => 2,
|
'xl' => 2,
|
||||||
])
|
])
|
||||||
->prefixIconColor('primary')
|
->prefixIconColor('primary')
|
||||||
->prefixIconColor('primary')
|
|
||||||
->prefixIcon('phosphor-dots-three-outline')
|
->prefixIcon('phosphor-dots-three-outline')
|
||||||
->default('none')
|
->default('none')
|
||||||
->selectablePlaceholder(false)
|
->selectablePlaceholder(false)
|
||||||
@@ -190,7 +191,7 @@ class Statistic extends BaseDashboard
|
|||||||
Select::make('tm_player_id')
|
Select::make('tm_player_id')
|
||||||
->label('Player')
|
->label('Player')
|
||||||
->disabled(fn (Get $get) => $get('similar_past_matches') != 'none')
|
->disabled(fn (Get $get) => $get('similar_past_matches') != 'none')
|
||||||
->prefixIconColor(fn (Get $get): string => $get('similar_past_matches') == 'none' ? 'primary' : 'gray')
|
->prefixIconColor(fn (Get $get): string => $get('similar_past_matches') == 'none' ? 'primary' : '')
|
||||||
->prefixIcon('icon-player')
|
->prefixIcon('icon-player')
|
||||||
->suffixAction(
|
->suffixAction(
|
||||||
Action::make('copyCostToPrice')
|
Action::make('copyCostToPrice')
|
||||||
|
|||||||
Reference in new issue
Block a user