| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- @extends('base.base')
- @section('base')
- <!-- 内容区域 -->
- <div class="main-panel">
- <div class="content-wrapper">
- <div class="page-header">
- <h3 class="page-title">
- <span class="page-title-icon bg-gradient-primary text-white mr-2">
- <i class="mdi mdi-settings"></i>
- </span>
- {{ __('auto.数据统计') }}
- </h3>
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="#">{{ __('auto.房卡管理') }}</a></li>
- <li class="breadcrumb-item active" aria-current="page">{{ __('auto.数据统计') }}</li>
- </ol>
- </nav>
- </div>
- <div class="row">
- <div class="col-lg-12 grid-margin stretch-card">
- <div class="card">
- <div class="card-body">
- <h4 class="card-title">{{ __('auto.数据统计') }}</h4>
- <form class="well form-inline margin-top-20" method="get" action='/admin/card/statistics'>
- <spen style="padding-left: 10px" >{{ __('auto.选择时间:') }}</spen>
- <input type="date" step="01" id="start_time" name="start_time" class="form-control" value="{{$start_time}}" />
- <input type="date" step="01" id="end_time" name="end_time" class="form-control" value="{{$end_time}}" />
- <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>
- <a href="/admin/card/statistics" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
- <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>
- </form>
- <table class="table table-bordered">
- <thead>
- <tr>
- <th width="6%">{{ __('auto.时间') }}</th>
- <th width="4%">{{ __('auto.星期') }}</th>
- <th width="6%">{{ __('auto.活跃用户') }}</th>
- <th width="6%">{{ __('auto.房卡局数') }}</th>
- <th width="6%">{{ __('auto.房卡消耗量') }}</th>
- <th width="6%">{{ __('auto.新增用户数') }}</th>
- <th width="6%">{{ __('auto.充值用户数') }}</th>
- <th width="8%">{{ __('auto.新增充值用户数') }}</th>
- <th width="6%">{{ __('auto.房卡充值率') }}</th>
- <th width="6%">{{ __('auto.充值金额') }}</th>
- <th width="5%">{{ __('auto.订单数') }}</th>
- <th width="5%">ARPU</th>
- <th width="5%">ARPPU</th>
- </tr>
- </thead>
- <tbody>
- @foreach($list as $k=>$v)
- <tr>
- <td>{{ $v->mydate }}</td>
- <td>{{ $v->week }}</td>
- <td>{{ $v->LoginCount }}</td>
- <td>{{ $v->createtimes }}</td>
- <td>{{ $v->costcard }}</td>
- <td>{{ $v->RegisterCount}}</td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- @endforeach
- </tbody>
- </table>
- <div class="box-footer clearfix">
- {{ __('auto.总共') }} <b>{{ $list->appends(['start_time'=>$start_time,'end_time'=>$end_time])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
- {!! $list->links() !!}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- function excel(id){
- myConfirm("{{ __('auto.处理操作不可逆,是否继续') }}?",function(){
- var start_time = document.getElementById("start_time").value;
- var end_time = document.getElementById("end_time").value;
- myRequest("/admin/card/statistics/0","get",{'start_time':start_time,'end_time':end_time,'excel':1},function(res){
- layer.msg(res.msg)
- setTimeout(function(){
- window.location.reload();
- },1500)
- });
- });
- }
- function del(id){
- myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
- myRequest("/admin/accusation/del/"+id,"post",{},function(res){
- layer.msg(res.msg)
- setTimeout(function(){
- window.location.reload();
- },1500)
- });
- });
- }
-
- </script>
- @endsection
|