accusation.blade.php 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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/complaint/accusation'>
  26. {{ __('auto.举报人:') }}
  27. <input class="form-control" type="text" name="plaintiff_uid" style="width: 8%; " value="{{$plaintiff_uid}}" placeholder="{{ __('auto.请输入举报人') }}">
  28. <span style="padding-left: 5px" >{{ __('auto.被举报人:') }}</span >
  29. <input class="form-control" type="text" name="defendant_uid" style="width: 8%;" value="{{$defendant_uid}}" placeholder="{{ __('auto.请输入被举报人') }}">
  30. <span style="padding-left: 5px" >{{ __('auto.举报位置:') }}</span >
  31. <select class="form-control" name="game" value="{{$game}}">
  32. <option value="">{{ __('auto.请选择举报位置') }}</option>
  33. @foreach($game_name as $k=>$v)
  34. <option value="{{$v}}">{{$v}}</option>
  35. @endforeach
  36. </select>
  37. <span style="padding-left: 5px" >{{ __('auto.举报内容:') }}</span>
  38. <select class="form-control" name="content" value="{{$content}}">
  39. <option value="">{{ __('auto.请选择举报内容') }}</option>
  40. <option value="{{ __('auto.游戏通牌/作弊') }}">{{ __('auto.游戏通牌/作弊') }}</option>
  41. <option value="{{ __('auto.不良昵称') }}">{{ __('auto.不良昵称') }}</option>
  42. <option value="{{ __('auto.不良头像') }}">{{ __('auto.不良头像') }}</option>
  43. </select>
  44. <span style="padding-left: 5px" >{{ __('auto.状态:') }}</span>
  45. <select class="form-control" name="status" value="{{$status}}">
  46. <option value="">{{ __('auto.请选择状态') }}</option>
  47. <option value="1">{{ __('auto.已处理') }}</option>
  48. <option value="0">{{ __('auto.未处理') }}</option>
  49. </select>
  50. <span style="padding-left: 5px;" >{{ __('auto.排序:') }}</span>
  51. <input type="radio" name="sort" value="1">&nbsp;
  52. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>
  53. <a href="/admin/complaint/accusation" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
  54. </form>
  55. <table class="table table-bordered">
  56. <thead>
  57. <tr>
  58. <th width="5%">{{ __('auto.序号') }}</th>
  59. <th width="8%">{{ __('auto.举报时间') }}</th>
  60. <th width="15%">{{ __('auto.举报人') }}/ID</th>
  61. <th width="15%">{{ __('auto.被举报人') }}/ID</th>
  62. <th width="15%">{{ __('auto.举报位置') }}</th>
  63. <th width="10%">{{ __('auto.举报内容') }}</th>
  64. <th width="8%">{{ __('auto.处理人') }}</th>
  65. <th width="8%">{{ __('auto.处理时间') }}</th>
  66. <th width="8%">{{ __('auto.状态') }}</th>
  67. <th width="10%">{{ __('auto.操作') }}</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. @foreach($list as $k=>$v)
  72. <tr>
  73. <td>{{ $v->id }}</td>
  74. <td>{{ $v->time }}</td>
  75. <td>{{ $v->plaintiff_name }} / {{ $v->plaintiff_uid }}</td>
  76. <td>{{ $v->defendant_name }} / {{ $v->defendant_uid }}</td>
  77. <td>{{ $v->ServerName }}</td>
  78. <td>{{ $v->content }}</td>
  79. <td>{{ $v->executant_name }}</td>
  80. <td>{{ $v->update_time }}</td>
  81. <td>{{ $v->status ?'{{ __('auto.已处理') }}':'{{ __('auto.未处理') }}' }}</td>
  82. <td>
  83. @if($v->status == 0)
  84. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text" onclick="update({{ $v->id }})">
  85. {{ __('auto.处理') }}
  86. </button>
  87. @else
  88. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text">
  89. {{ __('auto.已处理') }}
  90. </button>
  91. @endif
  92. <button type="button" class="btn btn-sm btn-gradient-danger btn-icon-text" onclick="del({{ $v->id }})">
  93. {{ __('auto.删除') }}
  94. </button>
  95. </td>
  96. </tr>
  97. @endforeach
  98. </tbody>
  99. </table>
  100. @if($sort == 1)
  101. @else
  102. <div class="box-footer clearfix">
  103. {{ __('auto.总共') }} <b>{{ $list->appends(['plaintiff_uid'=>$plaintiff_uid,'defendant_uid'=>$defendant_uid,'game'=>$game,'content'=>$content,'status'=>$status])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  104. {!! $list->links() !!}
  105. </div>
  106. @endif
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <script>
  114. $(function(){
  115. cutStr(50);
  116. });
  117. function update(id){
  118. myConfirm("{{ __('auto.处理操作不可逆,是否继续') }}?",function(){
  119. myRequest("/admin/accusation/edit/"+id,"post",{},function(res){
  120. layer.msg(res.msg)
  121. setTimeout(function(){
  122. window.location.reload();
  123. },1500)
  124. });
  125. });
  126. }
  127. function del(id){
  128. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
  129. myRequest("/admin/accusation/del/"+id,"post",{},function(res){
  130. layer.msg(res.msg)
  131. setTimeout(function(){
  132. window.location.reload();
  133. },1500)
  134. });
  135. });
  136. }
  137. </script>
  138. @endsection