Weird looking nail?

So my nail has decided to peel up from the bottom and half of it has come off, the cuticle has dried up and come off and now this has happened. Why has this happened and what can I do for it to grow back? I’ve been using moisturiser a couple times a day where I can. Any advice would be appreciated.

Would like to add that I have eczema on the same hand/finger.