Dad crushed to death in lift as a result of safety breaches - court hears