Generally, an employee who voluntarily leaves a job will not be eligible for unemployment benefits. However, an employee who quits due to "good cause" or a "constructive discharge" may qualify. For example, an employee who quits due to illegal workplace behavior, such as discrimination, abusive behavior, lack of payment, or a significant reduction in hours, benefits, or pay rate, may still be entitled to receive unemployment benefits.
Before quitting, you should make reasonable attempts to resolve any problems you are having at work with your employer. If you have an employee handbook, look at it very carefully, and make sure that you have complied with any policies applicable to you. Usually, there is a section in the employee handbook that tells you what to do when you are having problems at work and it is important that you follow the requirements listed in the handbook, especially if you have a potential lawsuit for illegal behavior your employer took.