A father went off the rails when his former partner refused to let him see his child.
Trevor Raven turned to gambling drugs and alcohol and stole a laptop computer from his workplace.
Raven, 30, of Freckleton Street, Blackpool, pleaded guilty to theft of a £749 Apple Mac Pro from Currys PC World.
He was fined £185 with £85 costs and ordered to pay £749 compensation plus £20 victims’ surcharge by Blackpool magistrates.
Martine Connah, prosecuting, said Raven borrowed a refurbished laptop from his workplace, as was common procedure.
He said he had already told his employers he had a gambling problem.
On February 15 he stopped going into work and he was dismissed at the beginning of March.
The company asked for the return of the laptop but Raven maintained he had given it back.
When interviewed by police Raven admitted selling the laptop for £150 to pay back a drug debt as he was worried about his safety.
He was given a caution by the police on the condition he paid compensation to his former firm for the laptop, but he could not pay in the time he was given.
Jessica Partington, defending, said her client, who had no previous convictions, said he turned to gambling drugs and alcohol when his ex would not let him see his child.
Raven had now turned his life around.
He no longer gambled, took drugs or drank and he had a job caring for vulnerable adults.