removed shield use superadmin

This commit is contained in:
salam committed 2025-12-01 07:42:54 +01:00
1 parent 7fd7f706bc
commit 419148cd18
60 files changed
+611 -2363

No files matched your search

@@ -2,13 +2,10 @@
namespace App\Filament\Resources\Supervisors\Schemas;
use App\Models\Bookmaker;
use App\Models\Sport;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Schemas\Components\Fieldset;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Schema;
class SupervisorForm
@@ -17,24 +14,10 @@ class SupervisorForm
{
return $schema
->components([
Toggle::make('is_cron')->columns(2),
TextInput::make('name')
->required()
->columnSpan(2),
Select::make('type')
->options([
'Grapper' => 'Grapper',
'Comparatore' => 'Comparatore',
])
->default('Grapper')
->selectablePlaceholder(false),
Select::make('filetype')
->label('File Type')
->options([
'json' => 'json',
'xml' => 'xml',
])
->default('json')
->selectablePlaceholder(false),
Select::make('provider_id')
->relationship('provider', 'name')
->required()
@@ -42,18 +25,9 @@ class SupervisorForm
Select::make('sport_id')
->options(Sport::query()->where('is_active', 1)->pluck('name', 'id'))
->nullable(),
Select::make('bookmaker_id')
->options(Bookmaker::query()->where('is_active', 1)->pluck('name', 'id'))
->selectablePlaceholder(true),
Fieldset::make('Supervisor or Cron Toggle')
->schema([
Toggle::make('is_cron')->live(),
TextInput::make('sleep')
->label('Sleep between loops')
->hidden(fn (Get $get): bool => $get('is_cron'))
->numeric()
->default(30),
])->columnSpan(2),
TextInput::make('sleep'),
TextInput::make('maxsconds')->label('Seconds till throwing an error'),
]);
}
}