subscribeLog.blade.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @extends('admin.layouts')
  2. @section('css')
  3. <link href="/assets/global/vendor/bootstrap-table/bootstrap-table.min.css" type="text/css" rel="stylesheet">
  4. @endsection
  5. @section('content')
  6. <div class="page-content container-fluid">
  7. <div class="panel">
  8. <div class="panel-heading">
  9. <h3 class="panel-title">订阅列表</h3>
  10. </div>
  11. <div class="panel-body">
  12. <table class="text-md-center" data-toggle="table" data-mobile-responsive="true">
  13. <thead class="thead-default">
  14. <tr>
  15. <th> #</th>
  16. <th> 用户</th>
  17. <th> 请求IP</th>
  18. <th> 请求时间</th>
  19. <th> 访问</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. @if($subscribeLog->isEmpty())
  24. <tr>
  25. <td colspan="6">暂无数据</td>
  26. </tr>
  27. @else
  28. @foreach($subscribeLog as $subscribe)
  29. <tr>
  30. <td>{{$subscribe->id}}</td>
  31. <td>{{empty($subscribe->user) ? '用户已删除' : $subscribe->user[0]->username}}</td>
  32. <td>{{$subscribe->request_ip}}</td>
  33. <td>{{$subscribe->request_time}}</td>
  34. <td>{{$subscribe->request_header}}</td>
  35. </tr>
  36. @endforeach
  37. @endif
  38. </tbody>
  39. </table>
  40. </div>
  41. <div class="panel-footer">
  42. <div class="row">
  43. <div class="col-sm-4">
  44. 共 <code>{{$subscribeLog->total()}}</code> 条记录
  45. </div>
  46. <div class="col-sm-8">
  47. <nav class="Page navigation float-right">
  48. {{$subscribeLog->links()}}
  49. </nav>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. @endsection
  56. @section('script')
  57. <script src="/assets/global/vendor/bootstrap-table/bootstrap-table.min.js" type="text/javascript"></script>
  58. <script src="/assets/global/vendor/bootstrap-table/extensions/mobile/bootstrap-table-mobile.min.js" type="text/javascript"></script>
  59. @endsection