Health conditions of all kinds (depression, pregnancy, obesity, etc.) are just another filter condition like bad credit, arrest records, substandard education, etc. that are used to winnow the labor force.
Only in the tech bubble (in the sense of a world temporarily apart) where skilled labor is, at the moment, relatively scarce, are these factors overlooked when hiring for "career" positions.
This sucks, and I hate it, but I'm not blind to reality. In a world where most people work for a living, and where there are fewer jobs than people, having anything "wrong" with oneself is a huge liability.
So I had to stop - because I have three children and I need to cover the expenses for them as a priority. They are the only thing that keeps me here, as I too had to do what you did.
Explain, if they're old enough. Find help (online or offline) in finding out at what you can explain to them. Find help to get rid of your stories without having to tell them to your kids if you don't need that.
Being afraid comes with the territory I guess. Acknowledge that. Accept it. Explain it. Explain that you cannot always acknowledge or accept it. Accept that you cannot always explain it.
Do your best, how messy it is.
And maybe you know all this, maybe you do all this. I don't know you, don't know your story. But it is as it is. You cannot give them another father. You probably cannot change how you feel. So they have to live with it, as you, and find a way.
The other goes back and forth. Maddening reasons and ideas to justify going on and off.
Along the way though I was able to find things that helped very noticeably. Some were physical, some were mind related, some were social, etc...
Bits and pieces that when put together did make a difference. Learning to take care of myself and remember to continue doing those things that were healthy for me has probably been a benefit of age as well.
The pieces of my puzzle: Therapy, hypnotherapy, dance (Argentine Tango), exercise, sleep, meditation, hydration, light levels, type of work, healthy relationships.
This was huge: Someone pointed out how I loved myself enough to be willing to destroy myself with such violence. Quite a shift in perspective! The realization of that love for self helped me switch to an amazingly hopeful resourceful place. The shift is difficult to describe though very real for me.
EDIT: Added to the puzzle pieces list.
A friend happened to call a few days later. He convinced me to schedule a doctor's appointment that day. Tip: The receptionist will find a slot the same day when you tell them you had to give your guns to a friend just in case. Be honest with them.
Sleep, light, medication,therapy, nutrition, hydration, friends you can call. Figuring it all out can be complex. Getting help is vital so keep looking until you find the help. Finding the right therapist may take a while.
It took me almost 10 years before I stopped having suicidal thoughts after my near miss. Another 5 years before I figured out one of the main reasons for what I was experiencing. Nearly 25 years total of the pain of depression because I figured I could handle it myself.
I was wrong.
Get the help.