The only relationship in the workplace is a working relationship, whether it's between a superior and a subordinate, or between coworkers. Whether that relationship is good or bad, it's all the same.
As for layoffs, the most widely circulated statement in the workplace is that after 35 years old, you are a "waste man"; 35% of middle-aged people are always the first to be laid off.
If you want to go smoothly in the workplace, you must understand some of the most basic workplace rules. Otherwise, you may lose your job and ruin your future.