This commit is contained in:
salam committed 2026-02-27 16:27:39 +01:00
1 parent d64051e30c
commit c4f94fea57
1 file changed
-20
-20
View File
@@ -29,10 +29,6 @@ class BettypeToggle extends Component
$this->countBookmaker();
$this->countPartner();
// $this->setDifferences();
$res = BettypeUser::with('multiline_setting')
->where('user_id', auth()->user()->id)
->where('sport_id', auth()->user()->sport_id)
@@ -155,10 +151,7 @@ class BettypeToggle extends Component
->where('starttime', '>', Carbon::now()->timezone('CET'))
->where('sport_id', auth()->user()->sport_id)
->count();
}
public function countPartner()
{
$this->partnerCount = EventBookmaker::where('bookmaker_id', auth()->user()->partner_bookmaker_id)
->where('starttime', '>', Carbon::now()->timezone('CET'))
->where('sport_id', auth()->user()->sport_id)
@@ -186,17 +179,4 @@ class BettypeToggle extends Component
$this->dispatch('refreshTable');
}
public function setDifferences()
{
$a = EventBookmaker::where('bookmaker_id', auth()->user()->bookmaker_id)
->where('sport_id', auth()->user()->sport_id)
->pluck('event_id')->toArray();
$b = EventBookmaker::where('bookmaker_id', auth()->user()->partner_bookmaker_id)
->where('sport_id', auth()->user()->sport_id)
->pluck('event_id')->toArray();
$result = array_diff($a, $b);
$this->bookmakerPartnerDiffrences = \count($result);
}
}