I was hoping to get some additional information about the "Nested Layouts" in InertiaJS. The documentation is very scarce on it and I can barely find any sort of examples showing how it works, and the documentation on the site isn't very descriptive about how it works or what the code is doing. (<https://inertiajs.com/pages#persistent-layouts>)

Basically I want to achieve functionality similar to in this tweet here;
<https://twitter.com/klaasgeldof/status/1181198792995037184> 

Hopefully someone can provide some extra information because I've been having a lot of trouble getting this working correctly.