trafficLog.blade.php 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. @extends('admin.layouts')
  2. @section('css')
  3. <link href="/assets/global/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css" />
  4. <link href="/assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css" rel="stylesheet" type="text/css" />
  5. @endsection
  6. @section('title', '控制面板')
  7. @section('content')
  8. <!-- BEGIN CONTENT BODY -->
  9. <div class="page-content">
  10. <!-- BEGIN PAGE BREADCRUMB -->
  11. <ul class="page-breadcrumb breadcrumb">
  12. <li>
  13. <a href="{{url('admin/trafficLog')}}">流量日志</a>
  14. <i class="fa fa-circle"></i>
  15. </li>
  16. </ul>
  17. <!-- END PAGE BREADCRUMB -->
  18. <!-- BEGIN PAGE BASE CONTENT -->
  19. <div class="row">
  20. <div class="col-md-12">
  21. <!-- BEGIN EXAMPLE TABLE PORTLET-->
  22. <div class="portlet light bordered">
  23. <div class="portlet-title">
  24. <div class="caption font-dark">
  25. <i class="icon-speedometer font-dark"></i>
  26. <span class="caption-subject bold uppercase"> 流量日志</span>
  27. </div>
  28. </div>
  29. <div class="portlet-body">
  30. <div class="table-scrollable">
  31. <table class="table table-striped table-bordered table-hover table-checkable order-column" id="sample_1">
  32. <thead>
  33. <tr>
  34. <th> ID </th>
  35. <th> 用户 </th>
  36. <th> 节点 </th>
  37. <th> 流量比例 </th>
  38. <th> 上传流量 </th>
  39. <th> 下载流量 </th>
  40. <th> 总流量 </th>
  41. <th> 记录时间 </th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. @if($trafficLogList->isEmpty())
  46. <tr>
  47. <td colspan="9">暂无数据</td>
  48. </tr>
  49. @else
  50. @foreach($trafficLogList as $trafficLog)
  51. <tr class="odd gradeX">
  52. <td> {{$trafficLog->id}} </td>
  53. <td> <a href="{{url('admin/userList?port=') . $trafficLog->user->port}}" target="_blank"> <span class="label label-info"> {{$trafficLog->user->username}} </span> </a> </td>
  54. <td> {{$trafficLog->ssnode->name}} </td>
  55. <td> {{$trafficLog->rate}} </td>
  56. <td> {{$trafficLog->u}} </td>
  57. <td> {{$trafficLog->d}} </td>
  58. <td> <span class="label label-danger"> {{$trafficLog->traffic}} </span> </td>
  59. <td> {{$trafficLog->log_time}} </td>
  60. </tr>
  61. @endforeach
  62. @endif
  63. </tbody>
  64. </table>
  65. </div>
  66. <div class="row">
  67. <div class="col-md-5 col-sm-5">
  68. <div class="dataTables_info" role="status" aria-live="polite">共 {{$trafficLogList->total()}} 条记录</div>
  69. </div>
  70. <div class="col-md-7 col-sm-7">
  71. <div class="dataTables_paginate paging_bootstrap_full_number pull-right">
  72. {{ $trafficLogList->links() }}
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <!-- END EXAMPLE TABLE PORTLET-->
  79. </div>
  80. </div>
  81. <!-- END PAGE BASE CONTENT -->
  82. </div>
  83. <!-- END CONTENT BODY -->
  84. @endsection
  85. @section('script')
  86. @endsection