schema([ Select::make('judge') ->label('Judge') ->options(Judges::all()->pluck('judge_number', 'id')) ->searchable(), Select::make('vehicle') ->label('Vehicle') ->options(Vehicles::all()->pluck('owner', 'owner')) ->searchable(), TextInput::make('overall_score') ->label('Overall Score'), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('judge.judge_number')->label('Judge')->sortable(), TextColumn::make('scoredVehicle.owner')->label('Vehicle Number')->sortable(), TextColumn::make('overall_score')->label('Score')->sortable(), ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\DeleteBulkAction::make(), ]); } public static function getRelations(): array { return [ RelationManagers\JudgeRelationManager::class, RelationManagers\ScoredVehicleRelationManager::class, ]; } public static function getPages(): array { return [ 'index' => Pages\ListVehicleScores::route('/'), 'create' => Pages\CreateVehicleScores::route('/create'), 'edit' => Pages\EditVehicleScores::route('/{record}/edit'), ]; } }