mapper new
This commit is contained in:
1 parent
fe7fc0accf
commit
e27bba1644
12 files changed
+179
-107
No files matched your search
@@ -25,25 +25,25 @@ class GenerateDefaultSetting
|
|||||||
Notice::note('1) multiline bookmaker slots for client', 'p');
|
Notice::note('1) multiline bookmaker slots for client', 'p');
|
||||||
}
|
}
|
||||||
|
|
||||||
$sports = Sport::where('is_active', 1)->get();
|
$sports = Sport::where('is_active', 1)->pluck('id');
|
||||||
|
|
||||||
$bookmaker = [0, 6, 30, 649, 117];
|
$bookmaker_slots = [1 => 6, 2 => 30, 3 => 649, 4 => 126];
|
||||||
|
|
||||||
$clients = Client::get();
|
$clients = Client::get()->pluck('id');
|
||||||
|
|
||||||
foreach ($clients as $client) {
|
foreach ($clients as $client_id) {
|
||||||
|
|
||||||
foreach ($sports as $sport) {
|
foreach ($sports as $sport_id) {
|
||||||
|
|
||||||
$multilines = MultilineSetting::where('sport_id', $sport->id)->get();
|
$multilines = MultilineSetting::where('sport_id', $sport_id)->get()->pluck('id');
|
||||||
|
|
||||||
foreach ($multilines as $multiline) {
|
foreach ($multilines as $multiline_id) {
|
||||||
|
|
||||||
for ($slot = 1; $slot <= 4; $slot++) {
|
foreach ($bookmaker_slots as $slot => $bookmaker_id) {
|
||||||
|
|
||||||
MultilineClient::updateOrInsert(
|
MultilineClient::firstOrCreate(
|
||||||
['client_id' => $client->id, 'sport_id' => $client->id, 'multiline_setting_id' => $multiline->id, 'position' => $slot],
|
['client_id' => $client_id, 'sport_id' => $sport_id, 'multiline_setting_id' => $multiline_id, 'position' => $slot],
|
||||||
['bookmaker_id' => $bookmaker[$slot], 'sort' => $slot, 'disabled' => 0]
|
['bookmaker_id' => $bookmaker_id, 'sort' => $slot, 'disabled' => 0]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,14 +57,13 @@ class EventsTable
|
|||||||
public static function load_multiline_bookmaker()
|
public static function load_multiline_bookmaker()
|
||||||
{
|
{
|
||||||
$res = MultilineClient::with('multiline_setting')
|
$res = MultilineClient::with('multiline_setting')
|
||||||
->where('client_id', auth()->user()->client_id)
|
|
||||||
->where('sport_id', auth()->user()->sport_id)
|
|
||||||
->select('bookmaker_id', 'multiline_setting_id')
|
->select('bookmaker_id', 'multiline_setting_id')
|
||||||
->orderBy('sort')
|
->orderBy('sort')
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
foreach ($res as $value) {
|
foreach ($res as $value) {
|
||||||
self::$multiline_gettype[$value->multiline_setting->table][] = $value->bookmaker_id;
|
$table = $value->multiline_setting->table;
|
||||||
|
self::$multiline_gettype[$table][] = (int) $value->bookmaker_id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -214,10 +213,10 @@ class EventsTable
|
|||||||
->extremePaginationLinks()
|
->extremePaginationLinks()
|
||||||
->filters([
|
->filters([
|
||||||
Filter::make('events')
|
Filter::make('events')
|
||||||
->columns(9)->columnSpan(9)
|
->columns(5)->columnSpan(5)
|
||||||
->schema([
|
->schema([
|
||||||
Select::make(name: 'sport_id')
|
Select::make(name: 'sport_id')
|
||||||
->default(auth()->user()->id)
|
->default(auth()->user()->sport_id)
|
||||||
->prefixIcon(auth()->user()->sport->icon)
|
->prefixIcon(auth()->user()->sport->icon)
|
||||||
->selectablePlaceholder(false)
|
->selectablePlaceholder(false)
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
@@ -239,7 +238,6 @@ class EventsTable
|
|||||||
|
|
||||||
}),
|
}),
|
||||||
Select::make(name: 'country_id')
|
Select::make(name: 'country_id')
|
||||||
->columnSpan(2)
|
|
||||||
->hidden(fn () => auth()->user()->sport_id == 5)
|
->hidden(fn () => auth()->user()->sport_id == 5)
|
||||||
->placeholder('Country')
|
->placeholder('Country')
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
@@ -259,7 +257,6 @@ class EventsTable
|
|||||||
}),
|
}),
|
||||||
Select::make('competition_group_id')
|
Select::make('competition_group_id')
|
||||||
->hidden(fn () => auth()->user()->sport_id == 5)
|
->hidden(fn () => auth()->user()->sport_id == 5)
|
||||||
->columnSpan(2)
|
|
||||||
->placeholder('League')
|
->placeholder('League')
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
->label('')
|
->label('')
|
||||||
@@ -281,7 +278,6 @@ class EventsTable
|
|||||||
})
|
})
|
||||||
->live(),
|
->live(),
|
||||||
Select::make('group_id')
|
Select::make('group_id')
|
||||||
->columnSpan(2)
|
|
||||||
->visible(fn () => auth()->user()->sport_id == 5)
|
->visible(fn () => auth()->user()->sport_id == 5)
|
||||||
->placeholder('Tournament')
|
->placeholder('Tournament')
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
@@ -304,7 +300,7 @@ class EventsTable
|
|||||||
})
|
})
|
||||||
->live(),
|
->live(),
|
||||||
DateRangePicker::make('starttime_period')
|
DateRangePicker::make('starttime_period')
|
||||||
->columnSpan(4)
|
->columnSpan(2)
|
||||||
->displayFormat('d M Y')
|
->displayFormat('d M Y')
|
||||||
->minDate(now())
|
->minDate(now())
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
|
|||||||
@@ -21,12 +21,9 @@ class LoadEvents
|
|||||||
}
|
}
|
||||||
})->pluck('id')->toArray();
|
})->pluck('id')->toArray();
|
||||||
|
|
||||||
// dd(Auth::user()->sport_id);
|
|
||||||
|
|
||||||
$query = Event::query()
|
$query = Event::query()
|
||||||
->with('home')
|
->with('home')
|
||||||
->with('away')
|
->with('away')
|
||||||
->where('sport_id', Auth::user()->sport_id)
|
|
||||||
->where('starttime', '>', Carbon::now())
|
->where('starttime', '>', Carbon::now())
|
||||||
->where(function ($query) use ($element_ids) {
|
->where(function ($query) use ($element_ids) {
|
||||||
$query->orWhereIn('home_id', $element_ids)->orWhereIn('away_id', $element_ids);
|
$query->orWhereIn('home_id', $element_ids)->orWhereIn('away_id', $element_ids);
|
||||||
@@ -37,7 +34,6 @@ class LoadEvents
|
|||||||
->with('home')
|
->with('home')
|
||||||
->with('away')
|
->with('away')
|
||||||
->where('betradar_id', 0)
|
->where('betradar_id', 0)
|
||||||
->where('sport_id', Auth::user()->sport_id)
|
|
||||||
->where('starttime', '>', Carbon::now());
|
->where('starttime', '>', Carbon::now());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ namespace App\Livewire\Mapper;
|
|||||||
|
|
||||||
use App\Models\Mapper;
|
use App\Models\Mapper;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
use Illuminate\Support\Facades\Auth;
|
|
||||||
|
|
||||||
class LoadProvider
|
class LoadProvider
|
||||||
{
|
{
|
||||||
@@ -15,9 +14,8 @@ class LoadProvider
|
|||||||
$searchValues = preg_split('/\s+/', $search_right, -1, PREG_SPLIT_NO_EMPTY);
|
$searchValues = preg_split('/\s+/', $search_right, -1, PREG_SPLIT_NO_EMPTY);
|
||||||
|
|
||||||
return Mapper::query()
|
return Mapper::query()
|
||||||
->where('sport_id', Auth::user()->sport_id)
|
|
||||||
->where('starttime', '>', Carbon::now())
|
->where('starttime', '>', Carbon::now())
|
||||||
->where('provider_id', Auth::user()->provider_id)
|
->where('provider_id', auth()->user()->provider_id)
|
||||||
->where(function ($query) use ($searchValues) {
|
->where(function ($query) use ($searchValues) {
|
||||||
foreach ($searchValues as $value) {
|
foreach ($searchValues as $value) {
|
||||||
$query->orWhere('home', 'LIKE', '%'.$value.'%')
|
$query->orWhere('home', 'LIKE', '%'.$value.'%')
|
||||||
@@ -26,9 +24,8 @@ class LoadProvider
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return Mapper::query()
|
return Mapper::query()
|
||||||
->where('sport_id', Auth::user()->sport_id)
|
|
||||||
->where('starttime', '>', Carbon::now())
|
->where('starttime', '>', Carbon::now())
|
||||||
->where('provider_id', Auth::user()->provider_id);
|
->where('provider_id', auth()->user()->provider_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+40
-16
@@ -9,6 +9,7 @@ use App\Models\CompetitionGroup;
|
|||||||
use App\Models\Country;
|
use App\Models\Country;
|
||||||
use App\Models\Event;
|
use App\Models\Event;
|
||||||
use App\Models\Mapper;
|
use App\Models\Mapper;
|
||||||
|
use App\Models\Sport;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Filament\Actions\Action;
|
use Filament\Actions\Action;
|
||||||
use Filament\Actions\Concerns\InteractsWithActions;
|
use Filament\Actions\Concerns\InteractsWithActions;
|
||||||
@@ -74,24 +75,44 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable
|
|||||||
->filters([
|
->filters([
|
||||||
Filter::make('events')
|
Filter::make('events')
|
||||||
->schema([
|
->schema([
|
||||||
Select::make('country_id')
|
Select::make(name: 'sport_id')
|
||||||
->placeholder('Country')
|
->default(auth()->user()->sport_id)
|
||||||
|
->prefixIcon(auth()->user()->sport->icon)
|
||||||
|
->selectablePlaceholder(false)
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
->multiple()
|
|
||||||
->label('')
|
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
->searchable()
|
|
||||||
->preload()
|
->preload()
|
||||||
->options(function () {
|
->options(function () {
|
||||||
$res = Event::query()->where('betradar_id', 0)->where('starttime', '>', Carbon::now())->groupBy('country_id')->pluck('country_id')->toArray();
|
return Sport::query()->where('is_active', 1)->pluck('name', 'id');
|
||||||
|
|
||||||
return Country::query()->whereIn('id', $res)->pluck('name', 'id');
|
|
||||||
})
|
})
|
||||||
->live()
|
->live()
|
||||||
->reactive()
|
->reactive()
|
||||||
->afterStateUpdated(function (callable $set) {
|
->afterStateUpdated(function (callable $set, $livewire) {
|
||||||
|
|
||||||
|
$livewire->dispatch('reload_data_left');
|
||||||
|
$livewire->dispatch('reload_data_right');
|
||||||
|
|
||||||
|
$set('country_id', null);
|
||||||
$set('competition_group_id', null);
|
$set('competition_group_id', null);
|
||||||
|
|
||||||
}),
|
}),
|
||||||
|
// Select::make('country_id')
|
||||||
|
// ->placeholder('Country')
|
||||||
|
// ->hiddenLabel()
|
||||||
|
// ->multiple()
|
||||||
|
// ->columnSpan(2)
|
||||||
|
// ->searchable()
|
||||||
|
// ->preload()
|
||||||
|
// ->options(function (Get $get) {
|
||||||
|
// $res = Event::query()->where('sport_id', $get('sport_id'))->where('betradar_id', 0)->where('starttime', '>', Carbon::now())->groupBy('country_id')->pluck('country_id')->toArray();
|
||||||
|
|
||||||
|
// return Country::query()->whereIn('id', $res)->pluck('name', 'id');
|
||||||
|
// })
|
||||||
|
// ->live()
|
||||||
|
// ->reactive()
|
||||||
|
// ->afterStateUpdated(function (callable $set) {
|
||||||
|
// $set('competition_group_id', null);
|
||||||
|
// }),
|
||||||
Select::make('competition_group_id')
|
Select::make('competition_group_id')
|
||||||
->placeholder('League')
|
->placeholder('League')
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
@@ -100,11 +121,11 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable
|
|||||||
->multiple()
|
->multiple()
|
||||||
->searchable()
|
->searchable()
|
||||||
->options(function (Get $get) {
|
->options(function (Get $get) {
|
||||||
if ($get('country_id')) {
|
// if ($get('country_id')) {
|
||||||
$res = Event::query()->where('betradar_id', 0)->where('starttime', '>', Carbon::now())->whereIn('country_id', $get('country_id'))->groupBy('competition_group_id')->pluck('competition_group_id')->toArray();
|
// $res = Event::query()->where('sport_id', $get('sport_id'))->where('betradar_id', 0)->where('starttime', '>', Carbon::now())->whereIn('country_id', $get('country_id'))->groupBy('competition_group_id')->pluck('competition_group_id')->toArray();
|
||||||
} else {
|
// } else {
|
||||||
$res = Event::query()->where('betradar_id', 0)->where('starttime', '>', Carbon::now())->groupBy('competition_group_id')->pluck('competition_group_id')->toArray();
|
// }
|
||||||
}
|
$res = Event::query()->where('sport_id', $get('sport_id'))->where('betradar_id', 0)->where('starttime', '>', Carbon::now())->groupBy('competition_group_id')->pluck('competition_group_id')->toArray();
|
||||||
|
|
||||||
$comps = CompetitionGroup::with('country')->whereIn('id', $res)->get();
|
$comps = CompetitionGroup::with('country')->whereIn('id', $res)->get();
|
||||||
|
|
||||||
@@ -125,8 +146,11 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable
|
|||||||
->query(function (Builder $query, array $data): Builder {
|
->query(function (Builder $query, array $data): Builder {
|
||||||
return $query
|
return $query
|
||||||
->when(
|
->when(
|
||||||
$data['country_id'],
|
$data['sport_id'],
|
||||||
fn (Builder $query, $country_id) => $query->where('country_id', $country_id)
|
fn (Builder $query, $sport_id) => $query->where('sport_id', $sport_id)
|
||||||
|
// )->when(
|
||||||
|
// $data['country_id'],
|
||||||
|
// fn (Builder $query, $country_id) => $query->where('country_id', $country_id)
|
||||||
)->when(
|
)->when(
|
||||||
$data['competition_group_id'],
|
$data['competition_group_id'],
|
||||||
fn (Builder $query, $competition_group_id) => $query->whereIn('competition_group_id', $competition_group_id)
|
fn (Builder $query, $competition_group_id) => $query->whereIn('competition_group_id', $competition_group_id)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ use App\Livewire\Mapper\StoreMapped;
|
|||||||
use App\Models\Country;
|
use App\Models\Country;
|
||||||
use App\Models\Event;
|
use App\Models\Event;
|
||||||
use App\Models\Mapper;
|
use App\Models\Mapper;
|
||||||
|
use App\Models\Sport;
|
||||||
use Filament\Actions\Action;
|
use Filament\Actions\Action;
|
||||||
use Filament\Actions\Concerns\InteractsWithActions;
|
use Filament\Actions\Concerns\InteractsWithActions;
|
||||||
use Filament\Actions\Contracts\HasActions;
|
use Filament\Actions\Contracts\HasActions;
|
||||||
@@ -73,44 +74,66 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
|
|||||||
->filters([
|
->filters([
|
||||||
Filter::make('events')
|
Filter::make('events')
|
||||||
->schema([
|
->schema([
|
||||||
Select::make('country_id')
|
Select::make(name: 'sport_id')
|
||||||
->visible(fn () => in_array(Auth()->user()->provider_id, [3, 4]))
|
->default(auth()->user()->sport_id)
|
||||||
->placeholder('Country')
|
->prefixIcon(auth()->user()->sport->icon)
|
||||||
|
->selectablePlaceholder(false)
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
->label('')
|
|
||||||
->searchable()
|
|
||||||
->preload()
|
|
||||||
->multiple()
|
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
->live()
|
->preload()
|
||||||
->options(function () {
|
->options(function () {
|
||||||
return Mapper::query()->where('sport_id', Auth::user()->sport_id)->where('provider_id', Auth::user()->provider_id)->where('starttime', '>', Carbon::now())->groupBy('country_id')->pluck('country', 'country_id')->toArray();
|
return Sport::query()->where('is_active', 1)->pluck('name', 'id');
|
||||||
})
|
})
|
||||||
|
->live()
|
||||||
->reactive()
|
->reactive()
|
||||||
->afterStateUpdated(function (callable $set) {
|
->afterStateUpdated(function (callable $set, $livewire) {
|
||||||
$set('group_id', null);
|
|
||||||
})
|
|
||||||
->placeholder('Country'),
|
|
||||||
Select::make('group_cc')
|
|
||||||
->visible(fn () => Auth()->user()->provider_id == 2)
|
|
||||||
->placeholder('Country')
|
|
||||||
->hiddenLabel()
|
|
||||||
->label('')
|
|
||||||
->searchable()
|
|
||||||
->preload()
|
|
||||||
->multiple()
|
|
||||||
->columnSpan(2)
|
|
||||||
->live()
|
|
||||||
->options(function () {
|
|
||||||
$res = Mapper::query()->where('sport_id', Auth::user()->sport_id)->where('provider_id', Auth::user()->provider_id)->where('starttime', '>', Carbon::now())->groupBy('group_cc')->pluck('group_cc')->toArray();
|
|
||||||
|
|
||||||
return Country::query()->whereIn('iso2', $res)->pluck('name', 'iso2');
|
$livewire->dispatch('reload_data_left');
|
||||||
})
|
$livewire->dispatch('reload_data_right');
|
||||||
->reactive()
|
|
||||||
->afterStateUpdated(function (callable $set) {
|
// $set('country_id', null);
|
||||||
|
// $set('group_cc', null);
|
||||||
$set('group_id', null);
|
$set('group_id', null);
|
||||||
})
|
|
||||||
->placeholder('Country'),
|
}),
|
||||||
|
// Select::make('country_id')
|
||||||
|
// ->visible(fn () => in_array(Auth()->user()->provider_id, [3, 4]))
|
||||||
|
// ->placeholder('Country')
|
||||||
|
// ->hiddenLabel()
|
||||||
|
// ->label('')
|
||||||
|
// ->searchable()
|
||||||
|
// ->preload()
|
||||||
|
// ->multiple()
|
||||||
|
// ->columnSpan(2)
|
||||||
|
// ->live()
|
||||||
|
// ->options(function (Get $get) {
|
||||||
|
// return Mapper::query()->where('sport_id', $get('sport_id'))->where('provider_id', Auth::user()->provider_id)->where('starttime', '>', Carbon::now())->groupBy('country_id')->pluck('country', 'country_id')->toArray();
|
||||||
|
// })
|
||||||
|
// ->reactive()
|
||||||
|
// ->afterStateUpdated(function (callable $set) {
|
||||||
|
// $set('group_id', null);
|
||||||
|
// })
|
||||||
|
// ->placeholder('Country'),
|
||||||
|
// Select::make('group_cc')
|
||||||
|
// ->visible(fn () => Auth()->user()->provider_id == 2)
|
||||||
|
// ->placeholder('Country')
|
||||||
|
// ->hiddenLabel()
|
||||||
|
// ->label('')
|
||||||
|
// ->searchable()
|
||||||
|
// ->preload()
|
||||||
|
// ->multiple()
|
||||||
|
// ->columnSpan(2)
|
||||||
|
// ->live()
|
||||||
|
// ->options(function () {
|
||||||
|
// $res = Mapper::query()->where('sport_id', Auth::user()->sport_id)->where('provider_id', Auth::user()->provider_id)->where('starttime', '>', Carbon::now())->groupBy('group_cc')->pluck('group_cc')->toArray();
|
||||||
|
|
||||||
|
// return Country::query()->whereIn('iso2', $res)->pluck('name', 'iso2');
|
||||||
|
// })
|
||||||
|
// ->reactive()
|
||||||
|
// ->afterStateUpdated(function (callable $set) {
|
||||||
|
// $set('group_id', null);
|
||||||
|
// })
|
||||||
|
// ->placeholder('Country'),
|
||||||
Select::make('group_id')
|
Select::make('group_id')
|
||||||
->placeholder('League')
|
->placeholder('League')
|
||||||
->label('Leagues')
|
->label('Leagues')
|
||||||
@@ -121,24 +144,28 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable
|
|||||||
->preload()
|
->preload()
|
||||||
->multiple()
|
->multiple()
|
||||||
->options(function (Get $get) {
|
->options(function (Get $get) {
|
||||||
if ($get('country_id')) {
|
// if ($get('country_id')) {
|
||||||
return Mapper::query()->where('sport_id', Auth::user()->sport_id)->where('provider_id', Auth::user()->provider_id)->where('starttime', '>', Carbon::now())->whereIn('country_id', $get('country_id'))->groupBy('group_id')->pluck('group', 'group_id')->toArray();
|
// return Mapper::query()->where('sport_id', $get('sport_id'))->where('provider_id', Auth::user()->provider_id)->where('starttime', '>', Carbon::now())->whereIn('country_id', $get('country_id'))->groupBy('group_id')->pluck('group', 'group_id')->toArray();
|
||||||
} elseif ($get('group_cc')) {
|
// } else
|
||||||
return Mapper::query()->where('sport_id', Auth::user()->sport_id)->where('provider_id', Auth::user()->provider_id)->where('starttime', '>', Carbon::now())->whereIn('group_cc', $get('group_cc'))->groupBy('group_id')->pluck('group', 'group_id')->toArray();
|
// if ($get('group_cc')) {
|
||||||
} else {
|
// return Mapper::query()->where('sport_id', $get('sport_id'))->where('provider_id', Auth::user()->provider_id)->where('starttime', '>', Carbon::now())->whereIn('group_cc', $get('group_cc'))->groupBy('group_id')->pluck('group', 'group_id')->toArray();
|
||||||
return Mapper::query()->where('sport_id', Auth::user()->sport_id)->where('provider_id', Auth::user()->provider_id)->where('starttime', '>', Carbon::now())->groupBy('group_id')->pluck('group', 'group_id')->toArray();
|
// } else {
|
||||||
}
|
// }
|
||||||
|
return Mapper::query()->where('sport_id', $get('sport_id'))->where('provider_id', Auth::user()->provider_id)->where('starttime', '>', Carbon::now())->groupBy('group_id')->pluck('group', 'group_id')->toArray();
|
||||||
})
|
})
|
||||||
->live(),
|
->live(),
|
||||||
])
|
])
|
||||||
->query(function (Builder $query, array $data): Builder {
|
->query(function (Builder $query, array $data): Builder {
|
||||||
return $query
|
return $query
|
||||||
->when(
|
->when(
|
||||||
$data['country_id'],
|
$data['sport_id'],
|
||||||
fn (Builder $query, $country_id) => $query->whereIn('country_id', $country_id)
|
fn (Builder $query, $sport_id) => $query->where('sport_id', $sport_id)
|
||||||
)->when(
|
// )->when(
|
||||||
$data['group_cc'],
|
// $data['country_id'],
|
||||||
fn (Builder $query, $group_cc) => $query->whereIn('group_cc', $group_cc)
|
// fn (Builder $query, $country_id) => $query->whereIn('country_id', $country_id)
|
||||||
|
// )->when(
|
||||||
|
// $data['group_cc'],
|
||||||
|
// fn (Builder $query, $group_cc) => $query->whereIn('group_cc', $group_cc)
|
||||||
)->when(
|
)->when(
|
||||||
$data['group_id'],
|
$data['group_id'],
|
||||||
fn (Builder $query, $group_id) => $query->whereIn('group_id', $group_id)
|
fn (Builder $query, $group_id) => $query->whereIn('group_id', $group_id)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class MultilineClient extends Model
|
|||||||
|
|
||||||
public function multiline_setting()
|
public function multiline_setting()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(MultilineSetting::class)->where('sport_id', auth()->user()->sport_id);
|
return $this->belongsTo(MultilineSetting::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function bookmaker()
|
public function bookmaker()
|
||||||
|
|||||||
@@ -63,4 +63,14 @@ button[wire\:click="resetTableFiltersForm"] {
|
|||||||
.striped div:nth-child(even) {
|
.striped div:nth-child(even) {
|
||||||
@apply bg-gray-100
|
@apply bg-gray-100
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#mapper_right .fi-ta-filter-indicators button,
|
||||||
|
#mapper_left .fi-ta-filter-indicators button {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mapper_right .fi-ta-filter-indicators div button,
|
||||||
|
#mapper_left .fi-ta-filter-indicators div button {
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<div>
|
<div id="mapper_left">
|
||||||
<ul class="drag-and-drop__items">
|
<ul class="drag-and-drop__items">
|
||||||
{{ $this->table }}
|
{{ $this->table }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div>
|
<div id="mapper_right">
|
||||||
<ul class="drag-and-drop__items">
|
<ul class="drag-and-drop__items">
|
||||||
{{ $this->table }}
|
{{ $this->table }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -62,11 +62,11 @@
|
|||||||
|
|
||||||
{{-- Event Mapper --}}
|
{{-- Event Mapper --}}
|
||||||
|
|
||||||
<x-filament::modal slide-over width="7xl" icon="phosphor-arrows-in-line-horizontal" :close-by-clicking-away="false" :close-by-escaping="false"
|
<x-filament::modal width="7xl" icon="phosphor-arrows-in-line-horizontal" :close-by-clicking-away="false" :close-by-escaping="false"
|
||||||
:close-button="true">
|
:close-button="true">
|
||||||
<x-slot name="trigger">
|
<x-slot name="trigger">
|
||||||
<x-filament::icon-button outlined icon="phosphor-arrows-in-line-horizontal" color="gray" class="my-auto"
|
<x-filament::icon-button outlined icon="phosphor-arrows-in-line-horizontal" color="gray"
|
||||||
title="Event Mapper">
|
class="my-auto" title="Event Mapper">
|
||||||
</x-filament::icon-button>
|
</x-filament::icon-button>
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
@@ -157,9 +157,11 @@
|
|||||||
</x-filament::modal>
|
</x-filament::modal>
|
||||||
|
|
||||||
{{-- Multiline --}}
|
{{-- Multiline --}}
|
||||||
<x-filament::modal slide-over width="4xl" icon="phosphor-list" :close-by-clicking-away="false" :close-by-escaping="true" :close-button="true">
|
<x-filament::modal slide-over width="4xl" icon="phosphor-list" :close-by-clicking-away="false" :close-by-escaping="true"
|
||||||
|
:close-button="true">
|
||||||
<x-slot name="trigger">
|
<x-slot name="trigger">
|
||||||
<x-filament::icon-button outlined icon="phosphor-list" color="gray" class="my-auto" title="Multiline Settings">
|
<x-filament::icon-button outlined icon="phosphor-list" color="gray" class="my-auto"
|
||||||
|
title="Multiline Settings">
|
||||||
</x-filament::icon-button>
|
</x-filament::icon-button>
|
||||||
</x-slot>
|
</x-slot>
|
||||||
<x-slot name="heading">
|
<x-slot name="heading">
|
||||||
@@ -172,7 +174,8 @@
|
|||||||
|
|
||||||
<x-filament::modal slide-over width="4xl" icon="phosphor-siren">
|
<x-filament::modal slide-over width="4xl" icon="phosphor-siren">
|
||||||
<x-slot name="trigger">
|
<x-slot name="trigger">
|
||||||
<x-filament::icon-button outlined icon="phosphor-siren" color="gray" class="my-auto" title="Alarm Settings">
|
<x-filament::icon-button outlined icon="phosphor-siren" color="gray" class="my-auto"
|
||||||
|
title="Alarm Settings">
|
||||||
</x-filament::icon-button>
|
</x-filament::icon-button>
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
@@ -187,7 +190,8 @@
|
|||||||
|
|
||||||
<x-filament::modal slide-over width="4xl" icon="phosphor-sliders" title="Comparing Bookmaker">
|
<x-filament::modal slide-over width="4xl" icon="phosphor-sliders" title="Comparing Bookmaker">
|
||||||
<x-slot name="trigger">
|
<x-slot name="trigger">
|
||||||
<x-filament::icon-button icon="phosphor-sliders" color="gray" class="my-auto" title="Comparing Bookmaker">
|
<x-filament::icon-button icon="phosphor-sliders" color="gray" class="my-auto"
|
||||||
|
title="Comparing Bookmaker">
|
||||||
</x-filament::icon-button>
|
</x-filament::icon-button>
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
@@ -196,7 +200,7 @@
|
|||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
@livewire('comparing-method')
|
@livewire('comparing-method')
|
||||||
|
|
||||||
</x-filament::modal>
|
</x-filament::modal>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@@ -46,29 +46,47 @@ case "$1" in
|
|||||||
php artisan nuh --d --t --f 1
|
php artisan nuh --d --t --f 1
|
||||||
php artisan nuh --d --t --f 2
|
php artisan nuh --d --t --f 2
|
||||||
php artisan nuh --d --t --f 3
|
php artisan nuh --d --t --f 3
|
||||||
|
php artisan nuh --d --t --f 20
|
||||||
|
php artisan nuh --d --t --f 21
|
||||||
|
php artisan nuh --d --t --f 22
|
||||||
php artisan nuh --d --f 4
|
php artisan nuh --d --f 4
|
||||||
php artisan nuh --d --f 5
|
php artisan nuh --d --f 5
|
||||||
php artisan nuh --d --f 6
|
php artisan nuh --d --f 6
|
||||||
php artisan nuh --d --f 8
|
php artisan nuh --d --f 8
|
||||||
php artisan nuh --d --f 9
|
php artisan nuh --d --f 9
|
||||||
php artisan nuh --d --f 10
|
php artisan nuh --d --f 10
|
||||||
php artisan nuh --d --f 11
|
php artisan nuh --d --f 11
|
||||||
php artisan nuh --d --f 12
|
php artisan nuh --d --f 12
|
||||||
php artisan nuh --d --f 16
|
php artisan nuh --d --f 13
|
||||||
|
php artisan nuh --d --f 14
|
||||||
|
php artisan nuh --d --f 15
|
||||||
|
php artisan nuh --d --f 16
|
||||||
|
php artisan nuh --d --f 17
|
||||||
|
php artisan nuh --d --f 18
|
||||||
|
php artisan nuh --d --f 19
|
||||||
;;
|
;;
|
||||||
"10")
|
"10")
|
||||||
php artisan nuh --d --t --f 1
|
php artisan nuh --d --t --f 1
|
||||||
php artisan nuh --d --t --f 2
|
php artisan nuh --d --t --f 2
|
||||||
php artisan nuh --d --t --f 3
|
php artisan nuh --d --t --f 3
|
||||||
|
php artisan nuh --d --t --f 20
|
||||||
|
php artisan nuh --d --t --f 21
|
||||||
|
php artisan nuh --d --t --f 22
|
||||||
php artisan nuh --d --f 4
|
php artisan nuh --d --f 4
|
||||||
php artisan nuh --d --f 5
|
php artisan nuh --d --f 5
|
||||||
php artisan nuh --d --f 6
|
php artisan nuh --d --f 6
|
||||||
php artisan nuh --d --f 8
|
php artisan nuh --d --f --p 8
|
||||||
php artisan nuh --d --f 9
|
php artisan nuh --d --f --p 9
|
||||||
php artisan nuh --d --f --p 10
|
php artisan nuh --d --f --p 10
|
||||||
php artisan nuh --d --f --p 11
|
php artisan nuh --d --f --p 11
|
||||||
php artisan nuh --d --f --p 12
|
php artisan nuh --d --f --p 12
|
||||||
|
php artisan nuh --d --f --p 13
|
||||||
|
php artisan nuh --d --f --p 14
|
||||||
|
php artisan nuh --d --f --p 15
|
||||||
php artisan nuh --d --f --p 16
|
php artisan nuh --d --f --p 16
|
||||||
|
php artisan nuh --d --f --p 17
|
||||||
|
php artisan nuh --d --f --p 18
|
||||||
|
php artisan nuh --d --f --p 19
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in new issue
Block a user