This commit is contained in:
salam committed 2025-12-16 15:52:07 +01:00
1 parent 391bd1d1f3
commit 26bf5359bc
14 files changed
+256 -235

No files matched your search

@@ -41,8 +41,17 @@ class MultilineClientsTable
TextColumn::make('multiline_setting.name')->label('Bettype'),
BookmakerIcon::make('bookmaker.icon')->label('Icon'),
SelectColumn::make('bookmaker_id')
->label('Bookmaker')
->width('2rem')
->options(Bookmaker::where('is_active', 1)->pluck('name', 'txid')),
->options(function () {
$books = Bookmaker::where('is_active', 1)->orderBy('txid')->pluck('name', 'txid');
foreach ($books as $key => $value) {
$books[$key] = $key.' - '.$value;
}
return $books;
}),
// ->options(Bookmaker::where('is_active', 1)->pluck('name', 'txid')),
])
->defaultSort('sort')
->deferFilters(false)