rank.blade.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. <h4 class="card-title">{{ __('auto.茶叶排行') }}</h4>
  25. <form class="well form-inline margin-top-20" method="get" action='/admin/withdraw/rank'>
  26. <spen style="padding-left: 10px">{{ __('auto.选择时间:') }}</spen>
  27. <input type="date" step="01" name="start_time" class="form-control"
  28. value="{{$start_time}}"/>&nbsp;&nbsp;
  29. <input type="date" step="01" name="end_time" class="form-control"
  30. value="{{$end_time}}"/>&nbsp;&nbsp;
  31. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  32. <a href="/admin/withdraw/rank"
  33. class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  34. <a href="/admin/withdraw/rank?excel=1&start_time={{$start_time}}&end_time={{$end_time}}"
  35. class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  36. </form>
  37. <table class="table table-bordered">
  38. <thead>
  39. <tr>
  40. <th width="5%">{{ __('auto.排名') }}</th>
  41. <th width="7%">{{ __('auto.用户') }}ID</th>
  42. <th width="10%">{{ __('auto.游戏昵称') }}</th>
  43. <th width="10%">{{ __('auto.玩家渠道') }}</th>
  44. <th width="8%">{{ __('auto.玩家状态') }}</th>
  45. <th width="8%">{{ __('auto.手机号') }}</th>
  46. <th width="7%">{{ __('auto.茶叶总额') }}</th>
  47. <th width="6%">{{ __('auto.游戏时长') }}</th>
  48. <th width="10%">{{ __('auto.最后登录时间') }}</th>
  49. <th width="10%">{{ __('auto.注册时间') }}</th>
  50. <th width="10%">{{ __('auto.距上次登录时间') }}</th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. @foreach($list as $k=>$v)
  55. <tr>
  56. <td>{{ $v->rank }}</td>
  57. <td>
  58. <a href="/admin/global/id_find?UserID={{$v->UserID}}">{{$v->GameID}}</a>
  59. </td>
  60. <td>{{ $v->NickName }}</td>
  61. <td>{{ $v->Channel }}</td>
  62. <td>{{ $v->type}}</td>
  63. <td>{{ $v->PhoneNum }}</td>
  64. <td>{{ $v->money }}</td>
  65. <td>{{ $v->Experience }}</td>
  66. <td>{{ $v->LastLogonDate }}</td>
  67. <td>{{ $v->RegisterDate }}</td>
  68. <td>{{ $v->time }}{{ __('auto.天') }}</td>
  69. </tr>
  70. @endforeach
  71. </tbody>
  72. </table>
  73. <div class="box-footer clearfix">
  74. {{ __('auto.总共') }}
  75. <b>{{ $list->appends([
  76. 'start_time'=>$start_time,
  77. 'end_time'=>$end_time,
  78. ])->total() }}</b>
  79. {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  80. {!! $list->links() !!}
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <script>
  89. function last_login_start_timeFunc() {
  90. getFormat('00', '00', '00');
  91. document.getElementById("last_login_start_time").value = format
  92. }
  93. function last_login_end_timeFunc() {
  94. getFormat('23', '59', '59');
  95. document.getElementById("last_login_end_time").value = format
  96. }
  97. var data_obj = {
  98. 'start_time': "{{$start_time}}",
  99. 'end_time': "{{$end_time}}",
  100. }
  101. function todayPayAmount(obj, val) {
  102. if (val == 'asc') {
  103. $(".todayPayAmount svg:eq(1)").children('path').attr('fill', '#707071');
  104. $(obj).children('path').attr('fill', 'red')
  105. } else {
  106. $(obj).children('path').attr('fill', 'red')
  107. $(".todayPayAmount svg:eq(0)").children('path').attr('fill', '#707071');
  108. }
  109. this.data_obj.todayPayAmount = val
  110. $.ajax({
  111. type: "get",
  112. url: "/admin/withdraw/rank",
  113. headers: {
  114. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  115. },
  116. data: this.data_obj,
  117. success: function (msg) {
  118. if (msg) {
  119. $(".main-panel").html(msg)
  120. }
  121. }
  122. })
  123. }
  124. </script>
  125. @endsection