No employee shall be laid off or discharged for refusing to perform work in the performance of which this code, including Section 6400, any occupational safety or health standard or any safety order of the division or standards board will be violated, where the violation would create a real and apparent hazard to the employee or his or her fellow employees. Any employee who is laid off or discharged in violation of this section or is otherwise not paid because he or she refused to perform work in the performance of which this code, any occupational safety or health standard or any safety order of the division or standards board will be violated and where the violation would create a real and apparent hazard to the employee or his or her fellow employees shall have a right of action for wages for the time the employee is without work as a result of the layoff or discharge.