This isn't 'women's health' related but?? My toenail fell off??

Isabella

A while ago the bottom right corner of my toe nail turned purple and broke off. Then it grew out and the nail that grew from the right corner has been yellow and thick. The other half of the nail is fine but this yellow part is not attached to the skin and hurts sometimes. This is what it looks like now.

Will it look like this forever? How do I fix it?