<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 align="center">
	    <input name="orders[{{ $value->id }}]" id="orders" value="{{ $value->orders }}" class="form-control text-center">
	</td>
	<td>
		@if ($value['depth'] > 0) 
			@for ($i = 0; $i < $value['depth']; $i++)
				&nbsp;&nbsp;&nbsp;
			@endfor
				∟ 
		@endif
	    <a href="{{ $value->linkurl }}" target="_blank">{{ $value->description->cname }}</a>
	</td>
	<td>{{ $value['linkurl'] }}</td>
	<td>
		@if($value['types'] == 1)
            <span class="changegreen">链接</span>
        @else
            <span class="changeblue">单页</span>
        @endif  
	</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'] }}', 'nav');" data-open-text="发布" data-close-text="不发布" style="cursor:pointer;">{{ $value['flag'] == 1 ? '发布' : '不发布'}}</span>
	</td>
	<td>{{ $value['created_at'] }}</td>
	<td>
		<div class="toolbar">
			<a href="{{ route('admin.nav.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.nav_each', $value['children'], 'value')
