How do I do this?

How do I do this?

I have the following code jQuery + Bootstrap:

https://jsfiddle.net/a27rffb2/2/

Problem Statement: The toggle switch should be checked only if all option panels are shown (When you click on option panel to open individually)

Thanks for reviewing!!