platformRecord.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. 三方数据统计
  12. </h3>
  13. <nav aria-label="breadcrumb">
  14. <ol class="breadcrumb">
  15. <li class="breadcrumb-item"><a href="#">三方数据统计</a></li>
  16. <li class="breadcrumb-item active" aria-current="page">三方数据统计</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. <form class="well form-inline margin-top-20" method="get"
  25. action='/admin/global/platform_record'>
  26. <spen style="padding-left: 10px">选择时间:</spen>
  27. <input type="date" step="01" name="date" class="form-control" id="start_time"
  28. value="{{$date}}"/>&nbsp;&nbsp;
  29. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="搜索"/>&nbsp;&nbsp;
  30. </form>
  31. <h4>当前选择日期所在月统计数据</h4>
  32. <table class="table table-bordered">
  33. <thead>
  34. <tr>
  35. <th>月份</th>
  36. <th>渠道</th>
  37. <th>总下注</th>
  38. <th>用户赢</th>
  39. <th>平台输赢(下注-用户赢)</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. @foreach($monthData as $mitem)
  44. <tr>
  45. <td>{{date('Ym',strtotime($date))}}</td>
  46. <td>{{ $mitem->platform }}</td>
  47. <td>{{ $mitem->month_bet/100 }}</td>
  48. <td>{{ $mitem->month_win/100 }}</td>
  49. <td>{{ ($mitem->month_bet-$mitem->month_win)/100 }}</td>
  50. </tr>
  51. @endforeach
  52. </tbody>
  53. </table>
  54. <br/>
  55. <hr/>
  56. <br/>
  57. <table class="table table-bordered">
  58. <thead>
  59. <tr>
  60. <th>日期</th>
  61. <th>渠道</th>
  62. <th>总下注</th>
  63. <th>用户赢</th>
  64. <th>平台输赢(下注-用户赢)</th>
  65. <th>当天下注</th>
  66. <th>当天用户赢</th>
  67. <th>当天平台输赢</th>
  68. <th>当天游戏用户数</th>
  69. <th></th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. @foreach($list as $item)
  74. <tr>
  75. <td>{{ $item->ldate }}</td>
  76. <td>{{ $item->platform }}</td>
  77. <td>{{ $item->all_bet/100 }}</td>
  78. <td>{{ $item->all_win/100 }}</td>
  79. <td>{{ ($item->all_bet-$item->all_win)/100 }}</td>
  80. <td>{{ $item->current_bet/100 }}</td>
  81. <td>{{ $item->current_win/100 }}</td>
  82. <td>{{ ($item->current_bet-$item->current_win)/100 }}</td>
  83. <td>{{ $item->current_play }}</td>
  84. <td>
  85. <button class="btn btn-sm btn-gradient-danger"
  86. onclick="show_sub_log('{{$item->lid}}')">查看
  87. </button>
  88. </td>
  89. </tr>
  90. @endforeach
  91. </tbody>
  92. </table>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <script>
  100. function show_sub_log(lid) {
  101. var page = layer.open({
  102. type: 2,
  103. title: '子游戏记录',
  104. shadeClose: true,
  105. shade: 0.8,
  106. area: ['60%', '70%'],
  107. content: '/admin/global/sub_detail/' + lid,
  108. });
  109. }
  110. </script>
  111. @endsection