apply_list.blade.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. @extends('layouts.base')
  2. @section('title', '申请列表')
  3. @section('content')
  4. <link href="{{static_url('yunshop/css/member.css')}}" media="all" rel="stylesheet" type="text/css"/>
  5. <div class="w1200 m0a">
  6. <div class="rightlist">
  7. <div class="right-titpos">
  8. <ul class="add-snav">
  9. <li class="active">申请列表</li>
  10. </ul>
  11. </div>
  12. <!-- 新增加右侧顶部三级菜单结束 -->
  13. <div class="panel panel-info"><!--
  14. <div class="panel-heading">筛选</div>-->
  15. <div class="panel-body">
  16. <form action="" method="post" class="form-horizontal" role="form" id="form1">
  17. <input type="hidden" name="route" value="plugin.merchant.backend.merchant-apply.index" id="route" />
  18. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  19. {{--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">微店等级</label>--}}
  20. <div class="">
  21. <input name='search[member]' class='form-control' value="{{$request['member']}}" placeholder="会员昵称/手机号/会员ID">
  22. </div>
  23. </div>
  24. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  25. {{--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">微店等级</label>--}}
  26. <div class="">
  27. <select name='search[is_center]' class='form-control'>
  28. <option value='' >全部</option>
  29. <option value='1'@if($request['is_center'] == 1)
  30. selected
  31. @endif>招商中心申请</option>
  32. <option value='0'@if($request['is_center'] == '0')
  33. selected
  34. @endif>招商员申请</option>
  35. </select>
  36. </div>
  37. </div>
  38. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  39. <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label"></label>-->
  40. <div class="">
  41. <button type="button" name="export" value="1" id="export" class="btn btn-default excel back ">导出 Excel</button>
  42. <input type="hidden" name="token" value="{{$var['token']}}" />
  43. <button class="btn btn-success "><i class="fa fa-search"></i> 搜索</button>
  44. </div>
  45. </div>
  46. </form>
  47. </div>
  48. </div><div class="clearfix">
  49. <div class="panel panel-default">
  50. <div class="panel-heading">总数:{{$list->total()}} </div>
  51. <div class="panel-body" style="margin-bottom:200px">
  52. <table class="table table-hover" style="overflow:visible">
  53. <thead class="navbar-inner">
  54. <tr>
  55. <th style='width:4%;text-align: center;'>ID</th>
  56. <th style='width:12%;text-align: center;'>会员</th>
  57. <th style='width:10%;text-align: center;'>姓名<br>手机号</th>
  58. <th style='width:8%;text-align: center;'>申请身份</th>
  59. <th style='width:16%;text-align: center;'>申请时间</th>
  60. <th style='width:8%;text-align: center;'>消费金额</th>
  61. <th style='width:8%;text-align: center;'>下线人数<br>一级</th>
  62. <th style='width:12%;text-align: center;'>下线消费金额</th>
  63. <th style='width:8%;text-align: center;'>状态</th>
  64. <th style='width:8%;text-align: center;'>审核</th>
  65. </tr>
  66. </thead>
  67. <tbody>
  68. @foreach($list as $row)
  69. <tr>
  70. <td style="text-align: center;">
  71. {{$row->id}}
  72. </td>
  73. <td style="text-align: center;">
  74. <img src='{{$row->hasOneMember->avatar}}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc' />
  75. <br/>
  76. <a href="{!! yzWebUrl('member.member.detail',['id' => $row->hasOneMember->uid])!!}">@if ($row->hasOneMember->nickname) {{$row->hasOneMember->nickname}} @else {{$row->hasOneMember->mobile}} @endif</a>
  77. </td>
  78. <td style="text-align: center;">
  79. {{$row->hasOneMember->realname}}<br>
  80. {{$row->hasOneMember->mobile}}
  81. </td>
  82. <td style="text-align: center;">{{$row->apply_name}}</td>
  83. <td style="text-align: center;">
  84. {{$row->created_at}}
  85. </td>
  86. <td style="text-align: center;">
  87. <label class="label label-info">{{$row->my_consumer_amount}}元</label>
  88. </td>
  89. <td style="text-align: center;">
  90. <label class="label label-info">{{$row->my_lower_count}}个</label>
  91. <td style="text-align: center;">
  92. <label class="label label-info">{{$row->my_lower_consumer_amount}}元</label>
  93. </td>
  94. <td style="position: relative;overflow: visible;">
  95. {{$row->status_name}}
  96. </td>
  97. <td style="position: relative;overflow: visible;">
  98. @if($row->status == 0)
  99. <a class="label label-default " href="{{yzWebUrl('plugin.merchant.backend.merchant-apply.operation', ['apply_id' => $row['id'], 'type' => -1])}}">驳回申请</a>
  100. <br>
  101. <a class="label label-default label-info" href="{{yzWebUrl('plugin.merchant.backend.merchant-apply.operation', ['apply_id' => $row['id'], 'type' => 1])}}">审核通过</a>
  102. @else
  103. <a class="label label-default label-info" href="#">已审核</a>
  104. @endif
  105. </td>
  106. </tr>
  107. @endforeach
  108. </tbody>
  109. </table>
  110. {!!$pager!!}
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <script language='javascript'>
  117. $('.umphp').hover(function () {
  118. var url = $(this).attr('data-url');
  119. $(this).addClass("selected");
  120. },
  121. function () {
  122. $(this).removeClass("selected");
  123. })
  124. $('.js-clip').each(function () {
  125. util.clip(this, $(this).attr('data-url'));
  126. });
  127. $(function () {
  128. $('#export').click(function(){
  129. $('#route').val("plugin.merchant.backend.merchant-apply.export");
  130. $('#form1').submit();
  131. $('#route').val("plugin.merchant.backend.merchant-apply.index");
  132. });
  133. });
  134. </script>
  135. @endsection