level_list.blade.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('分销等级管理'))
  4. <section class="content">
  5. <div class="right-titpos">
  6. <ul class="add-snav">
  7. <li class="active"><a href="">分销等级管理</a></li>
  8. </ul>
  9. </div>
  10. <form action="" method="post" onsubmit="return formcheck(this)">
  11. <div class='panel panel-default'>
  12. <div class='panel-body'>
  13. <div class="table-responsive ">
  14. <table class="table table-hover">
  15. <thead>
  16. <tr>
  17. <th>等级权重</th>
  18. <th>等级名称</th>
  19. @if($set['level']>=1)
  20. <th>一级比例</th> @endif
  21. @if($set['level']>=2)
  22. <th>二级比例</th> @endif
  23. @if($set['level']>=3)
  24. <th>三级比例</th> @endif
  25. <th style="width: 210px;">升级条件</th>
  26. <th>等级人数</th>
  27. <th style="15%">操作</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. @foreach($list as $row)
  32. <tr>
  33. <td>{{$row->level}}</td>
  34. <td>{{$row->name}}</td>
  35. @if($set['level']>=1)
  36. <td>{{$row->first_level}}%</td>
  37. @endif
  38. @if($set['level']>=2)
  39. <td>{{$row->second_level}}%</td>
  40. @endif
  41. @if($set['level']>=3)
  42. <td>{{$row->third_level}}%</td>
  43. @endif
  44. <td>
  45. @if($row['upgrades'])
  46. @foreach($row['upgrades'] as $type => $upgrade)
  47. @if($type == 'self_order_after')
  48. @unset($upgrade)
  49. @endif
  50. @if($type != 'goods' && $type != 'self_order_after' && $type != 'buy_and_sum' && $type != 'many_good')
  51. {{$upgrade['type']}}:{{$upgrade['value']}} {{$upgrade['unit']}}</br>
  52. @else
  53. {{$upgrade['type']}}</br><i></i>
  54. @endif
  55. @endforeach
  56. @else
  57. 无升级条件
  58. @endif
  59. </td>
  60. <td>
  61. {{$row->agent_count}}
  62. </td>
  63. <td>
  64. <a class='btn btn-default' href="{{yzWebUrl("plugin.commission.admin.level.edit", ['id'=>$row['id']])}}">编辑</a>
  65. <a class='btn btn-default' href="{{yzWebUrl("plugin.commission.admin.level.deleted", ['id'=>$row['id']])}}"
  66. onclick="return confirm('确认删除此等级吗?');return false;">删除</a>
  67. </td>
  68. </tr>
  69. @endforeach
  70. </tbody>
  71. </table>
  72. </div>
  73. </div>
  74. {!! $pager !!}
  75. <div class='panel-footer'>
  76. <a class='btn btn-primary'
  77. href="{{yzWebUrl("plugin.commission.admin.level.add")}}"><i
  78. class="fa fa-plus"></i> 添加新等级</a>
  79. </div>
  80. </div>
  81. </form>
  82. </section><!-- /.content -->
  83. @endsection