A drug dealer was caught by police by chance after they went to assist council trading standards officers as part of an investigation into a dog breeding business.
Andrew Bradnum refused to reveal the PIN for his phone but officers were able to gain access to the device, and on it found messages relating to the buying, selling and delivery of the Class A drug - including one message where the idea of exchanging coke for oral sex was mentioned.
Swansea Crown Court heard police also found an advert the defendant had posted on social media that he was looking for someone to work for him as a runner delivering drugs with the requirement that the new employee be a "grafter" and "not a grass".