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->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()
|
||||||
|
|||||||
Reference in new issue
Block a user