From c4f94fea578bf8a73a999b765be110da72fd2099 Mon Sep 17 00:00:00 2001 From: salam Date: Fri, 27 Feb 2026 16:27:39 +0100 Subject: [PATCH] wip --- app/Livewire/BettypeToggle.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/app/Livewire/BettypeToggle.php b/app/Livewire/BettypeToggle.php index 8704dd88..7ba41e3d 100644 --- a/app/Livewire/BettypeToggle.php +++ b/app/Livewire/BettypeToggle.php @@ -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); - } }