@foreach($items as $item)
    <tr>
        @foreach($columns as $key => $column)
            @if($key == 'title')
                <td>
                    <span class="branch tier{{ $item['tier'] }}"><i></i></span>
                    @if(isset($item['icon']))
                        <i class="layui-icon layui-icon-{{ $item['icon'] }}"></i>
                    @endif
                    {{ $item['title'] }}
                </td>
            @else
                <td>{!! isset($column['value']) ? $column['value']($item[$key],$item) : $item[$key] !!}</td>
            @endif
        @endforeach
        <td>
            @if(checkBtn('/admin/'.$path.'/edit', $permissionsList))
                @if(in_array('edit', $actionBtns))
                    <button class="layui-btn layui-btn-xs editItem" data-itemid="{{ $item['id'] }}">编辑
                    </button>
                @endif
            @endif
            @if(checkBtn('/admin/'.$path.'/del', $permissionsList))
                @if(in_array('del', $actionBtns))
                    @if(isset($item['can_del']) && $item['can_del'])
                        <button class="layui-btn layui-btn-xs layui-btn-danger delItem" data-itemid="{{ $item['id'] }}">
                            删除
                        </button>
                    @endif
                @endif
            @endif
        </td>
    </tr>
    @if(isset($item['child']) && count($item['child']) > 0)
        @include('admin::component.template_tree_item', ['items' => $item['child'], 'columns' => $columns])
    @endif
@endforeach
