There are no beaches in Boquete because the town is up in the mountains. David is not on the coastline so it doesn't have beaches.
Going down south to the Pacific side, the closest beach to Boquete is two hours away and is called Las Lajas. It is a simple beach with a few restaurants so it is better to take your own food because the beach is big and your spot on the beach may not be close to restaurants or the restaurants might be closed.
Another beach near Boquete is La Barqueta, which is a 2-hour and 30-minute drive from Boquete. If you are bringing kids to this beach, you have to be careful because the waves create new sand banks and the holes beside the banks are deep.
Las Lajas and La Barqueta are both a part of the Chiriquí province.
Boca Chica is a little town with a port where you can take a boat to go to different islands like Isla Gamez and Isla Bolaños. The beach of Isla Bolaños is smaller than the beach of Isla Gamez, but both are so beautiful that it feels like the sun is brighter in these islands than the sunshine in Las Lajas and La Barqueta. Boca Chica is a two-hour drive from Boquete.
Up north on the Caribbean side is Bocas del Toro. To get to Bocas del Toro from Boquete, you can drive for five hours or take a bus for seven hours to Port Almirante where there are boats that take visitors to Bocas del Toro. You can park your car at the port and take a 30 or 45-minute boat ride to Isla Colón in Bocas. The trip to Bocas del Toro is not a day trip because it's too far and you would need to spend at least three days there.
(Las Lajas beach, Panama, pictured. )