| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- @extends('base.base')
- @section('base')
- <!-- 内容区域 -->
- <div class="main-panel">
- <div class="content-wrapper">
- <div class="page-header">
- <h3 class="page-title">
- <span class="page-title-icon bg-gradient-primary text-white mr-2">
- <i class="mdi mdi-wrench"></i>
- </span>
- {{ __('auto.举报与反馈') }}
- </h3>
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="#">{{ __('auto.举报与反馈') }}</a></li>
- <li class="breadcrumb-item active" aria-current="page">{{ __('auto.反馈管理') }}</li>
- </ol>
- </nav>
- </div>
- <div class="row">
- <div class="col-lg-12 grid-margin stretch-card">
- <div class="card">
- <div class="card-body">
- <h4 class="card-title">{{ __('auto.意见反馈列表') }}</h4>
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>{{ __('auto.序号') }}</th>
- <th>ID</th>
- <th>{{ __('auto.用户名') }}</th>
- <th>{{ __('auto.反馈时间') }}</th>
- <th>{{ __('auto.反馈内容') }}</th>
- <th>{{ __('auto.邮件回复内容') }}</th>
- <th>{{ __('auto.操作') }}</th>
- </tr>
- </thead>
- <tbody>
- @foreach($list as $k=>$v)
- <tr>
- <td style="width: 5%">{{ $v->ID }}</td>
- <td style="width: 7%">
- <a href="/admin/global/id_find?UserID={{$v->UserID}}">
- {{$v->GameID}}
- </a>
- </td>
- <td style="width: 15%">{{ $v->NickName }}</td>
- <td style="width: 15%">{{ $v->CreateAt }}</td>
- <td style="width: 30%">{{ $v->Msg }}</td>
- <td style="width: 20%">{{ $v->Reply }}</td>
- <td>
- <input type="hidden" id="game_id" value="{{ $v->ID }}">
- <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text" onclick="reply({{ $v->GameID }})">
- {{ __('auto.回复') }}
- </button>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- <div class="box-footer clearfix">
- {{ __('auto.总共') }}
- <b>{{ $list->appends([
- ])->total() }}</b>
- {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
- {!! $list->links() !!}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- function reply(id){
- var page = layer.open({
- type: 2,
- title: '{{ __('auto.留言回复') }}',
- shadeClose: true,
- shade: 0.8,
- area: ['70%', '90%'],
- content: '/admin/opinion/reply/'+id
- });
- }
- function del(id){
- myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
- myRequest("/admin/opinion/del/"+id,"post",{},function(res){
- layer.msg(res.msg)
- setTimeout(function(){
- window.location.reload();
- },1500)
- });
- });
- }
- $('.menu-switch').click(function(){
- id = $(this).attr('id');
- state = $(this).attr('state');
- console.log(id)
- console.log(state)
- if(state == "on"){
- $('.pid-'+id).hide();
- $(this).attr("state","off")
- $(this).removeClass('mdi-menu-down').addClass('mdi-menu-right');
- }else{
- $('.pid-'+id).show();
- $(this).attr("state","on")
- $(this).removeClass('mdi-menu-right').addClass('mdi-menu-down');
- }
- })
- </script>
- @endsection
|