Take it back to the shop and get a replacement iPhone or get your money back. This appears to be a hardware issue and no amount of effort and processes will fix it. It needs repair. Take the iPhone back.
Do you have any kinds of iCloud unlock issue on any Apple products and others contact joshuahuslt3310 on Instagram or text him on WhatsApp +1 (747) 322‑0861 I’m sure he will help you out about it, he do respond fast at affordable price and it’s negotiable