A restaurant worker had delusions his boss was secretly filming him and almost killed him in a frenzied knife attack, Luton Crown Court has heard.
Erdogan Dogan planned the attack at Southern Fried Chicken restaurant in Biggleswade, Beds, the court heard.
Seyfittin Altun "fought for his life" said prosecutor Christopher Donnellan.
Dogan, who pleaded guilty to grievous bodily harm, has been diagnosed as a paranoid schizophrenic and was sent indefinitely to a secure hospital.
His denial of attempted murder was accepted.
Judge Terence Maher made a hospital order without limit of time which means Dogan cannot be released without permission from the Home Office.
Weighted down on floor
Luton Crown Court heard that both men struggled from room to room, knocking a door off its hinges.
The victim managed to get to the back door but Dogan had locked it. He was then weighted down on the floor with a sack of vegetables while Dogan tried to strangle him with cable.
Two delivery men arrived and heard his screams for help.
Dogan stopped the attack and ran off, but was tracked by a police helicopter and caught.
Mr Donnellan said Mr Altun had intended installing CCTV cameras in the shop.
"That may have been the trigger for the attack," said Mr Donnellan.