wip
This commit is contained in:
1 parent
98a0742575
commit
713ef07f14
1 file changed
+5
-5
@@ -105,7 +105,7 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
|
|||||||
->preload()
|
->preload()
|
||||||
->live()
|
->live()
|
||||||
->options(function (Get $get) {
|
->options(function (Get $get) {
|
||||||
$query = Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->whereDate('starttime', '>', Carbon::now())->groupBy('country_id')->orderBy('country');
|
$query = Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->groupBy('country_id')->orderBy('country');
|
||||||
|
|
||||||
$timeframe = $get('starttime_period') ?? [];
|
$timeframe = $get('starttime_period') ?? [];
|
||||||
if ($timeframe['start'] || $timeframe['end']) {
|
if ($timeframe['start'] || $timeframe['end']) {
|
||||||
@@ -140,7 +140,7 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
|
|||||||
->preload()
|
->preload()
|
||||||
->live()
|
->live()
|
||||||
->options(function (Get $get) {
|
->options(function (Get $get) {
|
||||||
$query = Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->whereDate('starttime', '>', Carbon::now())->groupBy('group_cc');
|
$query = Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->groupBy('group_cc');
|
||||||
|
|
||||||
$timeframe = $get('starttime_period') ?? [];
|
$timeframe = $get('starttime_period') ?? [];
|
||||||
|
|
||||||
@@ -182,11 +182,11 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
|
|||||||
->preload()
|
->preload()
|
||||||
->options(function (Get $get) {
|
->options(function (Get $get) {
|
||||||
if ($get('country_id')) {
|
if ($get('country_id')) {
|
||||||
$query = Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->whereDate('starttime', '>', Carbon::now())->where('country_id', $get('country_id'))->groupBy('group_id');
|
$query = Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->where('country_id', $get('country_id'))->groupBy('group_id');
|
||||||
} elseif ($get('group_cc')) {
|
} elseif ($get('group_cc')) {
|
||||||
$query = Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->whereDate('starttime', '>', Carbon::now())->where('group_cc', $get('group_cc'))->groupBy('group_id');
|
$query = Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->where('group_cc', $get('group_cc'))->groupBy('group_id');
|
||||||
} else {
|
} else {
|
||||||
$query = Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->whereDate('starttime', '>', Carbon::now())->groupBy('group_id');
|
$query = Mapper::query()->where('sport_id', auth()->user()->sport_id)->where('provider_id', auth()->user()->provider_id)->groupBy('group_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
$timeframe = $get('starttime_period') ?? [];
|
$timeframe = $get('starttime_period') ?? [];
|
||||||
|
|||||||
Reference in new issue
Block a user