wip
This commit is contained in:
1 parent
58f0b35017
commit
fbc74a206c
1 file changed
+18
-10
@@ -29,34 +29,42 @@ class CompareOptions
|
|||||||
}
|
}
|
||||||
|
|
||||||
$options = [];
|
$options = [];
|
||||||
if (isset(EventsTable::$slots[$table])) {
|
foreach (EventsTable::$slots[$table] as $bookmaker_id) {
|
||||||
foreach (EventsTable::$slots[$table] as $bookmaker_id) {
|
if (isset($map[$bookmaker_id])) {
|
||||||
$option = 'Favorit-lte-'.$bookmaker_id.'-'.$map[$bookmaker_id]['name'];
|
$option = 'Favorit-lte-'.$bookmaker_id.'-'.$map[$bookmaker_id]['name'];
|
||||||
$favorits[$option] = 'Favorit ≤ '.$map[$bookmaker_id]['name'];
|
$favorits[$option] = 'Favorit ≤ '.$map[$bookmaker_id]['name'];
|
||||||
}
|
}
|
||||||
foreach (EventsTable::$slots[$table] as $bookmaker_id) {
|
}
|
||||||
|
foreach (EventsTable::$slots[$table] as $bookmaker_id) {
|
||||||
|
if (isset($map[$bookmaker_id])) {
|
||||||
$option = 'Favorit-gte-'.$bookmaker_id.'-'.$map[$bookmaker_id]['name'];
|
$option = 'Favorit-gte-'.$bookmaker_id.'-'.$map[$bookmaker_id]['name'];
|
||||||
$favorits[$option] = 'Favorit ≥ '.$map[$bookmaker_id]['name'];
|
$favorits[$option] = 'Favorit ≥ '.$map[$bookmaker_id]['name'];
|
||||||
}
|
}
|
||||||
$options['Favorits'] = $favorits;
|
}
|
||||||
|
$options['Favorits'] = $favorits;
|
||||||
|
|
||||||
foreach (EventsTable::$slots[$table] as $bookmaker_id) {
|
foreach (EventsTable::$slots[$table] as $bookmaker_id) {
|
||||||
|
if (isset($map[$bookmaker_id])) {
|
||||||
$option = 'Margin-gte-'.$bookmaker_id.'-'.$map[$bookmaker_id]['name'];
|
$option = 'Margin-gte-'.$bookmaker_id.'-'.$map[$bookmaker_id]['name'];
|
||||||
$margins[$option] = 'Margin ≥ '.$map[$bookmaker_id]['name'];
|
$margins[$option] = 'Margin ≥ '.$map[$bookmaker_id]['name'];
|
||||||
}
|
}
|
||||||
foreach (EventsTable::$slots[$table] as $bookmaker_id) {
|
}
|
||||||
|
foreach (EventsTable::$slots[$table] as $bookmaker_id) {
|
||||||
|
if (isset($map[$bookmaker_id])) {
|
||||||
$option = 'Margin-lt-'.$bookmaker_id.'-'.$map[$bookmaker_id]['name'];
|
$option = 'Margin-lt-'.$bookmaker_id.'-'.$map[$bookmaker_id]['name'];
|
||||||
$margins[$option] = 'Margin < '.$map[$bookmaker_id]['name'];
|
$margins[$option] = 'Margin < '.$map[$bookmaker_id]['name'];
|
||||||
}
|
}
|
||||||
$options['Margins'] = $margins;
|
}
|
||||||
|
$options['Margins'] = $margins;
|
||||||
|
|
||||||
if (auth()->user()->sport_id == 1) {
|
if (auth()->user()->sport_id == 1) {
|
||||||
foreach (EventsTable::$slots[$table] as $bookmaker_id) {
|
foreach (EventsTable::$slots[$table] as $bookmaker_id) {
|
||||||
|
if (isset($map[$bookmaker_id])) {
|
||||||
$option = 'X-lt-'.$bookmaker_id.'-'.$map[$bookmaker_id]['name'];
|
$option = 'X-lt-'.$bookmaker_id.'-'.$map[$bookmaker_id]['name'];
|
||||||
$x[$option] = 'X < '.$map[$bookmaker_id]['name'];
|
$x[$option] = 'X < '.$map[$bookmaker_id]['name'];
|
||||||
}
|
}
|
||||||
$options['X'] = $x;
|
|
||||||
}
|
}
|
||||||
|
$options['X'] = $x;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $options;
|
return $options;
|
||||||
|
|||||||
Reference in new issue
Block a user