wip
This commit is contained in:
1 parent
ebb2c34544
commit
2df0e142b2
1 file changed
+6
-2
@@ -144,12 +144,16 @@ class BettypeToggle extends Component
|
|||||||
|
|
||||||
public function countBookmaker()
|
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()
|
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()
|
public function setDifferences()
|
||||||
|
|||||||
Reference in new issue
Block a user