comparing bookmaker wip

This commit is contained in:
salam committed 2026-01-20 18:48:01 +01:00
1 parent de95867692
commit be80128226
11 files changed
+237 -93

No files matched your search

+3 -1
View File
@@ -9,7 +9,7 @@ use Illuminate\Support\Facades\Auth;
class LoadEvents
{
public static function load($search_left)
public static function load($search_left, $sport_id)
{
if ($search_left) {
@@ -24,6 +24,7 @@ class LoadEvents
$query = Event::query()
->with('home')
->with('away')
->where('sport_id', $sport_id)
->where('starttime', '>', Carbon::now())
->where(function ($query) use ($element_ids) {
$query->orWhereIn('home_id', $element_ids)->orWhereIn('away_id', $element_ids);
@@ -33,6 +34,7 @@ class LoadEvents
$query = Event::query()
->with('home')
->with('away')
->where('sport_id', $sport_id)
->where('betradar_id', 0)
->where('starttime', '>', Carbon::now());
}