Wonder how many more posts there will be from people who haven't read this solution?
But is it the only solution? Oil leak could be a cracked housing, or could just be gasket failure? Probably needs a new belt too, if the old one is not just coated in oil to be slippery but also, worn out. That's roughly $120 to $275 in parts (IF available), maybe less if there's a transmission rebuild kit.
Just sayin'... the average new, inferior, washer is potentially triple that cost, and may last no longer than the remaining life in the old one before it too, needs repaired or replaced. Lots of variables... if it has a drum brake, that too, may be another failure point that's a more involved repair than the more easily swapped components. At least that's ONE virtue of my newer washer, they just designed it to keep spinning till it stops rather than having any brake... but then it has to have a door safety interlock (flimsy plastic at that) that is another failure point, but far easier to replace.