wip
This commit is contained in:
1 parent
34a02044cd
commit
58f57b6783
9 files changed
+303
-311
No files matched your search
+5
-6
@@ -28,15 +28,14 @@ class StatistikoEventsTable
|
||||
TextColumn::make('league.name')->searchable(),
|
||||
TextColumn::make('home.name')->searchable(),
|
||||
TextColumn::make('away.name')->searchable(),
|
||||
TextColumn::make('starttime')->dateTime('d. m. Y H:i'),
|
||||
TextColumn::make('starttime')->dateTime('d.m.Y H:i'),
|
||||
|
||||
])
|
||||
->filters([
|
||||
SelectFilter::make('sport_id')
|
||||
->default(1)
|
||||
->label('Sport')
|
||||
->preload()
|
||||
->options(Sport::where('is_active', 1)->pluck('name', 'id')),
|
||||
// when we do another sport make all filter depending on sport
|
||||
// SelectFilter::make('sport_id')
|
||||
// ->options(fn () => Sport::getSportForClient(auth()->user()->client_id))
|
||||
// ->label('Sport'),
|
||||
SelectFilter::make('league_id')
|
||||
->relationship('league', 'name')
|
||||
->searchable()
|
||||
|
||||
Reference in new issue
Block a user