There are several ways to turn off a PS4 controller, including holding the PS button for a few moments, using the Quick Menu, ...
To charge a PS4 controller, you should connect it to the PS4 console with a USB cable while the console is on or in Rest Mode ...