{% if item.hasChildren() and (options.depth is not same as 0) and item.getDisplayChildren() %}
{% for child in item.getChildren() %}
{% if child.isDisplayed() %}
{% set extras = child.getExtras() %}
{% set labelAttributes = child.getLabelAttributes() %}
{% set labelClasses = (labelAttributes.class is not defined) ? 'nav-item-name' : labelAttributes.class ~ ' nav-item-name' %}
{% if child.hasChildren() and child.getDisplayChildren() %}
{% if extras.iconClass is defined and extras.iconClass is not empty %}
{% endif %}
{{ child.getLabel() | trans | purify }}
{% for grandchild in child.getChildren() %}
{% if grandchild.isDisplayed() %}