schema([ Select::make('judge') ->label('Judge') ->options(Judges::all()->pluck('judge_number', 'id')) ->searchable(), Select::make('vehicle') ->label('Vehicle') ->options(Vehicles::all()->pluck('owner', 'id')) ->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'), TextColumn::make('scoredVehicle.owner')->label('Vehicle Number'), TextColumn::make('overall_score')->label('Score'), ]) ->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'), ]; } }