participation_statistics.blade.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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-chart-line"></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="">
  26. <span style="padding-left: 10px">{{ __('auto.注册时间:') }}</span>
  27. <input type="date" name="start_date" class="form-control" value="{{ $start_date }}" />
  28. <span style="padding-left: 10px">{{ __('auto.至') }}</span>
  29. <input type="date" name="end_date" class="form-control" value="{{ $end_date }}" />
  30. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  31. <a href="/admin/game_data/participation_statistics" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
  32. </form>
  33. <br>
  34. <table class="table table-bordered">
  35. <thead>
  36. <tr>
  37. <th width="10%">{{ __('auto.GameID尾号') }}</th>
  38. <th width="30%">{{ __('auto.尾号对应的游戏') }}</th>
  39. <th width="15%">{{ __('auto.注册人数') }}</th>
  40. <th width="15%">{{ __('auto.参与游戏人数') }}</th>
  41. <th width="15%">{{ __('auto.参游率') }}</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. @foreach($statistics as $stat)
  46. <tr>
  47. <td>{{ $stat['last_digit'] }}</td>
  48. <td>{{ $stat['game_name'] }}</td>
  49. <td>{{ $stat['register_count'] }}</td>
  50. <td>{{ $stat['played_count'] }}</td>
  51. <td>
  52. @if($stat['register_count'] > 0)
  53. <span class="badge badge-{{ $stat['participation_rate'] >= 50 ? 'success' : ($stat['participation_rate'] >= 30 ? 'warning' : 'danger') }}">
  54. {{ $stat['participation_rate'] }}%
  55. </span>
  56. @else
  57. <span class="badge badge-secondary">-</span>
  58. @endif
  59. </td>
  60. </tr>
  61. @endforeach
  62. </tbody>
  63. </table>
  64. @if(count($statistics) == 0)
  65. <div class="alert alert-info">
  66. <p>{{ __('auto.暂无统计数据,请选择其他时间范围。') }}</p>
  67. </div>
  68. @endif
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. @endsection