add paese, add ora, add personal details
This commit is contained in:
1 parent
422681df01
commit
21bfa6ecc3
9 files changed
+80
-30
No files matched your search
+3
-10
@@ -2,8 +2,7 @@
|
||||
|
||||
namespace App\Filament\Clusters\StaticData\Resources\StatisticFixtures\Tables;
|
||||
|
||||
use App\Models\CompetitionGroup;
|
||||
use App\Models\StatisticFixtures;
|
||||
use App\Actions\LoadStatisticFixturesLeaguesOptions;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
@@ -34,7 +33,7 @@ class StatisticFixturesTable
|
||||
->wrap()
|
||||
->hidden(fn () => auth()->user()->sport_id == 5)
|
||||
->description(fn ($record) => ucwords($record->league?->country->name)),
|
||||
TextColumn::make('starttime')->dateTime('M j, Y')->label('Date'),
|
||||
TextColumn::make('starttime')->dateTime('M j, Y h:i')->label('Date'),
|
||||
TextColumn::make('home.name')->color('primary')->searchable(),
|
||||
TextColumn::make('away.name')->color('success')->searchable(),
|
||||
// TextColumn::make('exp_home')->alignCenter()->numeric(),
|
||||
@@ -43,13 +42,7 @@ class StatisticFixturesTable
|
||||
])
|
||||
->filters([
|
||||
SelectFilter::make('league_id')
|
||||
->options(function () {
|
||||
$res = StatisticFixtures::where('sport_id', 1)
|
||||
->groupBy('league_id')
|
||||
->pluck('league_id')->toArray();
|
||||
|
||||
return CompetitionGroup::query()->whereIn('id', $res)->orderBy('name')->pluck('name', 'id');
|
||||
})
|
||||
->options(fn () => LoadStatisticFixturesLeaguesOptions::load(1))
|
||||
->preload()
|
||||
->searchable()
|
||||
->columnSpan(2)
|
||||
|
||||
Reference in new issue
Block a user