register_config.blade.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. @extends('base.base')
  2. @section('base')
  3. <!-- 内容区域 -->
  4. <div class="main-panel">
  5. <div class="content-wrapper">
  6. <div class="page-header">
  7. <h3 class="page-title">
  8. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  9. <i class="mdi mdi-wrench"></i>
  10. </span>
  11. {{ __('auto.注册奖金配置') }}
  12. </h3>
  13. <nav aria-label="breadcrumb">
  14. <ol class="breadcrumb">
  15. <li class="breadcrumb-item"><a href="#">{{ __('auto.注册奖金配置') }}</a></li>
  16. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.推广赚金') }}</li>
  17. </ol>
  18. </nav>
  19. </div>
  20. <div class="row">
  21. <div class="col-lg-12 grid-margin stretch-card">
  22. <div class="card">
  23. <div class="card-body">
  24. <h4 class="card-title">{{ __('auto.注册奖金配置') }}</h4>
  25. <p class="card-description">
  26. <button type="button" class="btn btn-sm btn-gradient-success btn-icon-text"
  27. onclick="add()">
  28. <i class="mdi mdi-plus btn-icon-prepend"></i>
  29. {{ __('auto.配置添加') }}
  30. </button>
  31. </p>
  32. <table class="table table-bordered">
  33. <thead>
  34. <tr>
  35. <th>{{ __('auto.菜单名称') }}</th>
  36. <th>{{ __('auto.额度配置') }}</th>
  37. <th>{{ __('auto.下级每次生效增长额度') }}</th>
  38. <th>{{ __('auto.下级每次生效人数要求') }}</th>
  39. <th>{{ __('auto.下下级每次生效增长额度') }}</th>
  40. <th>{{ __('auto.下下级每次生效人数要求') }}</th>
  41. <th>{{ __('auto.操作') }}</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. @foreach($list as $val)
  46. <tr>
  47. <td>{{ $val->name }}</td>
  48. <td>{{ $val->quota_min }} - {{$val->quota_max}}</td>
  49. <td>{{$val->level_quota_min}} - {{$val->level_quota_max}}</td>
  50. <td>
  51. {{$val->level_quota_number}}
  52. </td>
  53. <td>{{ $val->two_level_quota_min }}-{{$val->two_level_quota_max}}</td>
  54. <td>
  55. {{$val->two_level_quota_number}}
  56. </td>
  57. <td>
  58. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text"
  59. onclick="update({{ $val->id }})">
  60. {{ __('auto.修改') }}
  61. <i class="mdi mdi-file-check btn-icon-append"></i>
  62. </button>
  63. </td>
  64. </tr>
  65. @endforeach
  66. </tbody>
  67. </table>
  68. <div class="box-footer clearfix" id="pages">
  69. {{ __('auto.总共') }} <b>{{ $list->appends([
  70. ])->total() }}</b>
  71. {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  72. {!! $list->links() !!}
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <script>
  81. function add() {
  82. layer.open({
  83. type: 2,
  84. title: '{{ __('auto.添加配置') }}',
  85. shadeClose: true,
  86. shade: 0.8,
  87. area: ['60%', '80%'],
  88. content: '/admin/extension/register_config_add'
  89. });
  90. }
  91. function update(id) {
  92. var page = layer.open({
  93. type: 2,
  94. title: '{{ __('auto.修改配置') }}',
  95. shadeClose: true,
  96. shade: 0.8,
  97. area: ['70%', '90%'],
  98. content: '/admin/extension/register_config_update/' + id
  99. });
  100. }
  101. function block(id, status) {
  102. myConfirm("{{ __('auto.是否继续') }}?", function () {
  103. myRequest("/admin/withdrawal/block/" + id, "post", {status}, function (res) {
  104. layer.msg(res.msg)
  105. setTimeout(function () {
  106. window.location.reload();
  107. }, 1500)
  108. });
  109. });
  110. }
  111. </script>
  112. @endsection