{% if menus and type(menus) == 'table' then%}
{% for index, menu in ipairs(menus) do %}
| {*menu.id*} |
{*menu.icon*} |
{% if type(menu.list) == 'table' then %}
{% end %}{{locale[menu.name] or menu.name}}
|
{{ menu.url or '-' }} |
|
{% if type(menu.list) == 'table' then%}
{% for index, sub in ipairs(menu.list) do%}
| {*sub.id*} |
{*sub.icon*} |
|------->
{% if type(sub.list) == 'table' then %}
{% end %}
{{locale[sub.name] or sub.name}}
|
{{ sub.url or '-' }} |
|
{% if type(sub.list) == 'table' then %}
{% for index, it in ipairs(sub.list) do %}
| {*it.id*} |
{*it.icon*} |
|-------> {{locale[it.name] or it.name}}
|
{*it.url*} |
|
{% end %}
{% end%}
{% end %}
{% end %}
{% end %}
{% end %}