head_audit.blade.php 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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/global/head_audit'>
  26. {{ __('auto.游戏ID:') }}
  27. <input type="text" class="form-control" name="GameID" value="{{ $GameID }}">
  28. <spen style="padding-left: 10px">{{ __('auto.选择时间:') }}</spen>
  29. <input type="date" step="01" name="start_time" class="form-control"
  30. value="{{$start_time}}"/>&nbsp;&nbsp;
  31. <input type="date" step="01" name="end_time" class="form-control"
  32. value="{{$end_time}}"/>&nbsp;&nbsp;
  33. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  34. <a href="/admin/card/game/score" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  35. </form>
  36. <table class="table table-bordered">
  37. <thead>
  38. <tr>
  39. <th width="10%">{{ __('auto.游戏') }}ID</th>
  40. <th width="15%">{{ __('auto.头像') }}</th>
  41. <th width="15%">{{ __('auto.申请时间') }}</th>
  42. <th width="15%">{{ __('auto.操作') }}</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. @foreach($list as $k=>$v)
  47. <tr>
  48. <td>{{ $v->GameID }}</td>
  49. <td><img src="/{{$v->Image}}" alt="" width="60px"></td>
  50. <td>{{ $v->CreateTime }}</td>
  51. <td>
  52. <button class="btn btn-sm btn-success" onclick='updateStatus({{$v->UserID}},1)'>
  53. {{ __('auto.通过') }}
  54. </button>
  55. <button class="btn btn-sm btn-gradient-dark"
  56. onclick="updateStatus({{$v->UserID}},2)">{{ __('auto.拒绝') }}
  57. </button>
  58. </td>
  59. </tr>
  60. @endforeach
  61. </tbody>
  62. </table>
  63. <div class="box-footer clearfix">
  64. {{ __('auto.总共') }}
  65. <b>{{ $list->appends(['start_time'=>$start_time,'end_time'=>$end_time])->total() }}</b>
  66. {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  67. {!! $list->links() !!}
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <script>
  76. function updateStatus(UserID,Status) {
  77. myRequest("/admin/global/head_audit_update/" + UserID, "post", {Status}, function (res) {
  78. layer.msg(res.msg)
  79. setTimeout(function () {
  80. window.location.reload();
  81. }, 1500)
  82. });
  83. }
  84. </script>
  85. @endsection