multiline wip
This commit is contained in:
1 parent
988a148850
commit
245255756c
84 files changed
+663
-94
No files matched your search
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Filament\Resources\Multilines\Tables;
|
||||
|
||||
use App\Actions\MultilineGenerator;
|
||||
use App\Filament\Tables\Columns\BookmakerIcon;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
@@ -24,7 +23,7 @@ class MultilinesTable
|
||||
->label($isReordering ? 'Disable reordering' : 'Enable reordering'),
|
||||
)
|
||||
->reorderable('sort')
|
||||
->defaultGroup('bettype.name')
|
||||
->defaultGroup('name')
|
||||
->columns([
|
||||
IconColumn::make('sport.icon')
|
||||
->label('')
|
||||
@@ -32,9 +31,8 @@ class MultilinesTable
|
||||
->icon(function ($record): string {
|
||||
return $record->sport->icon;
|
||||
}),
|
||||
TextColumn::make('sport.name'),
|
||||
TextColumn::make('matchpart.name'),
|
||||
TextColumn::make('bettype.name'),
|
||||
// TextColumn::make('sport.name'),
|
||||
TextColumn::make('name'),
|
||||
TextColumn::make('bookmaker.name'),
|
||||
BookmakerIcon::make('bookmaker.icon')->label('Icon'),
|
||||
])
|
||||
@@ -49,13 +47,6 @@ class MultilinesTable
|
||||
->preload(),
|
||||
], FiltersLayout::AboveContent)
|
||||
->hiddenFilterIndicators()
|
||||
->persistFiltersInSession()
|
||||
->headerActions([
|
||||
Action::make('generate')
|
||||
->icon('phosphor-gear-fine')
|
||||
->action(function () {
|
||||
MultilineGenerator::run();
|
||||
}),
|
||||
]);
|
||||
->persistFiltersInSession();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user