Brown spotting after my period ended and it's been going on for a full week. ?

I don't know what this is, but it's painful in my pelvic area right under my belly button. I had my period 2 weeks ago and am still having brown spotting to this day! It hurts to do so many things. Idk what it is?!