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

95 lines
4.8 KiB
PHP

<div class="pageHeader">
<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="post">
<div class="searchBar">
<table class="searchContent">
<tr>
<td>
手机号:
<input type="text" name="mobile" value="{{ Request::input('mobile') }}"/>
</td>
<td>
用户昵称:
<input type="text" name="nickname" value="{{ Request::input('nickname') }}"/>
</td>
<td>
起:
<input type="text" name="start" value="{{ Request::get('start') }}" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="23:59:59" readonly="true">
</td>
<td>
止:
<input type="text" name="end" value="{{ Request::get('end') }}" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="23:59:59" readonly="true">
</td>
<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索结果</button></div></div></td>
<td><div class="buttonActive"><div class="buttonContent"><button type="button" class="export-data">导出数据</button></div></div></td>
</tr>
</table>
</div>
</form>
</div>
<div class="pageContent">
<table class="table" width="100%" layoutH="85">
<thead>
<tr>
<th width="50">编号</th>
<th width="80">用户手机号</th>
<th width="80">用户昵称</th>
<th width="100">提现金额</th>
<th width="100">手续费</th>
<th width="100">实到金额</th>
<th width="100">提现方式</th>
<th width="60">状态</th>
<th >备注</th>
<th width="120" orderField="created_at" @if (Request::input('orderField') == 'created_at') class="{{ Request::input('orderDirection') }}" @endif>创建时间</th>
<th width="120" orderField="updated_at" @if (Request::input('orderField') == 'updated_at') class="{{ Request::input('orderDirection') }}" @endif>更新时间</th>
<th width="120">操作</th>
</tr>
</thead>
<tbody>
@foreach ($withdraws as $withdraw)
<tr>
<td>{{ $withdraw->id }}</td>
<td>{{ $withdraw->user->mobile }}</td>
<td>{{ $withdraw->user->info->nickname }}</td>
<td>{{ $withdraw->amount }}</td>
<td>{{ $withdraw->tax }}</td>
<td>{{ $withdraw->take }}</td>
<td>{{ $withdraw->type_text }}</td>
<td>{{ $withdraw->state_text }}</td>
<td>{{ $withdraw->remark }}</td>
<td>{{ $withdraw->created_at }}</td>
<td>{{ $withdraw->updated_at }}</td>
<td>@if($withdraw->state == 0)<a title="审核" target="dialog" href="{{ route('Admin.withdraws.status',$withdraw) }}" width="350" height="250">审核</a>@endif</td>
</tr>
@endforeach
</tbody>
</table>
<div class="panelBar">
<form id="pagerForm" method="post" action="#rel#">
<input type="hidden" name="page" value="{{ $withdraws->currentPage() }}" />
<input type="hidden" name="numPerPage" value="{{ $withdraws->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 ($withdraws->perPage() == 30) selected @endif value="30">30</option>
<option @if ($withdraws->perPage() == 100) selected @endif value="100">100</option>
<option @if ($withdraws->perPage() == 200) selected @endif value="200">200</option>
</select>
<span>条,共 {{ $withdraws->total() }} </span>
</div>
<div class="pagination" targetType="navTab" totalCount="{{ $withdraws->total() }}" numPerPage="{{ $withdraws->perPage() }}" pageNumShown="10" currentPage="{{ $withdraws->currentPage() }}"></div>
</div>
</div>
<script type="text/javascript">
//点击导出
$('.export-data').click(function (event) {
location.href = "{{ route('Admin.export.withdraws') }}?" + $(this).parents('form').serialize();
});
</script>