I am very sorry you are struggling. These struggles likely make you very strong and resilient.
You are only 30 and happier times are ahead.
You still have time to find dream job, happy relationships (I am sorry I read about your marriage and personally think you deserve better), better friends etc At 30 your whole life is still ahead of you. You are very bright and insightful