mapper wip
This commit is contained in:
1 parent
ba6c2263e3
commit
02712ec610
27 files changed
+1070
-158
No files matched your search
@@ -5,7 +5,6 @@ namespace App\Filament\Resources\Supervisors\Schemas;
|
||||
use App\Models\Sport;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
class SupervisorForm
|
||||
@@ -14,20 +13,21 @@ class SupervisorForm
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Toggle::make('is_cron')->columns(2),
|
||||
TextInput::make('name')
|
||||
->required()
|
||||
->columnSpan(2),
|
||||
Select::make('provider_id')
|
||||
->relationship('provider', 'name')
|
||||
->required()
|
||||
->preload(),
|
||||
Select::make('sport_id')
|
||||
->options(Sport::query()->where('is_active', 1)->pluck('name', 'id'))
|
||||
->options(function () {
|
||||
$res = Sport::where('is_active', 1)->pluck('name', 'id')->toArray();
|
||||
array_unshift($res, 'All');
|
||||
|
||||
return $res;
|
||||
})
|
||||
->nullable(),
|
||||
|
||||
TextInput::make('sleep'),
|
||||
TextInput::make('maxsconds')->label('Seconds till throwing an error'),
|
||||
TextInput::make('sleep')->default(15),
|
||||
TextInput::make('maxsconds')->label('Seconds till throwing an error')->default(1800),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ class SupervisorsTable
|
||||
->options([
|
||||
'Fixtures' => 'Fixtures',
|
||||
'Odds' => 'Odds',
|
||||
'IdMapper' => 'IdMapper',
|
||||
]),
|
||||
TextColumn::make('provider.name')->badge(),
|
||||
TextColumn::make('sport.name')->label('Sport'),
|
||||
|
||||
Reference in new issue
Block a user