<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
	    <a class="list-title" href="{{ $value->present()->url('case') }}" target="_blank">{{ $value->description->cname }}</a>
	</td>
	<td>
		<span>{{ $value['orders'] }}</span>
	</td>
	<td>
		<span class="text-success">{{ $value->pages->count() }}</span>
	</td>
	<td>
		<span id="flag{{ $value['id'] }}" class="{{ $value['flag'] == 1 ? 'changegreen' : 'changegray'}}" data-operating="{{ $value['flag'] == 1 ? 'close' : 'open'}}" onclick="fetch_ajax('flag', '{{ $value['id'] }}', 'case-cate');" data-open-text="发布" data-close-text="不发布" style="cursor:pointer;">{{ $value['flag'] == 1 ? '发布' : '不发布'}}</span>
	</td>
	<td>
		<span>{{ $value['created_at'] }}</span>
	</td>
	<td>
		<div class="toolbar">
			<a href="{{ route('admin.case-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.case_cate_each', $value['children'], 'value')