87 lines
4.3 KiB
PHP
87 lines
4.3 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="orderid" value="{{ Request::input('orderid') }}"/>
|
|
</td>
|
|
<td>
|
|
支付单号:
|
|
<input type="text" name="trade_no" value="{{ Request::input('trade_no') }}"/>
|
|
</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="150">订单编号</th>
|
|
<th width="150">支付单号</th>
|
|
<th width="80">支付方式</th>
|
|
<th width="80">支付状态</th>
|
|
<th width="80">支付金额</th>
|
|
<th></th>
|
|
<th width="120" orderField="paid_at" @if (Request::input('orderField') == 'read_at') class="{{ Request::input('orderDirection') }}" @endif>支付时间</th>
|
|
<th width="120" orderField="created_at" @if (Request::input('orderField') == 'created_at') class="{{ Request::input('orderDirection') }}" @endif>发送时间</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($payments as $payment)
|
|
<tr>
|
|
<td>{{ $payment->order->orderid??'' }}</td>
|
|
<td>{{ $payment->trade_no }}</td>
|
|
<td>{!! $payment->type_text !!}</td>
|
|
<td>{!! $payment->state_text !!}</td>
|
|
<td>{{ $payment->amount }}</td>
|
|
<td>{{ $payment->remark }}</td>
|
|
<td>{{ $payment->paid_at }}</td>
|
|
<td>{{ $payment->created_at }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="panelBar">
|
|
<form id="pagerForm" method="post" action="#rel#">
|
|
<input type="hidden" name="page" value="{{ $payments->currentPage() }}" />
|
|
<input type="hidden" name="numPerPage" value="{{ $payments->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 ($payments->perPage() == 30) selected @endif value="30">30</option>
|
|
<option @if ($payments->perPage() == 100) selected @endif value="100">100</option>
|
|
<option @if ($payments->perPage() == 200) selected @endif value="200">200</option>
|
|
</select>
|
|
<span>条,共 {{ $payments->total() }} 条</span>
|
|
</div>
|
|
<div class="pagination" targetType="navTab" totalCount="{{ $payments->total() }}" numPerPage="{{ $payments->perPage() }}" pageNumShown="10" currentPage="{{ $payments->currentPage() }}"></div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
|
|
//点击导出
|
|
$('.export-data').click(function (event) {
|
|
location.href = "{{ route('Admin.export.payments') }}?" + $(this).parents('form').serialize();
|
|
});
|
|
|
|
</script>
|