A pizza shop owner said he wants to leave the UK after suffering racist abuse while his business was attacked, a court heard.