| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- @extends('layouts.base')
- @section('content')
- @section('title', trans('评论列表'))
- <div id="goods-comment-list" class="w1200 m0a">
- <link href="../addons/sz_yi/template/mobile/default/static/js/star-rating.css" media="all" rel="stylesheet"
- type="text/css"/>
- <script src="../addons/sz_yi/template/mobile/default/static/js/star-rating.js" type="text/javascript"></script>
- <link href="{{static_url('yunshop/goods/goods.css')}}" media="all" rel="stylesheet" type="text/css"/>
- <div class="right-titpos">
- <ul class="add-snav">
- <li class="active"><a href="#">评价管理</a></li>
- </ul>
- </div>
- <form action="" method="post" class="form-horizontal">
- <div class="panel panel-info">
- <div class="panel-body">
- <div class="form-group col-xs-12 col-sm-12 col-lg-3">
- <!-- <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">关键词</label>-->
- <div class="">
- <input class="form-control" name="search[project_title]" id="" type="text"
- value="{{$search['project_title']}}" placeholder="{{$lang_set['project']}}名称">
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-12 col-lg-3">
- <!-- <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">关键词</label>-->
- <div class="">
- <input class="form-control" name="search[store_name]" id="" type="text"
- value="{{$search['store_name']}}" placeholder="门店名称">
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-12 col-lg-3">
- <!-- <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">关键词</label>-->
- <div class="">
- <input class="form-control" name="search[worker_name]" id="" type="text"
- value="{{$search['worker_name']}}" placeholder="{{$lang_set['worker']}}姓名">
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-12 col-lg-3">
- <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">类型</label>-->
- <div class="">
- <select name='search[fade]' class='form-control'>
- <option value='' @if($search['fade']=='') selected @endif>全部评价类型</option>
- <option value='2' @if($search['fade']=='2') selected @endif>模拟评价</option>
- <option value='1' @if($search['fade']=='1') selected @endif >真实评价</option>
- </select>
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-12 col-lg-5 search-time">
- <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">按时间</label>-->
- <div class="time-select" >
- <select name='search[searchtime]' class='form-control'>
- <option value='' @if(empty($search['searchtime'])) selected @endif>不搜索时间区间</option>
- <option value='1' @if($search['searchtime']==1) selected @endif >搜索时间区间</option>
- </select>
- </div>
- <div class="time-btn" >
- <div class="search-select">
- </div>
- {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', ['starttime'=>date('Y-m-d H:i', $search['starttime']), 'endtime'=>date('Y-m-d H:i',$search['endtime']),'start'=>0,'end'=>0], true) !!}
- </div>
- </div>
- <div class="form-group col-xs-12 col-sm-1 col-lg-1 search-btn">
- <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label"> </label>-->
- <div class="btn-input">
- <input type="submit" class="btn btn-block btn-success" value="搜索">
- </div>
- </div>
- </div>
- </div>
- </form>
- <div class='panel panel-default'>
- <div class='panel-heading'>
- 评价管理 (数量: {{$total}} 条)
- </div>
- <div class='panel-body'>
- <table class="table">
- <thead>
- <tr>
- <th style='width:10%;'>{{$lang_set['project']}}</th>
- <th style='width:8%;'>门店</th>
- <th style='width:6%;'>{{$lang_set['worker']}}</th>
- <th style='width:8%;'>评价者</th>
- <th style='width:10%;'>评价时间</th>
- <th style='width:8%;'>操作</th>
- </tr>
- </thead>
- <tbody>
- @foreach($list as $row)
- <tr>
- <td>
- {{$row['has_one_project']['title']}}
- <div style="color:#f39c12">
- @if($row['project_level'] >= 1) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['project_level'] >= 2) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['project_level'] >= 3) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['project_level'] >= 4) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['project_level'] >= 5) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- </div>
- </td>
- <td>
- {{$row['has_one_store']['store_name']}}
- <div style="color:#f39c12">
- @if($row['store_level'] >= 1) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['store_level'] >= 2) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['store_level'] >= 3) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['store_level'] >= 4) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['store_level'] >= 5) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- </div>
- </td>
- <td>
- {{$row['has_one_worker']['name']}}
- <div style="color:#f39c12">
- @if($row['worker_level'] >= 1) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['worker_level'] >= 2) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['worker_level'] >= 3) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['worker_level'] >= 4) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- @if($row['worker_level'] >= 5) <i class='fa fa-star'></i> @else <i
- class='fa fa-star-o'></i> @endif
- </div>
- </td>
- <td>
- <img src="{{tomedia($row['head_img_url'])}}"
- style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
- {{$row['nick_name']}}
- </td>
- <td>{{$row['created_at']}}</td>
- <td>
- @if(!empty($row['uid']))
- <a class='btn btn-default'
- href="{{yzWebUrl('plugin.appointment.admin.comment.reply', ['id' => $row['id']])}}"
- title='进行回复'><i class="fa fa-reply"></i>
- </a>
- @else
- <a class='btn btn-default'
- href="{{yzWebUrl('plugin.appointment.admin.comment.updated', ['id' => $row['id']])}}"
- title='修改评价'><i class="fa fa-edit"></i>
- </a>
- @endif
- <a class='btn btn-default'
- href="{{yzWebUrl('plugin.appointment.admin.comment.deleted', ['id' => $row['id']])}}"
- onclick="return confirm('确认删除此评价吗?');return false;"><i class="fa fa-remove"></i>
- </a>
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- {!! $pager !!}
- </div>
- <div class='panel-footer'>
- <a class='btn btn-info' href="{{yzWebUrl('plugin.appointment.admin.comment.addComment')}}"><i
- class='fa fa-plus'></i> 添加评价</a>
- </div>
- </div>
- </div>
- </div>
- @endsection
|