This commit is contained in:
salam committed 2026-02-27 16:52:30 +01:00
1 parent 77e7243d7c
commit 7905ad6313
2 files changed
+7 -4

No files matched your search

+7 -1
View File
@@ -157,7 +157,13 @@ class BettypeToggle extends Component
->where('sport_id', auth()->user()->sport_id)
->count();
$this->bookmakerPartnerDiffrences = abs($this->bookmakerCount - $this->partnerCount);
$this->bookmakerPartnerDiffrences = DB::table('event_bookmakers')
->selectRaw('count(id) as c, event_id')
->whereIn('bookmaker_id', [auth()->user()->bookmaker_id, auth()->user()->partner_bookmaker_id])
->where('starttime', '>', Carbon::now()->timezone('CET'))
->groupBy('event_id')
->havingRaw('c = 1')
->count();
}
public function toggleBookmakerPartnerDiffrences()