schema([ Forms\Components\TextInput::make('name')->required()->label(__('label.name')), Forms\Components\TextInput::make('priority')->integer()->label(__('label.priority'))->default(0), ])->columns(1); } public static function table(Table $table): Table { return $table ->columns([ Tables\Columns\TextColumn::make('id'), Tables\Columns\TextColumn::make('name')->label(__('label.name')), Tables\Columns\TextColumn::make('priority')->label(__('label.priority'))->sortable(), Tables\Columns\TextColumn::make('created_at')->label(__('label.created_at')), ]) ->defaultSort('priority', 'desc') ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), Tables\Actions\DeleteAction::make(), ]) ->bulkActions([ Tables\Actions\DeleteBulkAction::make(), ]); } public static function getPages(): array { return [ 'index' => Pages\ManageTorrentDenyReasons::route('/'), ]; } }