schema([ Forms\Components\TextInput::make('title')->label('标题')->disabled(), Forms\Components\TextInput::make('type')->label('题型')->disabled(), Forms\Components\TextInput::make('question_count')->label('题量')->disabled(), Forms\Components\Textarea::make('raw_markdown')->label('区块 Markdown')->rows(12)->disabled(), ]); } public static function table(Table $table): Table { return $table ->columns([ Tables\Columns\TextColumn::make('paper.title')->label('卷子'), Tables\Columns\TextColumn::make('order')->label('顺序')->sortable(), Tables\Columns\TextColumn::make('title')->label('区块标题')->searchable(), Tables\Columns\TextColumn::make('type')->label('题型'), Tables\Columns\TextColumn::make('question_count')->label('题量'), ]) ->actions([ ViewAction::make(), ]); } public static function getRelations(): array { return [ PreQuestionCandidatesRelationManager::class, ]; } public static function getPages(): array { return [ 'index' => Pages\ListPaperParts::route('/'), 'view' => Pages\ViewPaperPart::route('/{record}'), ]; } }