grapper betsapi bet365 wip

This commit is contained in:
salam committed 2026-01-01 18:42:14 +01:00
1 parent e90a6c71f6
commit b1a724061f
19 files changed
+93 -51

No files matched your search

@@ -122,6 +122,7 @@ class EventsTable
return $table
->striped()
->deferLoading()
->columns([
IconColumn::make('sport.icon')
->label('')
@@ -132,7 +133,7 @@ class EventsTable
->tooltip(fn ($record) => $record->id)
->visibleFrom('lg'),
MatchIds::make('match_ids')->grow(false)->visibleFrom('xl'),
// MatchIds::make('match_ids')->grow(false)->visibleFrom('xl'),
TextColumn::make('starttime')
->label('Start')
@@ -162,43 +163,37 @@ class EventsTable
->visible(fn () => in_array(1, self::$bettype_settings))
->verticalAlignment(VerticalAlignment::Start)
->width(225)
->label('1 X 2')
->extraCellAttributes(['class' => 'border-l border-gray-200 dark:border-gray-800']),
->label('1 X 2'),
ColumnDc::make('oddsdc')->bookmakers(self::$odds_dc)
->visible(fn () => in_array(2, self::$bettype_settings))
->verticalAlignment(VerticalAlignment::Start)
->width(225)
->label('Double Chance')
->extraCellAttributes(['class' => 'border-l border-gray-200 dark:border-gray-800']),
->label('Double Chance'),
ColumnDnb::make('oddsdnb')->bookmakers(self::$odds_dnb)
->visible(fn () => in_array(3, self::$bettype_settings))
->verticalAlignment(VerticalAlignment::Start)
->width(190)
->label('Draw No Bet')
->extraCellAttributes(['class' => 'border-l border-gray-200 dark:border-gray-800']),
->label('Draw No Bet'),
ColumnGgng::make('oddsggng')->bookmakers(self::$odds_ggng)
->visible(fn () => in_array(4, self::$bettype_settings))
->verticalAlignment(VerticalAlignment::Start)
->width(190)
->label('Goal No Goal')
->extraCellAttributes(['class' => 'border-l border-gray-200 dark:border-gray-800']),
->label('Goal No Goal'),
ColumnTq::make('oddstq')->bookmakers(self::$odds_tq)
->visible(fn () => in_array(5, self::$bettype_settings))
->verticalAlignment(VerticalAlignment::Start)
->width(190)
->label('To Qualify')
->extraCellAttributes(['class' => 'border-l border-gray-200 dark:border-gray-800']),
->label('To Qualify'),
ColumnTotal::make('oddstotal')->bookmakers(self::$odds_totals)
->visible(fn () => in_array(6, self::$bettype_settings))
->verticalAlignment(VerticalAlignment::Start)
->width(225)
->label('Totals')
->extraCellAttributes(['class' => 'border-l border-gray-200 dark:border-gray-800']),
->label('Totals'),
])->searchable(['id', 'betsapi_id', 'betradar_id', 'bet365_id', 'bwin_id'])
->poll('10s')
->defaultSort('starttime', 'ASC')
@@ -18,6 +18,12 @@ class SupervisorsTable
->striped()
->columns([
TextColumn::make('id')->badge(),
TextColumn::make('provider.name')->badge()
->color(fn ($record): string => match ($record->provider_id) {
1 => 'danger',
2 => 'success',
default => 'warning',
}),
SelectColumn::make('name')
->options([
'Fixtures' => 'Fixtures',
@@ -27,8 +33,7 @@ class SupervisorsTable
'Bet365' => 'Bet365',
'Betfair' => 'Betfair',
]),
TextColumn::make('provider.name')->badge(),
TextColumn::make('sport.name')->label('Sport'),
TextColumn::make('sport.name')->label('Sport')->color(fn ($record): string => $record->sport->color),
TextColumn::make('sleep')->numeric(),
TextColumn::make('runtime')->label('Run Time'),
TextColumn::make('maxsconds')->label('Max Time'),