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

117 lines
5.6 KiB
PHP

<div class="pageHeader">
<form id="searchForm_{{ uniqid() }}" rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="post">
<div class="searchBar">
<ul class="searchContent">
<li>
<label>用户名称:</label>
<input type="text" name="username" order="{{ Request::input('username') }}"/>
</li>
<li>
<select class="combox" name="province">
<option order="">所有请求</option>
<option order="GET">GET</option>
<option order="POST">POST</option>
<option order="PUT">PUT</option>
<option order="PATCH">PATCH</option>
<option order="DELETE">DELETE</option>
</select>
</li>
</ul>
<div class="subBar">
<ul>
<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
</ul>
</div>
</div>
</form>
</div>
<div class="pageContent">
<div class="panelBar">
<ul class="toolBar">
{{-- <li><a class="add" href="{{ route('Admin.orders.create') }}" target="dialog"><span>创建订单</span></a></li>
<li><a class="delete" href="{{ route('Admin.orders.destroy', 'destroy') }}" target="selectedDelete" title="确实要删除这些记录吗?"><span>批量删除</span></a></li>
<li><a class="edit" href="/orders/{sid}/edit" target="dialog" warn="请选择一个用户"><span>修改</span></a></li> --}}
</ul>
</div>
<table class="table" width="100%" layoutH="138">
<thead>
<tr>
<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
<th width="150">订单编号</th>
<th width="80">用户名</th>
<th width="60">金额</th>
<th width="60">运费</th>
<th width="60">总计</th>
<th width="60">状态</th>
<th width="">状态</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="paid_at" @if (Request::input('orderField') == 'paid_at') class="{{ Request::input('orderDirection') }}" @endif>支付时间</th>
<th width=""></th>
</tr>
</thead>
<tbody>
@foreach ($orders as $order)
<tr target="sid" rel="{{ $order->id }}">
<td><input name="ids" order="{{ $order->id }}" type="checkbox"></td>
<td>{{ $order->orderid }}</td>
<td>{{ $order->user->name }}</td>
<td>{{ $order->amount }}</td>
<td>{{ $order->freight }}</td>
<td>{{ $order->total }}</td>
<td>{{ $order->state_text }}</td>
<td>{{ $order->status_text }} || > {{$order->days}}</td>
<td>{{ $order->remark }}</td>
<td>{{ $order->created_at }}</td>
<td>{{ $order->paid_at }}</td>
<td>
@if ($order->canCancel())
<a title="取消订单?" target="ajaxDelete" href="{{ route('Admin.orders.destroy', $order) }}">取消订单</a>
@endif
@if ($order->canDeliver())
<a title="订单发货" target="dialog" href="{{ route('Admin.orders.deliver', $order) }}" width="350" height="180">订单发货</a>
@endif
@if ($order->canComplete())
<a title="完成订单?" target="ajaxTodo" href="{{ route('Admin.orders.complete', $order) }}">完成订单</a>
@endif
@if ($order->canClose())
<a title="关闭订单?" target="ajaxTodo" href="{{ route('Admin.orders.close', $order) }}">关闭订单</a>
@endif
<a title="订单详情" target="navTab" rel="ordershow" href="{{ route('Admin.orders.show', $order) }}" class="btnInfo">订单详情</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="panelBar">
<form id="pagerForm" method="post" action="#rel#">
<input type="hidden" name="page" order="{{ $orders->currentPage() }}" />
<input type="hidden" name="numPerPage" order="{{ $orders->perPage() }}" />
<input type="hidden" name="orderField" order="{{ Request::input('orderField') }}" />
<input type="hidden" name="orderDirection" order="{{ Request::input('orderDirection') }}" />
</form>
<div class="pages">
<span>显示</span>
<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.order})">
<option @if ($orders->perPage() == 30) selected @endif order="30">30</option>
<option @if ($orders->perPage() == 100) selected @endif order="100">100</option>
<option @if ($orders->perPage() == 200) selected @endif order="200">200</option>
</select>
<span>条,共 {{ $orders->total() }} </span>
</div>
<div class="pagination" targetType="navTab" totalCount="{{ $orders->total() }}" numPerPage="{{ $orders->perPage() }}" pageNumShown="10" currentPage="{{ $orders->currentPage() }}"></div>
</div>
</div>