This commit is contained in:
salam committed 2026-02-07 08:07:56 +01:00
1 parent ebb2c34544
commit 2df0e142b2
1 file changed
+6 -2
+6 -2
View File
@@ -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()