schema([ Select::make('vehicle') ->label('Vehicle') ->options(Vehicles::all()->pluck('owner', 'id')) ->searchable(), TextInput::make('pc_count'), ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('pc_count')->label('PC Vote Count'), TextColumn::make('vehicles.owner')->label('Vehicle Number'), TextColumn::make('vehicles.year')->label('Year'), TextColumn::make('vehicles.make')->label('Make'), TextColumn::make('vehicles.model')->label('Model'), ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\DeleteBulkAction::make(), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListPeoplesChoices::route('/'), 'create' => Pages\CreatePeoplesChoice::route('/create'), 'edit' => Pages\EditPeoplesChoice::route('/{record}/edit'), ]; } }