wip
This commit is contained in:
1 parent
ed182bcb4d
commit
d6d56f729d
1 file changed
+2
-2
@@ -221,14 +221,14 @@ class EventsTable
|
|||||||
->where('sport_id', auth()->user()->sport_id)
|
->where('sport_id', auth()->user()->sport_id)
|
||||||
->where('starttime', '>', Carbon::now())
|
->where('starttime', '>', Carbon::now())
|
||||||
->whereIn('country_id', $get('country_id'))
|
->whereIn('country_id', $get('country_id'))
|
||||||
->groupBy('competition_group_id')->get();
|
->get();
|
||||||
} else {
|
} else {
|
||||||
$res = Event::where('has_markets', 1)
|
$res = Event::where('has_markets', 1)
|
||||||
->with('country')
|
->with('country')
|
||||||
->with('competition_group')
|
->with('competition_group')
|
||||||
->where('sport_id', auth()->user()->sport_id)
|
->where('sport_id', auth()->user()->sport_id)
|
||||||
->where('starttime', '>', Carbon::now())
|
->where('starttime', '>', Carbon::now())
|
||||||
->groupBy('competition_group.id')->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
$arr = [];
|
$arr = [];
|
||||||
|
|||||||
Reference in new issue
Block a user