2019-11-24 14:32:58 +08:00
|
|
|
<li class="nav-item {{ item.classes|join(' ') }}">
|
2019-09-17 23:10:44 +08:00
|
|
|
{% if item.children %}
|
2019-12-04 16:45:09 +08:00
|
|
|
<a class="nav-link {{ item.active ? 'active' }}" href="#">
|
2019-11-24 14:32:58 +08:00
|
|
|
<i class="nav-icon fas {{ item.icon }}"></i>
|
|
|
|
<p>{{ trans(item.title) }}</p>
|
|
|
|
<i class="right fas fa-angle-left"></i>
|
2019-09-17 23:10:44 +08:00
|
|
|
</a>
|
2019-11-24 14:32:58 +08:00
|
|
|
<ul class="nav nav-treeview">
|
2019-09-17 23:10:44 +08:00
|
|
|
{% for child in item.children %}
|
|
|
|
{{ include('shared.side-menu-item', {item: child}) }}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<a
|
|
|
|
href="{{ url(item.link) }}"
|
2019-12-04 16:45:09 +08:00
|
|
|
class="nav-link {{ item.active ? 'active' }}"
|
2019-09-17 23:10:44 +08:00
|
|
|
{% if attribute(item, 'new-tab') %}
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
{% endif %}
|
|
|
|
>
|
2019-11-24 14:32:58 +08:00
|
|
|
<i class="nav-icon {{ item.icon == 'fa-circle' ? 'far' : 'fas' }} {{ item.icon }}"></i>
|
|
|
|
<p>{{ trans(item.title) }}</p>
|
2019-09-17 23:10:44 +08:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|