grapper betsapi bet365 wip
This commit is contained in:
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')
|
||||
|
||||
Reference in new issue
Block a user