How to create a toggle button that can turn on wifi and off while it displays on and off

How can i create a switch that can turn on wifi,bluetooth,torch and it can display on when on and off when turned off