How can I take care of my depression from a breakup?

I have been falling into a deep depression where I can no function during the day and night. The only time I am at peace is when I'm asleep. If I am with friends, family, at work, and mainly alone, I cannot think straight. I no longer feel like myself.