wip
This commit is contained in:
1 parent
bafe560111
commit
4acf0e73ac
1 file changed
+5
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user