Mutli-Level Tree Table

Have anyone ever run into something simillar to a mutli-level tree table? Actually, three level, as in my example (attachement):


Mutli-level Tree Table.png

I’m looking for any solution that will let me easily render such table, where my users see table with three levels of details and collapse/expand two lover levels.

I’m going to write such myself, but before wasting quite some time I just wanted to ask, if any one heard about something similar or something that would save me a bit of work?

Thank you in advance.

Are you looking for a solution to store this tree in the DB or merely for the front end trickery?

Frontend only. I’ll feed the table with data from DB, but tree structure will be always the same and it will be build using foreach, won’t be taken directly from DB.