From 2df0e142b230a1b87b148cfb86fbba8861dd93d7 Mon Sep 17 00:00:00 2001 From: salam Date: Sat, 7 Feb 2026 08:07:56 +0100 Subject: [PATCH] wip --- app/Livewire/BettypeToggle.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Livewire/BettypeToggle.php b/app/Livewire/BettypeToggle.php index 40833a6b..cb1bccab 100644 --- a/app/Livewire/BettypeToggle.php +++ b/app/Livewire/BettypeToggle.php @@ -144,12 +144,16 @@ class BettypeToggle extends Component public function countBookmaker() { - $this->bookmakerCount = EventBookmaker::where('bookmaker_id', auth()->user()->bookmaker_id)->count(); + $this->bookmakerCount = EventBookmaker::where('bookmaker_id', auth()->user()->bookmaker_id) + ->where('sport_id', auth()->user()->sport_id) + ->count(); } public function countPartner() { - $this->partnerCount = EventBookmaker::where('bookmaker_id', auth()->user()->partner_bookmaker_id)->count(); + $this->partnerCount = EventBookmaker::where('bookmaker_id', auth()->user()->partner_bookmaker_id) + ->where('sport_id', auth()->user()->sport_id) + ->count(); } public function setDifferences()