operation.blade.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('分销商管理'))
  4. <div class="right-titpos">
  5. <ul class="add-snav">
  6. <li class="active"><a href="#">分销商管理</a></li>
  7. </ul>
  8. </div>
  9. <form action="" method="post" class="form-horizontal" id="form1">
  10. <div class="panel panel-info">
  11. <div class="panel-body">
  12. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  13. <div class="">
  14. <input type="text" class="form-control" name="search[order_sn]" value="{{$search['order_sn']?$search['order_sn']:''}}" placeholder="订单编号"/>
  15. </div>
  16. </div>
  17. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  18. <div class="">
  19. <button class="btn btn-success "><i class="fa fa-search"></i> 搜索</button>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </form>
  25. <div class='panel panel-default'>
  26. <div class='panel-heading'>
  27. 数量: {{$list->total()}} 条
  28. </div>
  29. <div class='panel-body'>
  30. <table class="table table-hover" style="overflow:visible;">
  31. <thead>
  32. <tr>
  33. <th style='width:6%;'>ID</th>
  34. <th style='width:16%;'>订单号</th>
  35. <th style='width:12%;'>购买人</th>
  36. <th style='width:12%;'>上级</th>
  37. <th style='width:8%;'>比例</th>
  38. <th style='width:52%;'>详情</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. @foreach($list as $row)
  43. <tr>
  44. <td>
  45. {{$row->id}}
  46. </td>
  47. <td>
  48. {{$row->hasOneOrder->order_sn}}
  49. </td>
  50. <td>
  51. <img src="{{tomedia($row->hasOneBuyMember->avatar)}}"
  52. style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  53. </br>
  54. {{$row->hasOneBuyMember->nickname}}
  55. </td>
  56. <td>
  57. <img src="{{tomedia($row->hasOneMember->avatar)}}"
  58. style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  59. </br>
  60. {{$row->hasOneMember->nickname}}
  61. </td>
  62. <td>
  63. {{$row->ratio}}%
  64. </td>
  65. <td>
  66. {{$row->content}}
  67. </td>
  68. </tr>
  69. @endforeach
  70. </tbody>
  71. </table>
  72. {!! $pager !!}
  73. </div>
  74. </div>
  75. <div style="width:100%;height:150px;"></div>
  76. <script type="text/javascript">
  77. $(function () {
  78. $('#search').click(function () {
  79. $('#form1').attr('action', '{!! yzWebUrl('plugin.commission.admin.agent.index') !!}');
  80. $('#form1').submit();
  81. });
  82. });
  83. </script>
  84. @endsection