mapper wip
This commit is contained in:
1 parent
80f50c9eec
commit
55c404c17a
9 files changed
+111
-48
No files matched your search
@@ -13,6 +13,8 @@ use Filament\Schemas\Contracts\HasSchemas;
|
||||
use Filament\Support\Enums\Alignment;
|
||||
use Filament\Tables\Concerns\InteractsWithTable;
|
||||
use Filament\Tables\Contracts\HasTable;
|
||||
use Filament\Tables\Enums\FiltersLayout;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
use Livewire\Component;
|
||||
|
||||
@@ -27,15 +29,29 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
|
||||
return $table
|
||||
->query(Mapper::query())
|
||||
->columns([
|
||||
MapperRightColumn::make('right')->label('BETSAPI'),
|
||||
])
|
||||
MapperRightColumn::make('right')->label(''),
|
||||
])->searchable(['group', 'home', 'away'])
|
||||
->defaultPaginationPageOption(5)
|
||||
->filters([
|
||||
// ...
|
||||
])
|
||||
->recordActions([
|
||||
// ...
|
||||
])
|
||||
SelectFilter::make('group_cc')
|
||||
->relationship('country_betsapi', 'name')
|
||||
->searchable()
|
||||
->preload()
|
||||
->multiple()
|
||||
->placeholder('Country')
|
||||
->label('Countries'),
|
||||
SelectFilter::make('group_id')
|
||||
->options(fn () => Mapper::groupBy('group_id')->pluck('group', 'group_id'))
|
||||
->columnSpan(2)
|
||||
->searchable()
|
||||
->preload()
|
||||
->multiple()
|
||||
->placeholder('League')
|
||||
->label('Leagues'),
|
||||
], layout: FiltersLayout::AboveContent)
|
||||
->hiddenFilterIndicators()
|
||||
->filtersFormColumns(3)
|
||||
->deferFilters(false)
|
||||
->toolbarActions([
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user