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