Don't have code, best got at this point, is pseudocode...
To further flesh out what was thinking, does this sound about right?
Missing steps or sub-steps? How to further flesh out each step/sub-step?
Each of the collapsible tables should have a class. I’d need to;
Create a button in dashboard.ejs that calls a function. This function should:
Use a global boolean declared at the start of Dashboard.js to indicate if the tabs should be OPEN or closed
Get an array of all of the elements with the above class
For each element, check if it is currently open or closed,