@if ($item['submenu'] == [])
 <li class="nav-item">
    <a href="{{ url($item['slug']) }}" class="nav-link {{ (request()->is($item['slug'].'*')) ? 'active' : '' }}" >
      <i class="{{ $item['icon_text'] }}"></i>
      <span>
        {{ $item['name'] }}
      </span>
    </a>
  </li>
@else
    <li class="nav-item nav-item-submenu">
        <a href="#" class="nav-link"><i class="{{ $item['icon_text'] }}"></i> <span>{{ $item['name'] }}</span></a>
        <ul class="nav nav-group-sub" data-submenu-title="{{ $item['name'] }}">
            @foreach ($item['submenu'] as $submenu)
                @if ($submenu['submenu'] == [])
                    <li class="nav-item"><a href="{{ url($submenu['slug']) }}" class="nav-link">
                    	<i class="{{ $submenu['icon_text'] }}"></i> {{ $submenu['name'] }}</a></li>
                @else
                    @include('layouts.menu-items.items', [ 'item' => $submenu ])
                @endif
            @endforeach
        </ul>
      </li>
@endif