Miscarriage

I'm currently going through a misscarriage, I was 5 weeks. This is my first one so I'm completely clueless. When can we start trying for a baby again? When is it safe to do so x