S7 Edge stuck on loading screen with Samsung logo
It's been a while since I last owned a Samsung, but my best guess would be to try and flash a new ROM using Odin. Here's a link that explains how to do this.
https://forums.androidcentral.com/ambassador-guides-tips-how-tos/499009-guide-samsung-how-flash-stock-rom-via-odin-new-interface.html

on Sammobile, you'll find the original Samsung ROMs, which are normally safe to flash as long as you pick the correct one for your device.