schema([ Toggle::make('is_active') ->label('Active?') ->required(), TextInput::make('server_name') ->required() ->maxLength(255), Select::make('geo_code') ->required() ->label('GEO Location') ->options(GeoLocation::select()), TextInput::make('host') ->required() ->maxLength(255), TextInput::make('http_port') ->required() ->numeric(), TextInput::make('dicom_port') ->required() ->numeric(), TextInput::make('rest_api_endpoint') ->required() ->maxLength(255), TextInput::make('ae_title') ->maxLength(255), TextInput::make('username') ->maxLength(255), TextInput::make('password') ->password() ->maxLength(255), TextInput::make('wado_path') ->maxLength(255), TextInput::make('stone_viewer_path') ->maxLength(255), TextInput::make('ohif_viewer_path') ->maxLength(255), TextInput::make('meddream_viewer_path') ->maxLength(255), TextInput::make('organization_id') ->numeric(), TextInput::make('department_id') ->numeric(), ]); } public static function table(Table $table): Table { return $table ->columns([ IconColumn::make('is_active') ->label('') ->boolean(), TextColumn::make('server_name') ->label('Name') ->searchable(), TextColumn::make('geo_code') ->label('GEO') ->searchable(), TextColumn::make('host') ->searchable(), TextColumn::make('http_port') ->label('WADO'), TextColumn::make('dicom_port') ->label('DICOM'), TextColumn::make('rest_api_endpoint') ->label('REST') ->searchable(), TextColumn::make('ae_title') ->label('AET') ->searchable(), TextColumn::make('created_at') ->dateTime() ->sortable() ->toggleable(isToggledHiddenByDefault: true), TextColumn::make('updated_at') ->dateTime() ->sortable() ->toggleable(isToggledHiddenByDefault: true), ]) ->filters([ // ]) ->actions([ Tables\Actions\ViewAction::make(), Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListDicomServers::route('/'), 'create' => Pages\CreateDicomServer::route('/create'), 'view' => Pages\ViewDicomServer::route('/{record}'), 'edit' => Pages\EditDicomServer::route('/{record}/edit'), ]; } }