statistics_list.blade.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. <form class="well form-inline margin-top-20" method="get" action='/admin/card/statistics'>
  26. <spen style="padding-left: 10px" >{{ __('auto.选择时间:') }}</spen>
  27. <input type="date" step="01" id="start_time" name="start_time" class="form-control" value="{{$start_time}}" />&nbsp;&nbsp;
  28. <input type="date" step="01" id="end_time" name="end_time" class="form-control" value="{{$end_time}}" />&nbsp;&nbsp;
  29. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  30. <a href="/admin/card/statistics" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  31. <a href="/admin/card/statistics?excel=1&start_time={{$start_time}}&end_time={{$end_time}}" class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  32. </form>
  33. <table class="table table-bordered">
  34. <thead>
  35. <tr>
  36. <th width="6%">{{ __('auto.时间') }}</th>
  37. <th width="4%">{{ __('auto.星期') }}</th>
  38. <th width="6%">{{ __('auto.活跃用户') }}</th>
  39. <th width="6%">{{ __('auto.房卡局数') }}</th>
  40. <th width="6%">{{ __('auto.房卡消耗量') }}</th>
  41. <th width="6%">{{ __('auto.新增用户数') }}</th>
  42. <th width="6%">{{ __('auto.充值用户数') }}</th>
  43. <th width="8%">{{ __('auto.新增充值用户数') }}</th>
  44. <th width="6%">{{ __('auto.房卡充值率') }}</th>
  45. <th width="6%">{{ __('auto.充值金额') }}</th>
  46. <th width="5%">{{ __('auto.订单数') }}</th>
  47. <th width="5%">ARPU</th>
  48. <th width="5%">ARPPU</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. @foreach($list as $k=>$v)
  53. <tr>
  54. <td>{{ $v->mydate }}</td>
  55. <td>{{ $v->week }}</td>
  56. <td>{{ $v->LoginCount }}</td>
  57. <td>{{ $v->createtimes }}</td>
  58. <td>{{ $v->costcard }}</td>
  59. <td>{{ $v->RegisterCount}}</td>
  60. <td></td>
  61. <td></td>
  62. <td></td>
  63. <td></td>
  64. <td></td>
  65. <td></td>
  66. <td></td>
  67. </tr>
  68. @endforeach
  69. </tbody>
  70. </table>
  71. <div class="box-footer clearfix">
  72. {{ __('auto.总共') }} <b>{{ $list->appends(['start_time'=>$start_time,'end_time'=>$end_time])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  73. {!! $list->links() !!}
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <script>
  82. function excel(id){
  83. myConfirm("{{ __('auto.处理操作不可逆,是否继续') }}?",function(){
  84. var start_time = document.getElementById("start_time").value;
  85. var end_time = document.getElementById("end_time").value;
  86. myRequest("/admin/card/statistics/0","get",{'start_time':start_time,'end_time':end_time,'excel':1},function(res){
  87. layer.msg(res.msg)
  88. setTimeout(function(){
  89. window.location.reload();
  90. },1500)
  91. });
  92. });
  93. }
  94. function del(id){
  95. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
  96. myRequest("/admin/accusation/del/"+id,"post",{},function(res){
  97. layer.msg(res.msg)
  98. setTimeout(function(){
  99. window.location.reload();
  100. },1500)
  101. });
  102. });
  103. }
  104. </script>
  105. @endsection