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