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()