wip
This commit is contained in:
1 parent
77e7243d7c
commit
7905ad6313
2 files changed
+7
-4
No files matched your search
@@ -312,9 +312,6 @@ class EventsTable
|
||||
function (Builder $query, $country_id) {
|
||||
$query->whereIn('country_id', $country_id);
|
||||
}
|
||||
)->when(
|
||||
$data['group_id'],
|
||||
fn (Builder $query, $group_id) => $query->whereIn('group_id', $group_id)
|
||||
)->when(
|
||||
$data['competition_group_id'],
|
||||
fn (Builder $query, $competition_group_id) => $query->whereIn('competition_group_id', $competition_group_id)
|
||||
|
||||
@@ -157,7 +157,13 @@ class BettypeToggle extends Component
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->count();
|
||||
|
||||
$this->bookmakerPartnerDiffrences = abs($this->bookmakerCount - $this->partnerCount);
|
||||
$this->bookmakerPartnerDiffrences = DB::table('event_bookmakers')
|
||||
->selectRaw('count(id) as c, event_id')
|
||||
->whereIn('bookmaker_id', [auth()->user()->bookmaker_id, auth()->user()->partner_bookmaker_id])
|
||||
->where('starttime', '>', Carbon::now()->timezone('CET'))
|
||||
->groupBy('event_id')
|
||||
->havingRaw('c = 1')
|
||||
->count();
|
||||
}
|
||||
|
||||
public function toggleBookmakerPartnerDiffrences()
|
||||
|
||||
Reference in new issue
Block a user