list.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('评论列表'))
  4. <div id="goods-comment-list" class="w1200 m0a">
  5. <link href="../addons/sz_yi/template/mobile/default/static/js/star-rating.css" media="all" rel="stylesheet"
  6. type="text/css"/>
  7. <script src="../addons/sz_yi/template/mobile/default/static/js/star-rating.js" type="text/javascript"></script>
  8. <link href="{{static_url('yunshop/goods/goods.css')}}" media="all" rel="stylesheet" type="text/css"/>
  9. <div class="right-titpos">
  10. <ul class="add-snav">
  11. <li class="active"><a href="#">评价管理</a></li>
  12. </ul>
  13. </div>
  14. <form action="" method="post" class="form-horizontal">
  15. <div class="panel panel-info">
  16. <div class="panel-body">
  17. <div class="form-group col-xs-12 col-sm-12 col-lg-3">
  18. <!-- <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">关键词</label>-->
  19. <div class="">
  20. <input class="form-control" name="search[project_title]" id="" type="text"
  21. value="{{$search['project_title']}}" placeholder="{{$lang_set['project']}}名称">
  22. </div>
  23. </div>
  24. <div class="form-group col-xs-12 col-sm-12 col-lg-3">
  25. <!-- <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">关键词</label>-->
  26. <div class="">
  27. <input class="form-control" name="search[store_name]" id="" type="text"
  28. value="{{$search['store_name']}}" placeholder="门店名称">
  29. </div>
  30. </div>
  31. <div class="form-group col-xs-12 col-sm-12 col-lg-3">
  32. <!-- <label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">关键词</label>-->
  33. <div class="">
  34. <input class="form-control" name="search[worker_name]" id="" type="text"
  35. value="{{$search['worker_name']}}" placeholder="{{$lang_set['worker']}}姓名">
  36. </div>
  37. </div>
  38. <div class="form-group col-xs-12 col-sm-12 col-lg-3">
  39. <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">类型</label>-->
  40. <div class="">
  41. <select name='search[fade]' class='form-control'>
  42. <option value='' @if($search['fade']=='') selected @endif>全部评价类型</option>
  43. <option value='2' @if($search['fade']=='2') selected @endif>模拟评价</option>
  44. <option value='1' @if($search['fade']=='1') selected @endif >真实评价</option>
  45. </select>
  46. </div>
  47. </div>
  48. <div class="form-group col-xs-12 col-sm-12 col-lg-5 search-time">
  49. <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">按时间</label>-->
  50. <div class="time-select" >
  51. <select name='search[searchtime]' class='form-control'>
  52. <option value='' @if(empty($search['searchtime'])) selected @endif>不搜索时间区间</option>
  53. <option value='1' @if($search['searchtime']==1) selected @endif >搜索时间区间</option>
  54. </select>
  55. </div>
  56. <div class="time-btn" >
  57. <div class="search-select">
  58. </div>
  59. {!! 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) !!}
  60. </div>
  61. </div>
  62. <div class="form-group col-xs-12 col-sm-1 col-lg-1 search-btn">
  63. <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label"> </label>-->
  64. <div class="btn-input">
  65. <input type="submit" class="btn btn-block btn-success" value="搜索">
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </form>
  71. <div class='panel panel-default'>
  72. <div class='panel-heading'>
  73. 评价管理 (数量: {{$total}} 条)
  74. </div>
  75. <div class='panel-body'>
  76. <table class="table">
  77. <thead>
  78. <tr>
  79. <th style='width:10%;'>{{$lang_set['project']}}</th>
  80. <th style='width:8%;'>门店</th>
  81. <th style='width:6%;'>{{$lang_set['worker']}}</th>
  82. <th style='width:8%;'>评价者</th>
  83. <th style='width:10%;'>评价时间</th>
  84. <th style='width:8%;'>操作</th>
  85. </tr>
  86. </thead>
  87. <tbody>
  88. @foreach($list as $row)
  89. <tr>
  90. <td>
  91. {{$row['has_one_project']['title']}}
  92. <div style="color:#f39c12">
  93. @if($row['project_level'] >= 1) <i class='fa fa-star'></i> @else <i
  94. class='fa fa-star-o'></i> @endif
  95. @if($row['project_level'] >= 2) <i class='fa fa-star'></i> @else <i
  96. class='fa fa-star-o'></i> @endif
  97. @if($row['project_level'] >= 3) <i class='fa fa-star'></i> @else <i
  98. class='fa fa-star-o'></i> @endif
  99. @if($row['project_level'] >= 4) <i class='fa fa-star'></i> @else <i
  100. class='fa fa-star-o'></i> @endif
  101. @if($row['project_level'] >= 5) <i class='fa fa-star'></i> @else <i
  102. class='fa fa-star-o'></i> @endif
  103. </div>
  104. </td>
  105. <td>
  106. {{$row['has_one_store']['store_name']}}
  107. <div style="color:#f39c12">
  108. @if($row['store_level'] >= 1) <i class='fa fa-star'></i> @else <i
  109. class='fa fa-star-o'></i> @endif
  110. @if($row['store_level'] >= 2) <i class='fa fa-star'></i> @else <i
  111. class='fa fa-star-o'></i> @endif
  112. @if($row['store_level'] >= 3) <i class='fa fa-star'></i> @else <i
  113. class='fa fa-star-o'></i> @endif
  114. @if($row['store_level'] >= 4) <i class='fa fa-star'></i> @else <i
  115. class='fa fa-star-o'></i> @endif
  116. @if($row['store_level'] >= 5) <i class='fa fa-star'></i> @else <i
  117. class='fa fa-star-o'></i> @endif
  118. </div>
  119. </td>
  120. <td>
  121. {{$row['has_one_worker']['name']}}
  122. <div style="color:#f39c12">
  123. @if($row['worker_level'] >= 1) <i class='fa fa-star'></i> @else <i
  124. class='fa fa-star-o'></i> @endif
  125. @if($row['worker_level'] >= 2) <i class='fa fa-star'></i> @else <i
  126. class='fa fa-star-o'></i> @endif
  127. @if($row['worker_level'] >= 3) <i class='fa fa-star'></i> @else <i
  128. class='fa fa-star-o'></i> @endif
  129. @if($row['worker_level'] >= 4) <i class='fa fa-star'></i> @else <i
  130. class='fa fa-star-o'></i> @endif
  131. @if($row['worker_level'] >= 5) <i class='fa fa-star'></i> @else <i
  132. class='fa fa-star-o'></i> @endif
  133. </div>
  134. </td>
  135. <td>
  136. <img src="{{tomedia($row['head_img_url'])}}"
  137. style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  138. {{$row['nick_name']}}
  139. </td>
  140. <td>{{$row['created_at']}}</td>
  141. <td>
  142. @if(!empty($row['uid']))
  143. <a class='btn btn-default'
  144. href="{{yzWebUrl('plugin.appointment.admin.comment.reply', ['id' => $row['id']])}}"
  145. title='进行回复'><i class="fa fa-reply"></i>
  146. </a>
  147. @else
  148. <a class='btn btn-default'
  149. href="{{yzWebUrl('plugin.appointment.admin.comment.updated', ['id' => $row['id']])}}"
  150. title='修改评价'><i class="fa fa-edit"></i>
  151. </a>
  152. @endif
  153. <a class='btn btn-default'
  154. href="{{yzWebUrl('plugin.appointment.admin.comment.deleted', ['id' => $row['id']])}}"
  155. onclick="return confirm('确认删除此评价吗?');return false;"><i class="fa fa-remove"></i>
  156. </a>
  157. </td>
  158. </tr>
  159. @endforeach
  160. </tbody>
  161. </table>
  162. {!! $pager !!}
  163. </div>
  164. <div class='panel-footer'>
  165. <a class='btn btn-info' href="{{yzWebUrl('plugin.appointment.admin.comment.addComment')}}"><i
  166. class='fa fa-plus'></i> 添加评价</a>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. @endsection