nodeList.blade.php 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. @extends('user.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('user/nodeList')}}">节点列表</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-list 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. <th> 混淆 </th>
  43. <th> 操作 </th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <div class="alert alert-danger">
  48. <strong>流量比例:</strong> 1表示用100M就结算100M,0.1表示用100M结算10M,5表示用100M结算500M,以此类推。目的是在于限制优质节点频繁使用,请大家珍惜自己的流量,选择适合自己的节点。
  49. </div>
  50. @if($nodeList->isEmpty())
  51. <tr>
  52. <td colspan="10">暂无数据</td>
  53. </tr>
  54. @else
  55. @foreach($nodeList as $node)
  56. <tr class="odd gradeX">
  57. <td> {{$node->id}} </td>
  58. <td> {{$node->name}} @if ($node->compatible) <span class="label label-warning"> 兼容SS </span> @endif </td>
  59. <td> {{$node->bandwidth}}M </td>
  60. <td> <span class="label label-danger"> {{$node->load}} </span> </td>
  61. <td> <span class="label label-danger"> {{$node->online_users}} </span> </td>
  62. <td> {{$node->transfer}} </td>
  63. <td> {{$node->traffic_rate}} </td>
  64. <td> <span class="label label-info"> {{$node->protocol}} </span> </td>
  65. <td> <span class="label label-info"> {{$node->obfs}} </span> </td>
  66. <td>
  67. <button type="button" class="btn btn-sm blue btn-outline" onclick="">查看配置</button>
  68. </td>
  69. </tr>
  70. @endforeach
  71. @endif
  72. </tbody>
  73. </table>
  74. </div>
  75. <div class="row">
  76. <div class="col-md-5 col-sm-5">
  77. <div class="dataTables_info" role="status" aria-live="polite">共 {{$nodeList->total()}} 个节点</div>
  78. </div>
  79. <div class="col-md-7 col-sm-7">
  80. <div class="dataTables_paginate paging_bootstrap_full_number pull-right">
  81. {{ $nodeList->links() }}
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <!-- END EXAMPLE TABLE PORTLET-->
  88. </div>
  89. </div>
  90. <!-- END PAGE BASE CONTENT -->
  91. </div>
  92. <!-- END CONTENT BODY -->
  93. @endsection
  94. @section('script')
  95. <script src="/assets/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
  96. @endsection