comparatore bettypes wip

This commit is contained in:
salam committed 2025-12-17 17:23:24 +01:00
1 parent 28032520b4
commit d62d5c5e8e
4 files changed
+29 -4

No files matched your search

@@ -26,7 +26,6 @@ class EventsTable
->size(IconSize::ExtraLarge)
->icon(fn ($record) => $record->sport->icon)
->tooltip(fn ($record) => $record->id),
// TextColumn::make('id'),
TextColumn::make('txodds_id')->label('Id')->badge()->copyable()->searchable(),
TextColumn::make('starttime')
->label('Start')
@@ -42,11 +41,32 @@ class EventsTable
TextColumn::make('home.name')->alignRight()->searchable(),
TextColumn::make('away.name')->searchable(),
MultilineClient::make('id')->label(fn ($record) => view('filament.tables.columns.multiline-labels')),
MultilineClient::make('id')
->searchable()
->label(fn () => view('filament.tables.columns.multiline-labels')),
])
->defaultSort('starttime', 'ASC')
->deferFilters(false)
// ->filters([
// SelectFilter::make('competition_group_id')
// ->preload()
// ->label('League')
// ->multiple()
// ->searchable()
// ->options(function () {
// $res = Event::with('country')->with('competition_group')->where('starttime', '>', Carbon::now())->groupBy('competition_group_id')->get();
// $arr = [];
// foreach ($res as $val) {
// $arr[$val->competition_group_id] = $val->country->name.' - '.$val->competition_group->name;
// }
// asort($arr);
// return $arr;
// })
// ->selectablePlaceholder(false),
// ], layout: FiltersLayout::AboveContent)
->persistFiltersInSession()
->recordActions([
// EditAction::make(),