wip
This commit is contained in:
1 parent
ce46e5d107
commit
15bc930bad
90 files changed
+16743
-2100
No files matched your search
@@ -201,7 +201,7 @@ class Odds
|
||||
$bettypeid = (int) $attributeValue;
|
||||
break;
|
||||
case 'bmoid':
|
||||
$odds['bmoid'] = (int) $attributeValue;
|
||||
$odds['bmoid'] = (string) $attributeValue;
|
||||
break;
|
||||
case 'last_updated':
|
||||
$odds['source_updated_at'] = Carbon::createFromDate((string) $attributeValue)->toDateTimeString();
|
||||
|
||||
+16392
-1525
File diff suppressed because it is too large.
Load diff
@@ -32,11 +32,13 @@ class EventsTable
|
||||
->dateTime('d.m')
|
||||
->weight(FontWeight::Bold)
|
||||
->description(fn ($state): string => Carbon::createFromDate($state)->format('H:i')),
|
||||
TextColumn::make('competition_group.name')
|
||||
TextColumn::make('country.name')
|
||||
->color('gray')
|
||||
->label('Event')
|
||||
->icon(fn ($record) => $record->country->icon)
|
||||
->description(fn ($record) => $record->home->name.' - '.$record->away->name, position: 'belowe'),
|
||||
->description(fn ($record) => $record->competition_group->name),
|
||||
TextColumn::make('home.name')->alignRight()->searchable(),
|
||||
TextColumn::make('away.name')->searchable(),
|
||||
Odds3Way::make('3way')->label('1 X 2')->alignCenter(),
|
||||
IconColumn::make('id'),
|
||||
])
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
namespace App\Utilities;
|
||||
|
||||
class BookmakerIcon
|
||||
{
|
||||
public static function byId($bkmid)
|
||||
{
|
||||
$image = '';
|
||||
switch ($bkmid) {
|
||||
case 5:
|
||||
$image = 'expekt.png';
|
||||
break;
|
||||
|
||||
case 6:
|
||||
$image = 'unibet.jpg';
|
||||
break;
|
||||
|
||||
case 13:
|
||||
$image = 'sportingbet.png';
|
||||
break;
|
||||
|
||||
case 17:
|
||||
$image = 'ladbrokes.png';
|
||||
break;
|
||||
|
||||
case 30:
|
||||
$image = 'bwin.jpg';
|
||||
break;
|
||||
|
||||
case 42:
|
||||
$image = 'willhill.png';
|
||||
break;
|
||||
|
||||
case 110:
|
||||
$image = 'betfair.png';
|
||||
break;
|
||||
|
||||
case 314:
|
||||
$image = 'matchbook.png';
|
||||
break;
|
||||
|
||||
case 327:
|
||||
$image = 'sbobet.jpg';
|
||||
break;
|
||||
|
||||
case 388:
|
||||
$image = 'eurobet.png';
|
||||
break;
|
||||
|
||||
case 539:
|
||||
$image = 'marathonbet.png';
|
||||
break;
|
||||
|
||||
case 649:
|
||||
$image = '1xbet.jpg';
|
||||
break;
|
||||
|
||||
case 658:
|
||||
$image = 'bet9ja.png';
|
||||
break;
|
||||
|
||||
case 823:
|
||||
$image = 'betking.png';
|
||||
break;
|
||||
|
||||
case 824:
|
||||
$image = 'betplay.jpg';
|
||||
break;
|
||||
|
||||
case 825:
|
||||
$image = 'sportybet.png';
|
||||
break;
|
||||
|
||||
default:
|
||||
$image = 'missing.png';
|
||||
break;
|
||||
}
|
||||
|
||||
return asset("storage/book-icons/$image");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user