Should I repair my car before trade in?

I have a 2010 Audi A3 that needs $4k in repairs. Is it better to make repairs and then trade in for another car, or bring it in as is with $4k cash to used as a down payment? Issues are some wiring, engine oil leak and ABS module and software update needed.