wip countries
This commit is contained in:
1 parent
641b362752
commit
1b9a65b25a
23 files changed
+127755
-27137
No files matched your search
@@ -6,7 +6,6 @@ use App\Models\Liga;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
@@ -23,16 +22,13 @@ class EventsTable
|
||||
return $record->sport->icon;
|
||||
}),
|
||||
TextColumn::make('starttime')->dateTime('M j, Y H:i')->sortable(),
|
||||
// IconColumn::make('liga_id')->label('Flag')
|
||||
// ->icon(fn (string $state): Heroicon => match ($state) {
|
||||
// default => Heroicon::OutlinedPencil,
|
||||
// // return Liga::where('id', $state)->value('country.icon')->first();
|
||||
// }),
|
||||
TextColumn::make('liga.country.name'),
|
||||
// TextColumn::make('liga.name')->searchable()
|
||||
// ->icon(fn (string $record): string => match ($record) {
|
||||
// default => $record->liga->country->icon
|
||||
// }),
|
||||
IconColumn::make('country_id')
|
||||
->label('Flag')
|
||||
->icon(function ($record): string {
|
||||
return $record->country->icon;
|
||||
}),
|
||||
TextColumn::make('country.name'),
|
||||
TextColumn::make('liga.name'),
|
||||
TextColumn::make('home.name')->searchable(),
|
||||
TextColumn::make('away.name')->searchable(),
|
||||
// TextColumn::make('prid')
|
||||
|
||||
Reference in new issue
Block a user