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

@@ -28,21 +28,27 @@ class StatistikoEventsTable
->striped()
->columns([
IconColumn::make('sport_id')
->sortable()
->label('')
->icon(fn(string $state): string => match ($state) {
'1' => 'icon-soccerball',
}),
TextColumn::make('match_id')->color('info')->icon('phosphor-copy')->copyable()
->sortable()
->searchable(
query: fn($query, $search) => $query->orWhere('match_id', (int) $search)
),
TextColumn::make('league.name')
->sortable()
->searchable(),
TextColumn::make('home.ss_team_name')->color('info')
->sortable()
->searchable(),
TextColumn::make('away.ss_team_name')->color('success')
->sortable()
->searchable(),
TextColumn::make('starttime')->dateTime('Y-m-d H:i'),
TextColumn::make('starttime')->dateTime('Y-m-d H:i')
->sortable(),
])
->filters([
Filter::make('event_filters')