index.blade.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @extends('admin.public.base')
  2. @section('body_class')
  3. style="margin: 0 auto;width: 96%;padding: 30px 0px;"
  4. @endsection
  5. @section('content')
  6. <form action="" method="get" class="form-horizontal form-line">
  7. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  8. <input type="text" class="form-control" name="id" value="{{request('id','')}}" placeholder="请输入企微ID查询" />
  9. </div>
  10. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  11. <input type="text" class="form-control" name="name" value="{{request('name','')}}" placeholder="请输入客户昵称查询" />
  12. </div>
  13. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  14. <input type="text" class="form-control" name="phone" value="{{request('phone','')}}" placeholder="请输入客户手机查询" />
  15. </div>
  16. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  17. <input type="text" class="form-control" name="remark" value="{{request('remark','')}}" placeholder="请输入客户备注查询" />
  18. </div>
  19. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  20. <input type="date" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入创建时间查询" />
  21. </div>
  22. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  23. <a href="{{url('admin/custom/index')}}" class="btn btn-sm btn-default" >重置</a>
  24. </form>
  25. <div class="row">
  26. <div class="col-xs-12">
  27. <div class="table-responsive">
  28. <table class="table table-striped table-bordered table-hover">
  29. <thead>
  30. <tr>
  31. <th>企微ID</th>
  32. <th>客户头像</th>
  33. <th>昵称备注</th>
  34. <th>备注手机</th>
  35. <th>跟进客服</th>
  36. <th>客服标签</th>
  37. <th>系统用户</th>
  38. <th>创建时间</th>
  39. <th>修改时间</th>
  40. <th>操作</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. @foreach ($list as $a)
  45. <tr>
  46. <td> {{$a['external_userid']}} </td>
  47. <td> <img src="{{$a['avatar']}}" height="30" alt="{{$a['name']}}"> </td>
  48. <td> {{$a['name']}} <span class="btn btn-xs btn-default">{{$a['remark']}}</span> </td>
  49. <td> {{$a['remark_mobiles']}}</td>
  50. <td>
  51. @foreach ($partUserList as $part)
  52. @foreach ($part['user_list'] as $user)
  53. @if( $user['userid'] == $a['work_userid'] )
  54. {{$user['name']}}
  55. @endif
  56. @endforeach
  57. @endforeach
  58. </td>
  59. <td>
  60. @foreach ($corpTagList as $group)
  61. @foreach ($group['tag'] as $tag)
  62. @if( in_array($tag['id'],$a['tags_list']))
  63. <span class="btn btn-default btn-xs">{{$tag['name']}}</span>
  64. @endif
  65. @endforeach
  66. @endforeach
  67. </td>
  68. <td> <a href="{{url('admin/custom/index?'.http_build_query(['custom_code'=>$a['custom_code']]))}}">{{$a['custom_code']}}</a> </td>
  69. <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
  70. <td> {{date('Y/m/d H:i:s',$a['update_time'])}}</td>
  71. <td>
  72. <a class="btn btn-success btn-sm" href="{{url('admin/work_external/mark_tags?'.http_build_query(['external_userid'=>$a['external_userid'],'work_userid'=>$a['work_userid']]))}}">
  73. 客户标签
  74. </a>
  75. </td>
  76. </tr>
  77. @endforeach
  78. <tr>
  79. <td colspan="20" class="page">{{$list->render()}}</td>
  80. </tr>
  81. <tr>
  82. <td colspan="20">总计 {{$list->total()}} 个客户</td>
  83. </tr>
  84. </tbody>
  85. </table>
  86. </div>
  87. </div>
  88. </div>
  89. @endsection