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->countPartner();
$this->setDifferences(); // $this->setDifferences();
$res = BettypeUser::with('multiline_setting') $res = BettypeUser::with('multiline_setting')
->where('user_id', auth()->user()->id) ->where('user_id', auth()->user()->id)
@@ -152,6 +152,7 @@ class BettypeToggle extends Component
public function countBookmaker() public function countBookmaker()
{ {
$this->bookmakerCount = EventBookmaker::where('bookmaker_id', auth()->user()->bookmaker_id) $this->bookmakerCount = EventBookmaker::where('bookmaker_id', auth()->user()->bookmaker_id)
->where('starttime', '>', Carbon::now())
->where('sport_id', auth()->user()->sport_id) ->where('sport_id', auth()->user()->sport_id)
->count(); ->count();
} }
@@ -159,8 +160,11 @@ class BettypeToggle extends Component
public function countPartner() public function countPartner()
{ {
$this->partnerCount = EventBookmaker::where('bookmaker_id', auth()->user()->partner_bookmaker_id) $this->partnerCount = EventBookmaker::where('bookmaker_id', auth()->user()->partner_bookmaker_id)
->where('starttime', '>', Carbon::now())
->where('sport_id', auth()->user()->sport_id) ->where('sport_id', auth()->user()->sport_id)
->count(); ->count();
$this->bookmakerPartnerDiffrences = abs($this->bookmakerCount - $this->partnerCount);
} }
public function toggleBookmakerPartnerDiffrences() public function toggleBookmakerPartnerDiffrences()