Everything happens for a reason. People change so you can learn to let go. Things go wrong so you can appreciate them when they go right.
Eventually you’ll end up where you need to be, with who you’re meant to be with, and doing what you should be doing. Patience is the key.