index.blade.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. @extends('base.base')
  2. @section('base')
  3. <!-- 内容区域 -->
  4. <style type="text/css">
  5. .table th {
  6. padding: 0.8375rem;
  7. vertical-align: top;
  8. border-top: 1px solid #ebedf2;
  9. }
  10. </style>
  11. <div class="main-panel">
  12. <div class="content-wrapper">
  13. <div class="page-header">
  14. <h3 class="page-title">
  15. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  16. <i class="mdi mdi-settings"></i>
  17. </span>
  18. {{ __('auto.全局报表') }}
  19. </h3>
  20. <nav aria-label="breadcrumb">
  21. <ol class="breadcrumb">
  22. <li class="breadcrumb-item"><a href="#">{{ __('auto.全局报表') }}</a></li>
  23. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.全局报表') }}</li>
  24. </ol>
  25. </nav>
  26. </div>
  27. <div class="row">
  28. <div class="col-lg-12 grid-margin stretch-card">
  29. <div class="card">
  30. <div class="card-body">
  31. <h4 class="card-title">{{ __('auto.全局报表') }}</h4>
  32. <table class="table table-bordered">
  33. <thead>
  34. <tr>
  35. <th width="6%">{{ __('auto.休眠用户:') }}{{ $accounts['dormancyUser'] }}</th>
  36. <th width="6%">{{ __('auto.流失用户:') }}{{ $accounts['lsUser'] }}</th>
  37. <th width="6%">{{ __('auto.总注册用户:') }}{{ $accounts['register'] }}</th>
  38. <th width="6%">{{ __('auto.总付费用户:') }}{{ $accounts['payUserCount'] }}</th>
  39. <th width="6%">{{ __('auto.总充值金额:') }}{{ $accounts['paySum'] }}</th>
  40. <th width="6%">{{ __('auto.累计茶叶金额:') }}{{ $accounts['withdraw'] }}</th>
  41. <th width="6%">{{ __('auto.累计茶叶回收金额:') }}{{ $accounts['withDrawRecovery'] }}</th>
  42. </tr>
  43. <tr>
  44. <th width="6%">{{ __('auto.赠送总金豆:') }}{{ $games['gameInfo']->Handsel ??0 }}</th>
  45. <th width="6%">{{ __('auto.签到总奖励:') }}{{ $accounts['totalSignIn'] }}</th>
  46. <th width="6%">{{ __('auto.总税收:') }}{{ $games['gameInfo']->Revenue ?? 0 }}</th>
  47. <th width="6%">{{ __('auto.总流水:') }}{{ $games['gameInfo']->flowing_water ??0 }}</th>
  48. <th width="6%">N{{ __('auto.总流水:') }}{{ $games['gameInfo']->flowing_water_new ??0 }}</th>
  49. <th width="6%">{{ __('auto.平台总输赢:') }}{{ $games['gameInfo']->Score ?? 0 }}</th>
  50. </tr>
  51. </thead>
  52. </table>
  53. <h4 class="card-title">{{ __('auto.库存报表') }}</h4>
  54. <table class="table table-bordered">
  55. <thead>
  56. <tr>
  57. <th width="6%">{{ __('auto.房间总库存:') }}{{ $games['roomStock'] }}</th>
  58. </tr>
  59. </thead>
  60. </table>
  61. <h4 class="card-title">{{ __('auto.周卡购买报表') }}</h4>
  62. <table class="table table-bordered">
  63. <thead>
  64. <tr>
  65. <th width="6%">{{ __('auto.周卡累计支付成功:') }}{{ $accounts['weeklyCard']['TotalPrice'] }}</th>
  66. <th width="6%">{{ __('auto.周卡累计未支付成功:') }}{{ $accounts['weeklyCard']['totalWaitPay']}}</th>
  67. <th width="6%">{{ __('auto.周卡累计领取金额:') }}{{ $accounts['weeklyCard']['TotalReward']}}</th>
  68. <th width="6%">VIP1{{ __('auto.礼包购买数量:') }}{{ $accounts['weeklyCard']['weekVIP1']->TotalCount }}</th>
  69. <th width="6%">VIP1{{ __('auto.礼包购买率:') }}{{ $accounts['weeklyCard']['VIP1Rate'] }}</th>
  70. </tr>
  71. <tr>
  72. <th width="6%">VIP2{{ __('auto.礼包购买数量:') }}{{ $accounts['weeklyCard']['weekVIP2']->TotalCount }}</th>
  73. <th width="6%">VIP2{{ __('auto.礼包购买率:') }}{{ $accounts['weeklyCard']['VIP2Rate'] }}</th>
  74. <th width="6%">VIP3{{ __('auto.礼包购买数量:') }}{{ $accounts['weeklyCard']['weekVIP3']->TotalCount }}</th>
  75. <th width="6%">VIP3{{ __('auto.礼包购买率:') }}{{ $accounts['weeklyCard']['VIP3Rate'] }}</th>
  76. <th width="6%">VIP4{{ __('auto.礼包购买数量:') }}{{ $accounts['weeklyCard']['weekVIP4']->TotalCount }}</th>
  77. </tr>
  78. <tr>
  79. <th width="6%">VIP4{{ __('auto.礼包购买率:') }}{{ $accounts['weeklyCard']['VIP4Rate'] }}</th>
  80. </tr>
  81. </thead>
  82. </table>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="row">
  88. <div class="col-lg-12 grid-margin stretch-card">
  89. <div class="card">
  90. <div class="card-body">
  91. <form class="well form-inline margin-top-20" method="post" action='/admin/global/report'>
  92. @csrf
  93. <spen style="padding-left: 10px">{{ __('auto.选择时间:') }}</spen>
  94. <input type="datetime-local" step="01" name="start_time" class="form-control"
  95. value="{{$start_time}}"/>&nbsp;&nbsp;
  96. <input type="datetime-local" step="01" name="end_time" class="form-control"
  97. value="{{$end_time}}"/>&nbsp;&nbsp;
  98. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.查询') }}"/>&nbsp;&nbsp;
  99. <a href="/admin/global/report"
  100. class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  101. <select class="form-control" name="date" style="color: black">
  102. <option value="">{{ __('auto.选择时间') }}</option>
  103. <option value="1">{{ __('auto.今日') }}</option>
  104. <option value="2">{{ __('auto.昨日') }}</option>
  105. <option value="3">{{ __('auto.本周') }}</option>
  106. <option value="4">{{ __('auto.本月') }}</option>
  107. </select>
  108. </form>
  109. <table class="table table-bordered" style="margin-top: 10px;">
  110. <tr>
  111. <td><b>{{ __('auto.流水:') }}{{$games['gameRoomInfo']->flowing_water ?? 0}}</b></td>
  112. <td><b>N{{ __('auto.流水:') }}{{$games['gameRoomInfo']->flowing_water_new ?? 0}}</b></td>
  113. <td><b>{{ __('auto.平台输赢:') }}{{$games['gameRoomInfo']->win_lose ?? 0}}</b></td>
  114. <td><b>{{ __('auto.税收:') }}{{$games['gameRoomInfo']->Revenue ?? 0}}</b></td>
  115. <td><b>{{ __('auto.累计游戏人数:') }}{{$games['totalGameCount']}}</b></td>
  116. <td><b>{{ __('auto.初中高比例:') }}{{$games['rateString']}}</b></td>
  117. </tr>
  118. <tr>
  119. <td><b>付费{{ __('auto.流水:') }}{{$games['gameRoomInfo']->pay_flowing_water ?? 0}}</b></td>
  120. <td><b>付费N{{ __('auto.流水:') }}{{$games['gameRoomInfo']->pay_flowing_water_new ?? 0}}</b></td>
  121. <td><b>付费{{ __('auto.平台输赢:') }}{{$games['gameRoomInfo']->pay_win_lose ?? 0}}</b></td>
  122. <td><b>付费{{ __('auto.税收:') }}{{$games['gameRoomInfo']->pay_Revenue ?? 0}}</b></td>
  123. <td><b>付费{{ __('auto.累计游戏人数:') }}{{$games['pay_totalGameCount']}}</b></td>
  124. {{-- <td><b>付费{{ __('auto.初中高比例:') }}{{$games['pay_rateString']}}</b></td>--}}
  125. </tr>
  126. <tr>
  127. <td >
  128. {{ __('auto.注册用户:') }}{{$dayAccountInfo->RegPeple ?? 0}}
  129. </td>
  130. <td >
  131. {{ __('auto.活跃用户:') }}{{ $dayAccountInfo->ActivePeple ?? 0 }}
  132. </td>
  133. <td >
  134. {{ __('auto.充值用户:') }}{{ $dayAccountInfo->PayPeple ?? 0 }}
  135. </td>
  136. <td >
  137. {{ __('auto.累计充值:') }}{{ $dayAccountInfo->PayTotal / 100 ?? 0 }}<br>
  138. </td>
  139. <td>
  140. {{ __('auto.累计茶叶:') }}{{ $dayAccountInfo->DrawTotal / 100 ?? 0 }}<br>
  141. </td>
  142. </tr>
  143. </table>
  144. <br>
  145. <div style="width: 80%;float: left;">
  146. <table class="table table-bordered" style="float: left;">
  147. <tr>
  148. <td>{{ __('auto.游戏房间') }}</td>
  149. <td>{{ __('auto.返奖率') }}</td>
  150. <td>{{ __('auto.流水') }}</td>
  151. <td>{{ __('auto.平台输赢') }}</td>
  152. <td>N{{ __('auto.流水') }}</td>
  153. <td>N{{ __('auto.返奖率') }}</td>
  154. <td>{{ __('auto.税收') }}</td>
  155. <td>{{ __('auto.游戏人数') }}</td>
  156. <td style="background-color: #f5f5f5">付费N{{ __('auto.流水') }}</td>
  157. <td style="background-color: #f5f5f5">付费{{ __('auto.平台输赢') }}</td>
  158. <td style="background-color: #f5f5f5">付费N{{ __('auto.返奖率') }}</td>
  159. <td style="background-color: #f5f5f5">付费{{ __('auto.税收') }}</td>
  160. <td style="background-color: #f5f5f5">付费{{ __('auto.游戏人数') }}</td>
  161. </tr>
  162. @foreach($games['gameList'] as $k=>$v)
  163. <tr>
  164. <td>{{$v->ServerName}}</td>
  165. <td style="color:<?php $rate = intval(($v->flowing_water-$v->win_lose)/max(1,$v->flowing_water)*100); echo $rate>=98?"red":($rate<=85?"green":"") ?>">{{number_format(($v->flowing_water-$v->win_lose)/max(1,$v->flowing_water)*100,1)}}%</td>
  166. <td>{{number_format($v->flowing_water)}}</td>
  167. <td>{{$v->win_lose}}</td>
  168. <td>{{$v->flowing_water_new}}</td>
  169. <td>{{number_format(($v->flowing_water_new-$v->win_lose)/max(1,$v->flowing_water_new)*100,1)}}%</td>
  170. <td>{{$v->Revenue}}</td>
  171. <td>{{$v->Cnt}}</td>
  172. <td style="background-color: #f5f5f5">{{$v->pay_flowing_water_new}}</td>
  173. <td style="background-color: #f5f5f5">{{$v->pay_win_lose}}</td>
  174. <td style="background-color: #f5f5f5">{{number_format(($v->pay_flowing_water_new-$v->pay_win_lose)/max(1,$v->pay_flowing_water_new)*100,1)}}%</td>
  175. <td style="background-color: #f5f5f5">{{$v->pay_Revenue}}</td>
  176. <td style="background-color: #f5f5f5">{{$v->pay_Cnt}}</td>
  177. </tr>
  178. @endforeach
  179. </table>
  180. </div>
  181. <table class="table table-bordered" style="margin-left:25px;width: 18%;float: left">
  182. <tr>
  183. <th colspan="2"> {{ __('auto.赠送彩金:') }}{{$winnings['winningsSum']}}</th>
  184. </tr>
  185. <tr>
  186. <td>{{ __('auto.活动名称') }}</td>
  187. <td>{{ __('auto.金额') }}</td>
  188. </tr>
  189. <tr>
  190. <td>{{ __('auto.充值送金') }}</td>
  191. <td>{{$winnings['winnings']['45'] ?? 0}}</td>
  192. </tr>
  193. <tr>
  194. <td>{{ __('auto.注册送金') }}</td>
  195. <td>{{$winnings['winnings']['33'] ?? 0}}</td>
  196. </tr>
  197. <tr>
  198. <td>{{ __('auto.每日签到') }}</td>
  199. <td>{{ $winnings['winnings']['signIn'] ?? 0 }}</td>
  200. </tr>
  201. <tr>
  202. <td>{{ __('auto.绑定手机赠送') }}</td>
  203. <td>{{ $winnings['winnings']['21'] ?? 0 }}</td>
  204. </tr>
  205. <tr>
  206. <td>{{ __('auto.群发彩金') }}</td>
  207. <td>{{ $winnings['winnings']['52'] ?? 0 }}</td>
  208. </tr>
  209. <tr>
  210. <td>{{ __('auto.周卡彩金') }}</td>
  211. <td>{{ $winnings['winnings']['59'] ?? 0 }}</td>
  212. </tr>
  213. </table>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. @endsection