Repository navigation
Expand file tree
/
Copy pathapplyList.blade.php
More file actions
127 lines (122 loc) · 7.24 KB
/
Copy pathapplyList.blade.php
File metadata and controls
127 lines (122 loc) · 7.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
@extends('admin.layouts')
@section('css')
@endsection
@section('title', '控制面板')
@section('content')
<!-- BEGIN CONTENT BODY -->
<div class="page-content" style="padding-top:0;">
<!-- BEGIN PAGE BASE CONTENT -->
<div class="row">
<div class="col-md-12">
<div class="portlet light bordered">
<div class="portlet-title">
<div class="caption">
<span class="caption-subject font-dark bold uppercase">提现申请列表</span>
</div>
</div>
<div class="portlet-body">
<div class="row" style="padding-bottom:5px;">
<div class="col-md-2 col-sm-2">
<input type="text" class="col-md-4 form-control input-sm" name="username" value="{{Request::get('username')}}" id="username" placeholder="申请账号" onkeydown="if(event.keyCode==13){do_search();}">
</div>
<div class="col-md-2 col-sm-2">
<select class="form-control input-sm" name="status" id="status" onChange="do_search()">
<option value="" @if(Request::get('status') == '') selected @endif>状态</option>
<option value="-1" @if(Request::get('status') == '-1') selected @endif>驳回</option>
<option value="0" @if(Request::get('status') == '0') selected @endif>待审核</option>
<option value="1" @if(Request::get('status') == '1') selected @endif>审核通过待打款</option>
<option value="2" @if(Request::get('status') == '2') selected @endif>已打款</option>
</select>
</div>
<div class="col-md-2 col-sm-2">
<button type="button" class="btn btn-sm blue" onclick="do_search();">查询</button>
<button type="button" class="btn btn-sm grey" onclick="do_reset();">重置</button>
</div>
</div>
<div class="table-scrollable">
<table class="table table-striped table-bordered table-hover table-checkable order-column">
<thead>
<tr class="uppercase">
<th> # </th>
<th> 申请账号 </th>
<th> 提现金额 </th>
<th> 申请时间 </th>
<th> 状态 </th>
<th> 处理时间 </th>
<th> 操作 </th>
</tr>
</thead>
<tbody>
@if($applyList->isEmpty())
<tr>
<td colspan="7" style="text-align: center;">暂无数据</td>
</tr>
@else
@foreach($applyList as $apply)
<tr>
<td> {{$apply->id}} </td>
<td> <a href="{{url('admin/editUser?id=' . $apply->user_id)}}" target="_blank">{{$apply->user->username}}</a> </td>
<td> {{$apply->amount}} </td>
<td> {{$apply->created_at}} </td>
<td>
@if($apply->status == -1)
<span class="label label-default label-danger"> 驳回 </span>
@elseif($apply->status == 0)
<span class="label label-default label-info"> 待审核 </span>
@elseif($apply->status == 2)
<span class="label label-default label-success"> 已打款 </span>
@else
<span class="label label-default label-default"> 审核通过待打款 </span>
@endif
</td>
<td> {{$apply->created_at == $apply->updated_at ? '' : $apply->updated_at}} </td>
<td>
@if($apply->status > 0 && $apply->status < 2)
<button type="button" class="btn btn-sm red btn-outline" onclick="doAudit('{{$apply->id}}')"> 审核 </button>
@else
<button type="button" class="btn btn-sm blue btn-outline" onclick="doAudit('{{$apply->id}}')"> 查看 </button>
@endif
</td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>
<div class="row">
<div class="col-md-4 col-sm-4">
<div class="dataTables_info" role="status" aria-live="polite">共 {{$applyList->total()}} 个申请</div>
</div>
<div class="col-md-8 col-sm-8">
<div class="dataTables_paginate paging_bootstrap_full_number pull-right">
{{ $applyList->links() }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- END PAGE BASE CONTENT -->
</div>
<!-- END CONTENT BODY -->
@endsection
@section('script')
<script src="/js/layer/layer.js" type="text/javascript"></script>
<script type="text/javascript">
// 审核
function doAudit(id) {
window.open('{{url('admin/applyDetail?id=')}}' + id);
}
// 搜索
function do_search() {
var username = $("#username").val();
var status = $("#status option:checked").val();
window.location.href = '{{url('admin/applyList')}}' + '?username=' + username + '&status=' + status;
}
// 重置
function do_reset() {
window.location.href = '{{url('admin/applyList')}}';
}
</script>
@endsection