mapper wip
This commit is contained in:
1 parent
d635ebe563
commit
e04b12726d
8 files changed
+66
-7
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Livewire;
|
||||
|
||||
use App\Filament\Tables\Columns\MapperLeftColumn;
|
||||
use App\Models\Event;
|
||||
use Filament\Actions\Concerns\InteractsWithActions;
|
||||
use Filament\Actions\Contracts\HasActions;
|
||||
@@ -24,8 +25,14 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable
|
||||
return $table
|
||||
->query(Event::query())
|
||||
->columns([
|
||||
TextColumn::make('home.name')->alignRight(),
|
||||
TextColumn::make('away.name'),
|
||||
TextColumn::make('country.name')
|
||||
->searchable()
|
||||
->wrap()
|
||||
->color('gray')
|
||||
->label('Event')
|
||||
->icon(fn ($record) => $record->country->icon)
|
||||
->description(fn ($record) => $record->competition_group->name),
|
||||
MapperLeftColumn::make('left')->label('NUH Events'),
|
||||
])
|
||||
->filters([
|
||||
// ...
|
||||
|
||||
Reference in new issue
Block a user