best way to repair this?

okay so is this worth working on, or should i just replace it?

and this too