user_source.blade.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. {{ __('auto.玩家ID:') }}{{$GameID ?? 0}}
  26. <table class="table table-bordered">
  27. <thead>
  28. <tr>
  29. <th>{{ __('auto.奖励金额') }}</th>
  30. <th>{{ __('auto.系统发放时间') }}</th>
  31. <th>{{ __('auto.等级') }}</th>
  32. <th>{{ __('auto.来源玩家') }}</th>
  33. <th>{{ __('auto.咖啡') }}</th>
  34. <th>{{ __('auto.茶叶') }}</th>
  35. <th>{{ __('auto.对局') }}</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. @foreach($list as $val)
  40. <tr>
  41. <td>{{ $val->toGold }}</td>
  42. <td>{{$val->UpdateAt}}</td>
  43. <td>
  44. @if ($val->Level == 1)
  45. {{ __('auto.下级') }}
  46. @else
  47. {{ __('auto.下下级') }}
  48. @endif
  49. </td>
  50. {{-- @foreach($val->InvitationUserIDs as $v)--}}
  51. <td>
  52. {!! getGameID($val->UserID,$val->InvitationUserIDs) !!}
  53. </td>
  54. <td>{{getUserInfo($val->InvitationUserIDs)->Recharge ?? 0}}</td>
  55. <td>
  56. {{getUserInfo($val->InvitationUserIDs)->Withdraw ?? 0}}
  57. </td>
  58. <td>
  59. {{getUserInfo($val->InvitationUserIDs)->gameNum ?? 0}}
  60. </td>
  61. {{-- <td><a href="">{{$v['GameID']}}</a></td>--}}
  62. {{-- @endforeach--}}
  63. </tr>
  64. @endforeach
  65. </tbody>
  66. </table>
  67. <div class="box-footer clearfix" id="pages">
  68. {{ __('auto.总共') }} <b>{{ $list->appends([
  69. 'UserID'=>$UserID ?? 0,
  70. 'orderIds'=>$orderIds ?? 0,
  71. 'Type' => $Type
  72. ])->total() }}</b>
  73. {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  74. {!! $list->links() !!}
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <script>
  83. function add() {
  84. layer.open({
  85. type: 2,
  86. title: '{{ __('auto.添加配置') }}',
  87. shadeClose: true,
  88. shade: 0.8,
  89. area: ['60%', '80%'],
  90. content: '/admin/extension/register_config_add'
  91. });
  92. }
  93. function update(id) {
  94. var page = layer.open({
  95. type: 2,
  96. title: '{{ __('auto.修改配置') }}',
  97. shadeClose: true,
  98. shade: 0.8,
  99. area: ['70%', '90%'],
  100. content: '/admin/extension/register_config_update/' + id
  101. });
  102. }
  103. function upperLimitFunc() {
  104. var page = layer.open({
  105. type: 2,
  106. title: '{{ __('auto.修改配置') }}',
  107. shadeClose: true,
  108. shade: 0.8,
  109. area: ['60%', '70%'],
  110. content: '/admin/extension/upper_limit'
  111. });
  112. }
  113. function block(id, status) {
  114. myConfirm("{{ __('auto.是否继续') }}?", function () {
  115. myRequest("/admin/withdrawal/block/" + id, "post", {status}, function (res) {
  116. layer.msg(res.msg)
  117. setTimeout(function () {
  118. window.location.reload();
  119. }, 1500)
  120. });
  121. });
  122. }
  123. </script>
  124. @endsection