index.blade.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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="post"
  26. action='/admin/control/record'>
  27. <div>
  28. @csrf
  29. <spen style="padding-left: 10px">{{ __('auto.会员ID:') }}</spen>
  30. <input class="form-control" type="text" name="UserID" id="UserID"
  31. placeholder="{{ __('auto.请输入数字') }}" style="width: 20%; " value="{{$user_id}}">
  32. <spen style="padding-left: 10px">{{ __('auto.单控生效时间:') }}</spen>
  33. <input type="date" step="01" name="start_time" id="start_time"
  34. class="form-control" value="{{$start_time}}"/>
  35. <input type="date" step="01" name="end_time" id='end_time'
  36. class="form-control" value="{{$end_time}}"/>
  37. <input type="submit" class="btn btn-sm btn-gradient-primary btn-icon-text"
  38. value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  39. <a href="/admin/control/record" style="color: white">
  40. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text">
  41. {{ __('auto.重置') }}
  42. </button>
  43. </a>
  44. </div>
  45. </form>
  46. <table class="table table-bordered">
  47. <thead>
  48. <tr>
  49. <th width="5%">{{ __('auto.被单控对象') }}ID</th>
  50. <th width="8%">{{ __('auto.被单控对象昵称') }}</th>
  51. <th width="8%">{{ __('auto.最后操作人') }}</th>
  52. <th width="8%">{{ __('auto.单控生效时间') }}</th>
  53. <th width="8%">{{ __('auto.单控生效内容') }}</th>
  54. <th width="8%">{{ __('auto.之前单控配置进度') }}</th>
  55. <th width="8%">{{ __('auto.单控用户余额') }}</th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. @foreach($list as $k=>$v)
  60. <tr>
  61. <td>{{ $v->GameID }}</td>
  62. <td>{{$v->NickName}}</td>
  63. <td>{{$v->account}}</td>
  64. <td>{{$v->created_at}}</td>
  65. <td>{{$v->contents}}</td>
  66. <td>{{$v->before_config}}</td>
  67. <td>{{$v->score}}</td>
  68. </tr>
  69. @endforeach
  70. </tbody>
  71. </table>
  72. <div class="box-footer clearfix" id="pages">
  73. {{ __('auto.总共') }} <b>{{ $list->appends([
  74. 'list'=>$list,
  75. 'user_id'=>$user_id,
  76. 'start_time'=>$start_time,
  77. 'end_time'=>$end_time,
  78. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  79. {!! $list->links() !!}
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <script>
  88. function switch_control(id,type){
  89. myConfirm("{{ __('auto.操作不可逆,是否继续') }}?",function(){
  90. myRequest("/admin/channel/switch/"+id,"post",{type},function(res){
  91. layer.msg(res.msg)
  92. setTimeout(function(){
  93. window.location.reload();
  94. },1500)
  95. });
  96. });
  97. }
  98. function update_region(id) {
  99. layer.open({
  100. type: 2,
  101. title: '{{ __('auto.修改开放地区') }}',
  102. shadeClose: true,
  103. shade: 0.8,
  104. area: ['50%', '50%'],
  105. content: '/admin/channel/update/'+id
  106. });
  107. }
  108. </script>
  109. @endsection