wip
This commit is contained in:
1 parent
e46bda0715
commit
433a281999
10 files changed
+285
-274
No files matched your search
+22
-2
@@ -2,11 +2,14 @@
|
||||
|
||||
namespace App\Filament\Clusters\StaticData\Resources\StatistikoEvents\Tables;
|
||||
|
||||
use App\Models\Sport;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Enums\FiltersLayout;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class StatistikoEventsTable
|
||||
@@ -28,8 +31,25 @@ class StatistikoEventsTable
|
||||
|
||||
])
|
||||
->filters([
|
||||
//
|
||||
])
|
||||
SelectFilter::make('sport_id')
|
||||
->default(1)
|
||||
->label('Sport')
|
||||
->preload()
|
||||
->options(Sport::where('is_active', 1)->pluck('name', 'id')),
|
||||
SelectFilter::make('league_id')
|
||||
->relationship('league', 'name')
|
||||
->searchable()
|
||||
->label('League'),
|
||||
SelectFilter::make('home_id')
|
||||
->relationship('home', 'name')
|
||||
->searchable()
|
||||
->label('Home'),
|
||||
SelectFilter::make('away_id')
|
||||
->relationship('away', 'name')
|
||||
->searchable()
|
||||
->label('Away'),
|
||||
], layout: FiltersLayout::AboveContent)
|
||||
->deferFilters(false)
|
||||
->recordActions([
|
||||
EditAction::make(),
|
||||
])
|
||||
|
||||
Reference in new issue
Block a user