This package needs a unique route structure. It is different than the Location-Based Routes (TIPOFF/locations#85) and is really dependent on the Market (TIPOFF/locations#41). The easy part is that there is a fixed slug of "rooms" that will always be in the 2nd segment. It will either be under /company or under the market slug.
Under /company/rooms/{themes:slug} are dynamic routes of all the Themes by their slugs. Under /{market}/rooms/{market_scoped_themes:slug} are just the themes in that Market. They are pulled from the unique Themes in the Rooms model which is just Theme to Location. Some Locations have multiple Rooms of the same Theme and Markets may have multiple Locations.
Here are the routes:
- /company/rooms
- /company/rooms/{themes:slug}
- /{market}/rooms
- /{market}/rooms/{market_scoped_themes:slug}
We also need different Views for the /company/rooms page and the /{market}/rooms page.
This package needs a unique route structure. It is different than the Location-Based Routes (TIPOFF/locations#85) and is really dependent on the Market (TIPOFF/locations#41). The easy part is that there is a fixed slug of "rooms" that will always be in the 2nd segment. It will either be under /company or under the market slug.
Under /company/rooms/{themes:slug} are dynamic routes of all the Themes by their slugs. Under /{market}/rooms/{market_scoped_themes:slug} are just the themes in that Market. They are pulled from the unique Themes in the Rooms model which is just Theme to Location. Some Locations have multiple Rooms of the same Theme and Markets may have multiple Locations.
Here are the routes:
We also need different Views for the /company/rooms page and the /{market}/rooms page.