wip
This commit is contained in:
1 parent
859e60f209
commit
dacef6fff0
1 file changed
+7
-2
@@ -126,6 +126,7 @@ class Statistic extends BaseDashboard
|
|||||||
),
|
),
|
||||||
DatePicker::make('end_date')
|
DatePicker::make('end_date')
|
||||||
->native(false)
|
->native(false)
|
||||||
|
->prefixIconColor('primary')
|
||||||
->prefixIcon('phosphor-calendar')
|
->prefixIcon('phosphor-calendar')
|
||||||
->live()
|
->live()
|
||||||
->suffixAction(
|
->suffixAction(
|
||||||
@@ -140,6 +141,7 @@ 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)
|
||||||
@@ -153,6 +155,7 @@ class Statistic extends BaseDashboard
|
|||||||
'tsh' => 'Total shots',
|
'tsh' => 'Total shots',
|
||||||
]),
|
]),
|
||||||
Select::make('similar_past_matches')
|
Select::make('similar_past_matches')
|
||||||
|
->prefixIconColor('primary')
|
||||||
->prefixIcon('phosphor-approximate-equals')
|
->prefixIcon('phosphor-approximate-equals')
|
||||||
->suffixAction(
|
->suffixAction(
|
||||||
Action::make('iconInfo')
|
Action::make('iconInfo')
|
||||||
@@ -181,6 +184,8 @@ class Statistic extends BaseDashboard
|
|||||||
->live(),
|
->live(),
|
||||||
Select::make('tm_player_id')
|
Select::make('tm_player_id')
|
||||||
->label('Player')
|
->label('Player')
|
||||||
|
->disabled(fn (Get $get) => $get('similar_past_matches') != 'none')
|
||||||
|
->prefixIconColor(fn (Get $get): string => $get('similar_past_matches') == 'none' ? 'primary' : 'gray')
|
||||||
->prefixIcon('icon-player')
|
->prefixIcon('icon-player')
|
||||||
->suffixAction(
|
->suffixAction(
|
||||||
Action::make('copyCostToPrice')
|
Action::make('copyCostToPrice')
|
||||||
@@ -192,7 +197,6 @@ class Statistic extends BaseDashboard
|
|||||||
->icon('phosphor-x'),
|
->icon('phosphor-x'),
|
||||||
)
|
)
|
||||||
->preload()
|
->preload()
|
||||||
// ->searchable()
|
|
||||||
->options(function (Get $get) {
|
->options(function (Get $get) {
|
||||||
return StatistikoDetail::where('txodds_id', $get('team_id'))->pluck('name', 'tm_player_id');
|
return StatistikoDetail::where('txodds_id', $get('team_id'))->pluck('name', 'tm_player_id');
|
||||||
})
|
})
|
||||||
@@ -201,7 +205,8 @@ class Statistic extends BaseDashboard
|
|||||||
->label('Time on field')
|
->label('Time on field')
|
||||||
->prefixIcon('phosphor-watch')
|
->prefixIcon('phosphor-watch')
|
||||||
->default('all')
|
->default('all')
|
||||||
->disabled(fn (Get $get) => ! $get('tm_player_id'))
|
->disabled(fn (Get $get) => ! $get('tm_player_id') or $get('similar_past_matches') != 'none')
|
||||||
|
->prefixIconColor(fn (Get $get): string => ($get('tm_player_id') and $get('similar_past_matches') == 'none') ? 'primary' : '')
|
||||||
->selectablePlaceholder(false)
|
->selectablePlaceholder(false)
|
||||||
->options([
|
->options([
|
||||||
'all' => 'All',
|
'all' => 'All',
|
||||||
|
|||||||
Reference in new issue
Block a user