This commit is contained in:
salam committed 2026-02-27 16:21:44 +01:00
1 parent bafe560111
commit 4acf0e73ac
1 file changed
+5 -1
+5 -1
View File
@@ -31,7 +31,7 @@ class BettypeToggle extends Component
$this->countPartner();
$this->setDifferences();
// $this->setDifferences();
$res = BettypeUser::with('multiline_setting')
->where('user_id', auth()->user()->id)
@@ -152,6 +152,7 @@ class BettypeToggle extends Component
public function countBookmaker()
{
$this->bookmakerCount = EventBookmaker::where('bookmaker_id', auth()->user()->bookmaker_id)
->where('starttime', '>', Carbon::now())
->where('sport_id', auth()->user()->sport_id)
->count();
}
@@ -159,8 +160,11 @@ class BettypeToggle extends Component
public function countPartner()
{
$this->partnerCount = EventBookmaker::where('bookmaker_id', auth()->user()->partner_bookmaker_id)
->where('starttime', '>', Carbon::now())
->where('sport_id', auth()->user()->sport_id)
->count();
$this->bookmakerPartnerDiffrences = abs($this->bookmakerCount - $this->partnerCount);
}
public function toggleBookmakerPartnerDiffrences()