Hi

I want to create a custom dropdown mega menu that shows the Listing Type as the parent and categories as children.
Does anyone knows how I can achieve this or has even done it in flynax?
I am thinking I need a foreach loop but have no idea variables being passed to view in flynax.

<ul>
{foreach}
<li>Listing Type
<ul>
{foreach}
<li>Category</li>
{/foreach}
</ul>
</li>
{/foreach}
</ul>

Please someone help.