Engine replacement

I have a 1999 vw passat 1.8 turbo with a blown engine. The car has 160k on it and I have a quote of about $3500.00 to replace it. Should I just salvage the car for parts or repair it?

In what kind of shape is the rest of the car?