comparatore bettypes wip
This commit is contained in:
1 parent
28032520b4
commit
d62d5c5e8e
4 files changed
+29
-4
No files matched your search
@@ -183,6 +183,8 @@ class Odds
|
||||
|
||||
NuhBash::$bookmaker_id = (int) $book['bid'];
|
||||
|
||||
NuhBash::$bookmaker_id = (int) $book['bid'];
|
||||
|
||||
$odds = [];
|
||||
$odds['sport_id'] = (int) $event['sport_id'];
|
||||
$odds['provider_id'] = 2;
|
||||
@@ -241,6 +243,7 @@ class Odds
|
||||
EventBookmaker::updateOrCreate([
|
||||
'event_id' => NuhBash::$_event->id,
|
||||
'bookmaker_id' => NuhBash::$bookmaker_id,
|
||||
'bookmaker_id' => NuhBash::$bookmaker_id,
|
||||
], [
|
||||
'bmoid' => $value['bmoid'],
|
||||
'provider_id' => 2,
|
||||
@@ -253,6 +256,7 @@ class Odds
|
||||
|
||||
if ($debug) {
|
||||
Notice::note('END '.NuhBash::$_event->id, 'g');
|
||||
Notice::note('END', 'g');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ class EventsTable
|
||||
->size(IconSize::ExtraLarge)
|
||||
->icon(fn ($record) => $record->sport->icon)
|
||||
->tooltip(fn ($record) => $record->id),
|
||||
// TextColumn::make('id'),
|
||||
TextColumn::make('txodds_id')->label('Id')->badge()->copyable()->searchable(),
|
||||
TextColumn::make('starttime')
|
||||
->label('Start')
|
||||
@@ -42,11 +41,32 @@ class EventsTable
|
||||
TextColumn::make('home.name')->alignRight()->searchable(),
|
||||
TextColumn::make('away.name')->searchable(),
|
||||
|
||||
MultilineClient::make('id')->label(fn ($record) => view('filament.tables.columns.multiline-labels')),
|
||||
MultilineClient::make('id')
|
||||
->searchable()
|
||||
->label(fn () => view('filament.tables.columns.multiline-labels')),
|
||||
|
||||
])
|
||||
->defaultSort('starttime', 'ASC')
|
||||
->deferFilters(false)
|
||||
// ->filters([
|
||||
// SelectFilter::make('competition_group_id')
|
||||
// ->preload()
|
||||
// ->label('League')
|
||||
// ->multiple()
|
||||
// ->searchable()
|
||||
// ->options(function () {
|
||||
|
||||
// $res = Event::with('country')->with('competition_group')->where('starttime', '>', Carbon::now())->groupBy('competition_group_id')->get();
|
||||
// $arr = [];
|
||||
// foreach ($res as $val) {
|
||||
// $arr[$val->competition_group_id] = $val->country->name.' - '.$val->competition_group->name;
|
||||
// }
|
||||
|
||||
// asort($arr);
|
||||
|
||||
// return $arr;
|
||||
// })
|
||||
// ->selectablePlaceholder(false),
|
||||
// ], layout: FiltersLayout::AboveContent)
|
||||
->persistFiltersInSession()
|
||||
->recordActions([
|
||||
// EditAction::make(),
|
||||
|
||||
@@ -17,6 +17,7 @@ class MultilineClient extends Column
|
||||
|
||||
public function loadSlots($event_id, $bookmakers)
|
||||
{
|
||||
|
||||
$this->settings = MultilineSetting::where('id', auth()->user()->multiline_setting_id)->select('table', 'has_3_columns')->first()->toArray();
|
||||
|
||||
$odds = DB::table($this->settings['table'])->where('event_id', $event_id)->get();
|
||||
|
||||
@@ -51,5 +51,5 @@
|
||||
<div class="text-center">Total</div>
|
||||
@break
|
||||
@endswitch
|
||||
<div class="text-center"></div>
|
||||
<div class="text-center">M</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user