Have awfull insomnia

Have always had sleep problems but now I wake up with panic attacks. I'm so depressed and dread going to bed,I also have a phobia of the dark. Husband is very understanding but do not want to keep waking him up. Would like to hear from anyone who suffers from this awful problem