imvkmark
11/30/2018 - 3:30 AM

poppy:pagination

poppy 分页

@extends('lemon.template.desktop_metronic')
@section('desktop-main')
	{!! Form::model(\Input::all(), ['method' => 'get', 'class'=> 'form-search']) !!}
	{!! Form::label('cat_id','分类') !!}
	{!! Form::select('cat_id', \App\Models\DuobaoCategory::kvLinear(),null, ['placeholder' => '分类']) !!}
	{!! Form::select('is_on', App\Models\DuobaoGoods::kvIsOn(), null, ['placeholder' => '是否活动']) !!}
	{!! Form::select('status', App\Models\DuobaoGoods::kvStatus(), null, ['placeholder' => '商品状态']) !!}
	{!! Form::label('market_price','市场价') !!}
	{!! Form::text('market_price',null,['placeholder' => '输入价格']) !!}
	{!! Form::button('<i class="fa fa-search"> </i>', ['class'=> 'btn blue', 'type'=> 'submit']) !!}
	{!! Html::link(route_url(), '清空条件', ['class'=> 'btn btn-warning']) !!}
	{!!Form::close()!!}
	
	
	@if ($items->total())
	

	
	<table class="table">
		<tr class="thead-space">
			<th class="w72">开发者账户ID</th>
			<th>类型</th>
			<th>Key</th>
			<th>密钥</th>
			<th class="w156">添加时间</th>
			<th class="w108">操作</th>
		</tr>
		
		
		
		@foreach($items as $item)
			<tr>
				<td>{{$item['account_id']}}</td>
				<td>{{\App\Models\ImageKey::typeDesc($item['image_key_type'])}}</td>
				<td>{{$item['image_key_public']}}</td>
				<td>{{$item['image_key_secret']}}</td>
				<td>
					<a class="fa fa-edit fa-lg" href="{{route('dsk_image_key.edit', [$item->image_key_id])}}"></a>
					<a class="fa fa-remove fa-lg red J_request" data-confirm="您是否要删除 {{$item['pk_key']}} ?" href="{{route('dsk_image_key.destroy', [$item->image_key_id])}}"></a>
				</td>
			</tr>
		@endforeach
		
					<tr>
				<td>
					{!! Form::checkbox('_check_all', 1, null, ['class' => 'J_check_all']) !!}
				</td>
				<td colspan="12">
					<div class="pull-left">
						@permission('dsk_duobao_goods.destroy')
						<button class="btn btn-default J_submit red"
						        data-confirm="确认删除选中的产品?" data-url="{{route('dsk_duobao_goods.destroy')}}" data-ajax="true"> 删除
						</button>
						@endpermission
						<button class="btn btn-info J_submit"
						        data-url="{{route('dsk_duobao_goods.update')}}" data-ajax="true"> 更新排序
						</button>
					</div>
					@if ($items->hasPages())
						<div class="pull-right">
							{!!$items->render()!!}
						</div>
					@endif
				</td>
			</tr>
		
	</table>
	<!-- 分页 -->
	@if ($items->hasPages())
		<div class="mt10">{!!$items->render()!!}</div>
	@endif
	@else
		@include('desktop.inc.empty')
	@endif
@endsection
{!! Form::order('market_price') !!}
{!! Form::order('created_at') !!}