When you go hoarse, nature is trying to tell you something. Rest the voice. Vocal training by a reliable teacher really helps save your voice. Physical fitness is crucial for a singing career. Dance, Yoga, weight-training, aerobics may bring your voice back over time. Your voice in connected to the rest of your body.
Watch how you hold your head. There's a bad habit of throwing your head back when you sing that can cause problems.
Coax your voice gently and don't force it. The worst thing you can do when you panic because the voice "isn't there" is to beat it up. Lifestyle is crucial. Relax when you sing because pushing and tenseness works against you. Music flows like a river and is not blown out of a cannon.
Been there many times.
Frank Hamilton