0
0
Files
Babyclass/app/Admin/Views/activities/show.blade.php
2020-08-04 10:09:42 +08:00

55 lines
2.9 KiB
PHP

<div class="pageContent">
<div class="panelBar">
<ul class="toolBar">
<li><a class="add" href="{{ route('Admin.activityGifts.create',$activity) }}" mask="true" target="dialog" width="600" height="600" rel="navTab_{{ time() }}" title="添加奖品"><span>添加奖品</span></a></li>
</ul>
</div>
<table class="table" width="100%" layoutH="112">
<thead>
<tr>
<th width="50" orderField="id" @if (Request::input('orderField') == 'id') class="{{ Request::input('orderDirection') }}" @endif>编号</th>
<th>奖品</th>
<th width="80">任务指标</th>
<th width="80">领取消耗</th>
<th width="140" orderField="created_at" @if (Request::input('orderField') == 'created_at') class="{{ Request::input('orderDirection') }}" @endif>创建时间</th>
<th width="80"></th>
</tr>
</thead>
<tbody>
@foreach ($gifts as $gift)
<tr>
<td>{{ $gift->id }}</td>
<td>{{ $gift->goods->title ?? ''}}-{{ $gift->param->value ?? ''}}</td>
<td>{{ $gift->mode}}</td>
<td>{{ $gift->consume_mode}}</td>
<td>{{ $gift->created_at }}</td>
<td>
<a title="编辑奖品" target="dialog" width="600" height="600" href="{{ route('Admin.activityGifts.edit', $gift) }}" rel="navTab_{{ time() }}" class="btnEdit">编辑</a>
<a title="删除奖品" target="ajaxDelete" href="{{ route('Admin.activityGifts.destroy', $gift) }}" class="btnDel">删除</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="panelBar">
<form id="pagerForm" method="post" action="#rel#">
<input type="hidden" name="page" value="{{ $gifts->currentPage() }}" />
<input type="hidden" name="numPerPage" value="{{ $gifts->perPage() }}" />
<input type="hidden" name="orderField" value="{{ Request::input('orderField') }}" />
<input type="hidden" name="orderDirection" value="{{ Request::input('orderDirection') }}" />
</form>
<div class="pages">
<span>显示</span>
<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
<option @if ($gifts->perPage() == 30) selected @endif value="30">30</option>
<option @if ($gifts->perPage() == 100) selected @endif value="100">100</option>
<option @if ($gifts->perPage() == 200) selected @endif value="200">200</option>
</select>
<span>条,共 {{ $gifts->total() }} </span>
</div>
<div class="pagination" targetType="navTab" totalCount="{{ $gifts->total() }}" numPerPage="{{ $gifts->perPage() }}" pageNumShown="10" currentPage="{{ $gifts->currentPage() }}"></div>
</div>
</div>