wip player
This commit is contained in:
1 parent
2a91a439df
commit
7ac8c3413c
1 file changed
+5
@@ -8,6 +8,7 @@ use App\Filament\Widgets\MovingAverageChart;
|
|||||||
use App\Filament\Widgets\PunctualChart;
|
use App\Filament\Widgets\PunctualChart;
|
||||||
use App\Models\Element;
|
use App\Models\Element;
|
||||||
use App\Models\StatisticFixtures;
|
use App\Models\StatisticFixtures;
|
||||||
|
use App\Models\StatistikoDetail;
|
||||||
use BackedEnum;
|
use BackedEnum;
|
||||||
use Filament\Actions\Action;
|
use Filament\Actions\Action;
|
||||||
use Filament\Forms\Components\DatePicker;
|
use Filament\Forms\Components\DatePicker;
|
||||||
@@ -69,6 +70,7 @@ class Statistic extends BaseDashboard
|
|||||||
})
|
})
|
||||||
->preload()
|
->preload()
|
||||||
->searchable()
|
->searchable()
|
||||||
|
->live()
|
||||||
->label('Team'),
|
->label('Team'),
|
||||||
DatePicker::make('start_date')
|
DatePicker::make('start_date')
|
||||||
->native(false)
|
->native(false)
|
||||||
@@ -98,6 +100,9 @@ class Statistic extends BaseDashboard
|
|||||||
->prefixIcon('icon-player')
|
->prefixIcon('icon-player')
|
||||||
->preload()
|
->preload()
|
||||||
->searchable()
|
->searchable()
|
||||||
|
->options(function (Get $get) {
|
||||||
|
return StatistikoDetail::where('tm_player_id', $get('tm_player_id'))->pluck('name', 'id');
|
||||||
|
})
|
||||||
->live(),
|
->live(),
|
||||||
Select::make('team_position')
|
Select::make('team_position')
|
||||||
->prefixIcon('phosphor-map-pin')
|
->prefixIcon('phosphor-map-pin')
|
||||||
|
|||||||
Reference in new issue
Block a user