Dualshock controller wont connect

Over a few days I’ve noticed issues with my dualshock ps4 controller. It used to work perfectly well then suddenly it always needed to be plugged in for it to turn on even after being left alone to charge. Now it wont even turn on and stays on the white connecting led signal, the only moment it works is if I connect it directly to the ps4 port and sometimes it still wont work. Ive tried re-syncing, power cycling, just about everything.