This is a rotary head JOBS with milling spindle.
Problem: the nut was deformed, which damaged the seal and there was a leakage of oil into the rotary head cavity.
Solution: replacing the nut, seals, removing the consequences of oil leakage. Assembly and testing.