index.blade.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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/group_control/record'>
  27. <div>
  28. @csrf
  29. <span style="padding-left: 5px" >{{ __('auto.房间选择:') }}</span >
  30. <select class="form-control" name="server_id" value="" >
  31. <option value="">{{ __('auto.选择房间') }}</option>
  32. @foreach($room_list as $k=>$v)
  33. <option value="{{$v->ServerID}}" @if($v->ServerID==$server_id) selected @endif>{{$v->ServerName}}</option>
  34. @endforeach
  35. </select> &nbsp;&nbsp;
  36. <spen style="padding-left: 10px">{{ __('auto.单控生效时间:') }}</spen>
  37. <input type="date" step="01" name="start_time" id="start_time"
  38. class="form-control" value="{{$start_time}}"/>
  39. <input type="date" step="01" name="end_time" id='end_time'
  40. class="form-control" value="{{$end_time}}"/>
  41. <input type="submit" class="btn btn-sm btn-gradient-primary btn-icon-text"
  42. value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  43. <a href="/admin/group_control/record" style="color: white">
  44. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text">
  45. {{ __('auto.重置') }}
  46. </button>
  47. </a>
  48. </div>
  49. </form>
  50. <table class="table table-bordered">
  51. <thead>
  52. <tr>
  53. <th width="5%">{{ __('auto.群控生效房间') }}</th>
  54. <th width="8%">{{ __('auto.生效时的房间库存') }}</th>
  55. <th width="8%">{{ __('auto.最后操作人') }}</th>
  56. <th width="8%">{{ __('auto.群控生效时间') }}</th>
  57. <th width="8%">{{ __('auto.群控生效配置') }}</th>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. @foreach($list as $k=>$v)
  62. <tr>
  63. <td>{{ $v->ServerName }}</td>
  64. <td>{{$v->stock}}</td>
  65. <td>{{$v->account}}</td>
  66. <td>{{$v->created_at}}</td>
  67. <td>
  68. <button type="button" class="btn btn-sm btn-facebook btn-icon-text" onclick="show({{$v->server_id}})">
  69. {{ __('auto.查配置') }}
  70. </button>
  71. </td>
  72. </tr>
  73. @endforeach
  74. </tbody>
  75. </table>
  76. <div class="box-footer clearfix" id="pages">
  77. {{ __('auto.总共') }} <b>{{ $list->appends([
  78. 'list'=>$list,
  79. 'start_time'=>$start_time,
  80. 'end_time'=>$end_time,
  81. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  82. {!! $list->links() !!}
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <script>
  91. function show(value) {
  92. var page = layer.open({
  93. type: 2,
  94. title: '{{ __('auto.查看配置') }}',
  95. shadeClose: true,
  96. shade: 0.8,
  97. area: ['50%', '60%'],
  98. content: '/admin/group_control/show_config/'+value
  99. });
  100. }
  101. </script>
  102. @endsection