<tr>
	<td align="center">
		<div class="pretty p-default p-smooth">
			<input name="id[]" class="id" type="checkbox" value="{{ $value['id'] }}" onclick="checkItem(this, 'chkAll')">
			<div class="state p-success"><label></label></div>
		</div>
	</td>
	<td>
		@if ($value['depth'] > 0) 
			@for ($i = 0; $i < $value['depth']; $i++)
				&nbsp;&nbsp;&nbsp;
			@endfor
				├ 
		@endif
	    {{ $value->description->cname }}
	</td>
    <td class="text-center">
    @if($value->img != '')
        <a href="{{ url($value->img) }}" title="{{ $value->name }}" class="img" target="_blank" >
            <img src="{{ url($value->img) }}" alt="{{ $value->name }}" class="img-circle" width="18">
        </a>
    @else
        <span class="changegray">无图片</span>
    @endif
    </td>
    <td class="text-center">{{ count($value->pages) }}</td>
	<td class="text-right">
		<div class="toolbar">
			<a href="{{ route('admin.page-cate.edit', $value->id) }}" class="btn-link">修改</a>
			<span class="text-explode ">|</span>
			<a href="javascript:void(0);" data-id="{{ $value->id }}" class="btn-link delete-item">删除</a>
		</div>
	</td>
</tr>
@each('admin.common.page_cate_each', $value['children'], 'value')