reward_list.blade.php 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. @extends('base.base')
  2. @section('base')
  3. <!-- 内容区域 -->
  4. <div class="main-panel">
  5. <div class="content-wrapper">
  6. <div class="page-header">
  7. <h3 class="page-title">
  8. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  9. <i class="mdi mdi-settings"></i>
  10. </span>
  11. {{ __('auto.推广员奖励报表') }}
  12. </h3>
  13. <nav aria-label="breadcrumb">
  14. <ol class="breadcrumb">
  15. <li class="breadcrumb-item"><a href="#">{{ __('auto.推广员奖励报表') }}</a></li>
  16. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.报表管理') }}</li>
  17. </ol>
  18. </nav>
  19. </div>
  20. <div class="row">
  21. <div class="col-lg-12 grid-margin stretch-card">
  22. <div class="card">
  23. <div class="card-body">
  24. <form class="well form-inline margin-top-20" method="post" action='/admin/global/reward'>
  25. <div>
  26. @csrf
  27. <spen style="padding-left: 10px">{{ __('auto.会员ID:') }}</spen>
  28. <input class="form-control" type="text" name="UserID" id="UserID"
  29. style="width: 10%; " value="{{$UserID}}">
  30. <spen style="padding-left: 10px">{{ __('auto.上级id:') }}</spen>
  31. <input class="form-control" type="text" name="SpreaderID" id="SpreaderID"
  32. style="width: 10%; " value="{{$SpreaderID}}">
  33. <spen style="padding-left: 10px">{{ __('auto.选择类型:') }}</spen>
  34. <select class="form-control" name="Type" value="" style="color: black">
  35. <option value="1" @if ($Type == 1)
  36. selected
  37. @endif>{{ __('auto.注册') }}</option>
  38. <option value="2" @if ($Type == 2)
  39. selected
  40. @endif>{{ __('auto.对局') }}</option>
  41. <option value="3" @if ($Type == 3)
  42. selected
  43. @endif>{{ __('auto.咖啡') }}</option>
  44. </select>
  45. <spen style="padding-left: 10px">{{ __('auto.发放时间:') }}</spen>
  46. <input type="datetime-local" step="01" name="start_time" id="start_time"
  47. class="form-control" value="{{$start_time}}" onclick="start_times()"/>
  48. <input type="datetime-local" step="01" name="end_time" id='end_time'
  49. class="form-control" value="{{$end_time}}" onclick="end_times()"/>
  50. <a href="/admin/global/reward"
  51. class="btn btn-sm btn-gradient-primary btn-icon-text">{{ __('auto.重置') }}</a>
  52. <input type="submit" class="btn btn-sm btn-gradient-primary btn-icon-text"
  53. value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp
  54. </div>
  55. {{ __('auto.自动审核:') }}
  56. @if ($AutoVerify == 1)
  57. {{ __('auto.已开启') }} <button class="btn btn-sm btn-gradient-dark" onclick="autoVerify(0)">{{ __('auto.关闭') }}</button>
  58. @else
  59. {{ __('auto.已关闭') }} <button class="btn btn-sm btn-gradient-dark" onclick="autoVerify(1)">{{ __('auto.开启') }}</button>
  60. @endif
  61. </form>
  62. <table class="table table-bordered">
  63. <thead>
  64. <tr>
  65. <th width="5%">{{ __('auto.发放会员') }}id</th>
  66. <th width="4%">{{ __('auto.上级') }}id</th>
  67. <th width="6%">{{ __('auto.系统发放时间') }}</th>
  68. <th width="8%">{{ __('auto.发放奖励') }}</th>
  69. <th width="8%">{{ __('auto.发放状态') }}</th>
  70. <th width="8%">{{ __('auto.奖励来源玩家') }}</th>
  71. <th width="8%">{{ __('auto.类型') }}</th>
  72. </tr>
  73. </thead>
  74. <tbody>
  75. @foreach($list as $value)
  76. <tr>
  77. <td>
  78. <a href="/admin/global/id_find?UserID={{$value->UserID}}">{{$value->GameID}}</a>
  79. </td>
  80. <td>{{$value->SpreaderID}}</td>
  81. <td>{{date("Y-m-d H:i:s" ,strtotime($value->SendTime))}}</td>
  82. <td>{{$value->DirectRebate}}</td>
  83. <td>{{ __('auto.已发放') }}</td>
  84. <td>
  85. <a href="/admin/global/id_find?UserID={{$value->SourceUserID}}">{{$value->SourceGameID}}</a>
  86. </td>
  87. <td>
  88. @if ($value->Type == 1)
  89. {{ __('auto.注册') }}
  90. @elseif($value->Type == 2)
  91. {{ __('auto.对局') }}
  92. @elseif($value->Type == 3)
  93. {{ __('auto.咖啡') }}
  94. @endif
  95. </td>
  96. </tr>
  97. @endforeach
  98. </tbody>
  99. </table>
  100. <div class="box-footer clearfix" id="pages">
  101. {{ __('auto.总共') }} <b>{{ $list->appends([
  102. 'list'=>$list,
  103. 'UserID' => $UserID,
  104. 'SpreaderID' => $SpreaderID,
  105. 'start_time' => $start_time,
  106. 'end_time' => $end_time,
  107. 'Type' => $Type
  108. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  109. {!! $list->links() !!}
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <script>
  118. function start_times() {
  119. getFormat('00', '00', '00');
  120. document.getElementById("start_time").value = format
  121. }
  122. function end_times() {
  123. getFormat('23', '59', '59');
  124. document.getElementById("end_time").value = format
  125. }
  126. // 自动审核开关
  127. function autoVerify(StatusValue) {
  128. myRequest("/admin/extension/auto_verify", "post", {StatusValue}, function (res) {
  129. layer.msg(res.msg)
  130. setTimeout(function () {
  131. window.location.reload();
  132. }, 1500)
  133. });
  134. }
  135. function userSourceFunc(orderIds, Type, Id, GameID) {
  136. var page = layer.open({
  137. type: 2,
  138. title: '{{ __('auto.奖金来源') }}',
  139. shadeClose: true,
  140. shade: 0.8,
  141. area: ['90%', '80%'],
  142. content: '/admin/global/user_source?orderIds=' + orderIds + '&Type=' + Type + '&Id=' + Id + '&GameID=' + GameID
  143. });
  144. }
  145. </script>
  146. @endsection