comp wip
This commit is contained in:
1 parent
391bd1d1f3
commit
26bf5359bc
14 files changed
+256
-235
No files matched your search
@@ -3,6 +3,7 @@
|
||||
namespace App\Filament\Resources\Events\Tables;
|
||||
|
||||
use App\Filament\Tables\Columns\Odds3Way;
|
||||
use App\Filament\Tables\Columns\OddsTotals;
|
||||
use Carbon\Carbon;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\EditAction;
|
||||
@@ -26,7 +27,7 @@ class EventsTable
|
||||
->size(IconSize::ExtraLarge)
|
||||
->icon(fn ($record) => $record->sport->icon)
|
||||
->tooltip(fn ($record) => $record->id),
|
||||
TextColumn::make('txodds_id')->label('Match Id')->badge()->copyable(),
|
||||
TextColumn::make('txodds_id')->label('Match Id')->badge()->copyable()->searchable(),
|
||||
TextColumn::make('starttime')
|
||||
->label('Start')
|
||||
->alignCenter()
|
||||
@@ -41,7 +42,8 @@ class EventsTable
|
||||
TextColumn::make('home.name')->alignRight()->searchable(),
|
||||
TextColumn::make('away.name')->searchable(),
|
||||
|
||||
Odds3Way::make('odds_3way.bookmaker')->label('Market')->visible(auth()->user()->multiline_setting_id == 1),
|
||||
Odds3Way::make('odds_3way.bookmaker')->label('1X2')->visible(auth()->user()->multiline_setting_id == 1),
|
||||
OddsTotals::make('odds_totals.bookmaker')->label('Totals')->visible(auth()->user()->multiline_setting_id == 6),
|
||||
])
|
||||
->defaultSort('starttime', 'ASC')
|
||||
->deferFilters(false)
|
||||
|
||||
@@ -23,6 +23,12 @@ class MultilineClientResources extends Resource
|
||||
|
||||
// protected static string|\UnitEnum|null $navigationGroup = 'Settings';
|
||||
|
||||
protected static ?string $navigationLabel = 'Multiline';
|
||||
|
||||
protected static ?string $modelLabel = 'Multiline';
|
||||
|
||||
protected static ?string $title = 'Multiline';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return MultilineClientForm::configure($schema);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user