Should I stay or leave?

Ive been with this guy for almost two years and it’s been very on and off, so not exactly two years. Anyways, we’ve had many problems throughout the relationship and I felt like it was just a side effect of being young. Some of the issues were: I didn’t know but he texted this girl he used to ask to fuck, but all he said was happy birthday... I don’t have a problem but he never told me? He also really like this one girl and even got her social WHILE we were dating. When I noticed, I saw that her messages were muted so he wouldn’t get any notifications. He also wasn’t really into the relationship and even friends pointed out that he looked as if he didn’t care. He constantly stares at other girls. It also feels as if what I say and my opinion doesn’t matter to him at all and it’s disregarded. He also has anger issues and has unintentionally hurt me in the process... but fast forward to now, it’s simmered down a bit but I definitely feel the love and affection. And yes I brought it all up to him and we talked about it and he said he would change but never did. It’s different now and I’m wondering if I should keep trying or should just leave him... please help