ss ->sortable

This commit is contained in:
salam committed 2026-08-07 11:15:20 +02:00
1 parent c8cf1edaf4
commit 000f6fa046
18 files changed
+157 -106

No files matched your search

@@ -36,19 +36,23 @@ class CompetitionGroupsTable
->grow(false)
->color('primary')
->width(30)
->icon(fn ($record) => $record->sport->icon)
->tooltip(fn ($record) => $record->id)
->icon(fn($record) => $record->sport->icon)
->tooltip(fn($record) => $record->id)
->visibleFrom('lg'),
TextColumn::make('id')->copyable()->alignCenter()->tooltip('Click to copy'),
TextColumn::make('id')->copyable()->alignCenter()->tooltip('Click to copy')
->sortable(),
TextColumn::make('name')
->sortable()
->color('primary')
->searchable(),
TextColumn::make('country.name')
->wrap()
->sortable()
->color('gray')
->label('Country')
->icon(fn ($record) => $record->country->icon),
->icon(fn($record) => $record->country->icon),
SelectColumn::make('level')
->sortable()
->width(30)
->options([
'TOP' => 'TOP',
@@ -60,11 +64,11 @@ class CompetitionGroupsTable
->label('Sport')
->default(1)
->selectablePlaceholder(false)
->options(fn () => Sport::where('is_active', 1)->pluck('name', 'id')->toArray()),
->options(fn() => Sport::where('is_active', 1)->pluck('name', 'id')->toArray()),
SelectFilter::make('country_id')
->searchable()
->label('Countries')
->options(fn () => Country::orderBy('name')->pluck('name', 'id')->toArray()),
->options(fn() => Country::orderBy('name')->pluck('name', 'id')->toArray()),
], layout: FiltersLayout::AboveContent)
->deferFilters(false)
->recordActions([