opinion.blade.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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-wrench"></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. <table class="table table-bordered">
  26. <thead>
  27. <tr>
  28. <th>{{ __('auto.序号') }}</th>
  29. <th>ID</th>
  30. <th>{{ __('auto.用户名') }}</th>
  31. <th>{{ __('auto.反馈时间') }}</th>
  32. <th>{{ __('auto.反馈内容') }}</th>
  33. <th>{{ __('auto.邮件回复内容') }}</th>
  34. <th>{{ __('auto.操作') }}</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. @foreach($list as $k=>$v)
  39. <tr>
  40. <td style="width: 5%">{{ $v->ID }}</td>
  41. <td style="width: 7%">
  42. <a href="/admin/global/id_find?UserID={{$v->UserID}}">
  43. {{$v->GameID}}
  44. </a>
  45. </td>
  46. <td style="width: 15%">{{ $v->NickName }}</td>
  47. <td style="width: 15%">{{ $v->CreateAt }}</td>
  48. <td style="width: 30%">{{ $v->Msg }}</td>
  49. <td style="width: 20%">{{ $v->Reply }}</td>
  50. <td>
  51. <input type="hidden" id="game_id" value="{{ $v->ID }}">
  52. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text" onclick="reply({{ $v->GameID }})">
  53. {{ __('auto.回复') }}
  54. </button>
  55. </td>
  56. </tr>
  57. @endforeach
  58. </tbody>
  59. </table>
  60. <div class="box-footer clearfix">
  61. {{ __('auto.总共') }}
  62. <b>{{ $list->appends([
  63. ])->total() }}</b>
  64. {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  65. {!! $list->links() !!}
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <script>
  74. function reply(id){
  75. var page = layer.open({
  76. type: 2,
  77. title: '{{ __('auto.留言回复') }}',
  78. shadeClose: true,
  79. shade: 0.8,
  80. area: ['70%', '90%'],
  81. content: '/admin/opinion/reply/'+id
  82. });
  83. }
  84. function del(id){
  85. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
  86. myRequest("/admin/opinion/del/"+id,"post",{},function(res){
  87. layer.msg(res.msg)
  88. setTimeout(function(){
  89. window.location.reload();
  90. },1500)
  91. });
  92. });
  93. }
  94. $('.menu-switch').click(function(){
  95. id = $(this).attr('id');
  96. state = $(this).attr('state');
  97. console.log(id)
  98. console.log(state)
  99. if(state == "on"){
  100. $('.pid-'+id).hide();
  101. $(this).attr("state","off")
  102. $(this).removeClass('mdi-menu-down').addClass('mdi-menu-right');
  103. }else{
  104. $('.pid-'+id).show();
  105. $(this).attr("state","on")
  106. $(this).removeClass('mdi-menu-right').addClass('mdi-menu-down');
  107. }
  108. })
  109. </script>
  110. @endsection