mapper new
This commit is contained in:
1 parent
fe7fc0accf
commit
e27bba1644
12 files changed
+179
-107
No files matched your search
@@ -57,14 +57,13 @@ class EventsTable
|
||||
public static function load_multiline_bookmaker()
|
||||
{
|
||||
$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')
|
||||
->orderBy('sort')
|
||||
->get();
|
||||
|
||||
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()
|
||||
->filters([
|
||||
Filter::make('events')
|
||||
->columns(9)->columnSpan(9)
|
||||
->columns(5)->columnSpan(5)
|
||||
->schema([
|
||||
Select::make(name: 'sport_id')
|
||||
->default(auth()->user()->id)
|
||||
->default(auth()->user()->sport_id)
|
||||
->prefixIcon(auth()->user()->sport->icon)
|
||||
->selectablePlaceholder(false)
|
||||
->hiddenLabel()
|
||||
@@ -239,7 +238,6 @@ class EventsTable
|
||||
|
||||
}),
|
||||
Select::make(name: 'country_id')
|
||||
->columnSpan(2)
|
||||
->hidden(fn () => auth()->user()->sport_id == 5)
|
||||
->placeholder('Country')
|
||||
->hiddenLabel()
|
||||
@@ -259,7 +257,6 @@ class EventsTable
|
||||
}),
|
||||
Select::make('competition_group_id')
|
||||
->hidden(fn () => auth()->user()->sport_id == 5)
|
||||
->columnSpan(2)
|
||||
->placeholder('League')
|
||||
->hiddenLabel()
|
||||
->label('')
|
||||
@@ -281,7 +278,6 @@ class EventsTable
|
||||
})
|
||||
->live(),
|
||||
Select::make('group_id')
|
||||
->columnSpan(2)
|
||||
->visible(fn () => auth()->user()->sport_id == 5)
|
||||
->placeholder('Tournament')
|
||||
->hiddenLabel()
|
||||
@@ -304,7 +300,7 @@ class EventsTable
|
||||
})
|
||||
->live(),
|
||||
DateRangePicker::make('starttime_period')
|
||||
->columnSpan(4)
|
||||
->columnSpan(2)
|
||||
->displayFormat('d M Y')
|
||||
->minDate(now())
|
||||
->hiddenLabel()
|
||||
|
||||
Reference in new issue
Block a user