comparatore bookmaker odds wip
This commit is contained in:
1 parent
adaec7b3dc
commit
218c1e6e1c
59 files changed
+470
-129
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Utilities;
|
||||
|
||||
class BkmIconMap
|
||||
{
|
||||
public static function get($bookmaker)
|
||||
{
|
||||
if ($bookmaker) {
|
||||
return asset("storage/bookmaker-icons/$bookmaker->icon.png");
|
||||
} else {
|
||||
return asset('storage/bookmaker-icons/missing.png');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,82 +0,0 @@
|
||||
<?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/bookmaker-icons/$image");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user