wip
This commit is contained in:
1 parent
713ef07f14
commit
3af30b34b5
1 file changed
+2
-3
@@ -108,7 +108,7 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable
|
|||||||
->searchable()
|
->searchable()
|
||||||
->preload()
|
->preload()
|
||||||
->options(function (Get $get) {
|
->options(function (Get $get) {
|
||||||
$query = Event::query()->where('sport_id', auth()->user()->sport_id)->where('betradar_id', 0)->whereDate('starttime', '>', Carbon::now())->groupBy('country_id');
|
$query = Event::query()->where('sport_id', auth()->user()->sport_id)->where('betradar_id', 0)->groupBy('country_id');
|
||||||
|
|
||||||
$timeframe = $get('starttime_period') ?? [];
|
$timeframe = $get('starttime_period') ?? [];
|
||||||
|
|
||||||
@@ -146,8 +146,7 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable
|
|||||||
|
|
||||||
$query = CompetitionGroup::where('sport_id', auth()->user()->sport_id)
|
$query = CompetitionGroup::where('sport_id', auth()->user()->sport_id)
|
||||||
->whereHas('event', function ($query) {
|
->whereHas('event', function ($query) {
|
||||||
$query->whereDate('starttime', '>', now())
|
$query->where('betradar_id', 0);
|
||||||
->where('betradar_id', 0);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if ($get('country_id') ?? null) {
|
if ($get('country_id') ?? null) {
|
||||||
|
|||||||
Reference in new issue
Block a user