agentCommisionState.blade.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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-settings"></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. <table class="table table-bordered">
  26. <thead>
  27. <tr>
  28. <th >{{ __('auto.名称') }}</th>
  29. <th >{{ __('auto.操作') }}</th>
  30. <th >{{ __('auto.操作人') }}</th>
  31. <th >{{ __('auto.操作时间') }}</th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. @foreach($list as $k=>$v)
  36. <tr>
  37. <td>{{ $v->StatusString }}</td>
  38. <td>
  39. @if ($v->StatusValue == 1)
  40. <button type="button" class="btn btn-sm btn-danger" onclick="switch_control('0')">{{ __('auto.关闭') }}</button>
  41. @elseif ($v->StatusValue == 0)
  42. <button type="button" class="btn btn-sm btn-primary" onclick="switch_control('1')">{{ __('auto.开启') }}</button>
  43. @endif
  44. </td>
  45. <td>{{ $v->account }}</td>
  46. <td>{{ $v->create_at }}</td>
  47. </tr>
  48. @endforeach
  49. </tbody>
  50. </table>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <script>
  58. function switch_control(StatusValue){
  59. myConfirm("{{ __('auto.操作不可逆,是否继续') }}?",function(){
  60. myRequest("/admin/global/AgentCommisionState","post",{StatusValue},function(res){
  61. layer.msg(res.msg)
  62. setTimeout(function(){
  63. window.location.reload();
  64. },1500)
  65. });
  66. });
  67. }
  68. </script>
  69. @endsection