@foreach($menus as $menu)
    <li data-level="{{ $tier }}" id="menu_{{ $menu['slug'] }}"><a
            @if(count($menu['child']) == 0) _href="{{ $menu['path'] }}"
            @else href="javascript:void(0);" @endif style="padding-left:{{ $tier*20 }}px">
            <i class="layui-icon layui-icon-{{ $menu['icon'] }}"></i>
            <cite>{{ $menu['title'] }}</cite>
            @if(count($menu['child']) > 0)
                <i class="iconfont nav_right">&#xe697;</i>
            @endif
        </a>
        @if(count($menu['child']) > 0)
            <ul class="sub-menu">
                @include('admin::component.side_menu', ['menus' => $menu['child'], 'tier' => $tier + 1])
            </ul>
        @endif
    </li>
@endforeach
