multi betts wip
This commit is contained in:
1 parent
1aa044fff1
commit
b39196c9eb
62 files changed
+1237
-208
No files matched your search
@@ -58,23 +58,48 @@ class EventResource extends Resource
|
||||
->with('country')
|
||||
->with('home')
|
||||
->with('away');
|
||||
if (in_array(1, EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_3way.bookmaker');
|
||||
|
||||
if (in_array('odds_2ways', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_2ways.bookmaker');
|
||||
}
|
||||
if (in_array(2, EventsTable::$bettype_settings)) {
|
||||
if (in_array('odds_2ways_s1', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_2ways_s1.bookmaker');
|
||||
}
|
||||
if (in_array('odds_3ways', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_3ways.bookmaker');
|
||||
}
|
||||
if (in_array('odds_3ways_ht', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_3ways_ht.bookmaker');
|
||||
}
|
||||
if (in_array('odds_dc', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_dc.bookmaker');
|
||||
}
|
||||
if (in_array(3, EventsTable::$bettype_settings)) {
|
||||
if (in_array('odds_dnb', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_dnb.bookmaker');
|
||||
}
|
||||
if (in_array(4, EventsTable::$bettype_settings)) {
|
||||
if (in_array('odds_ggng', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_ggng.bookmaker');
|
||||
}
|
||||
if (in_array(5, EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_tq.bookmaker');
|
||||
if (in_array('odds_points', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_points.bookmaker');
|
||||
}
|
||||
if (in_array(6, EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_total.bookmaker');
|
||||
if (in_array('odds_points_ht', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_points_ht.bookmaker');
|
||||
}
|
||||
if (in_array('odds_points_q1', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_points_q1.bookmaker');
|
||||
}
|
||||
if (in_array('odds_totals', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_totals.bookmaker');
|
||||
}
|
||||
if (in_array('odds_totals_ht', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_totals_ht.bookmaker');
|
||||
}
|
||||
if (in_array('odds_totals_q1', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_totals_q1.bookmaker');
|
||||
}
|
||||
if (in_array('odds_tq', EventsTable::$bettype_settings)) {
|
||||
$query->with('odds_tq.bookmaker');
|
||||
}
|
||||
|
||||
return $query;
|
||||
|
||||
Reference in new issue
Block a user