This commit is contained in:
salam committed 2026-07-27 16:53:00 +02:00
1 parent 5a6d3585e5
commit 6e14dbd1bc
11 files changed
+123 -67

No files matched your search

@@ -21,7 +21,7 @@ class StatisticFixturesTable
->columns([
IconColumn::make('sport_id')
->label('')
->icon(fn (string $state): string => match ($state) {
->icon(fn(string $state): string => match ($state) {
'1' => 'icon-soccerball',
'2' => 'icon-icehockey',
'3' => 'icon-basketball',
@@ -31,16 +31,16 @@ class StatisticFixturesTable
->label('League')
->searchable()
->wrap()
->tooltip(fn ($record) => $record->league_id)
->hidden(fn () => auth()->user()->sport_id == 5)
->description(fn ($record) => ucwords($record->league?->country->name)),
TextColumn::make('starttime')->dateTime('M j, Y h:i')->label('Date'),
->tooltip(fn($record) => $record->league_id)
->hidden(fn() => auth()->user()->sport_id == 5)
->description(fn($record) => ucwords($record->league?->country->name)),
TextColumn::make('starttime')->dateTime('Y-m-d H:i'),
TextColumn::make('home.name')
->tooltip(fn ($record) => $record->home_id)
->tooltip(fn($record) => $record->home_id)
->color('primary')
->searchable(),
TextColumn::make('away.name')
->tooltip(fn ($record) => $record->away_id)
->tooltip(fn($record) => $record->away_id)
->color('success')
->searchable(),
// TextColumn::make('exp_home')->alignCenter()->numeric(),
@@ -49,7 +49,7 @@ class StatisticFixturesTable
])
->filters([
SelectFilter::make('league_id')
->options(fn () => LoadStatisticFixturesLeaguesOptions::load(1))
->options(fn() => LoadStatisticFixturesLeaguesOptions::load(1))
->preload()
->searchable()
->columnSpan(2)
@@ -50,7 +50,7 @@ class StatistikoEventsTable
->copyable()
->copyMessage('Away team name copied')
->copyMessageDuration(1500),
TextColumn::make('starttime')->dateTime('d.m.Y H:i'),
TextColumn::make('starttime')->dateTime('Y-m-d H:i'),
])
->filters([