articleLogList.blade.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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/articleList')}}">文章管理</a>
  14. <i class="fa fa-circle"></i>
  15. </li>
  16. <li>
  17. <a href="{{url('admin/articleLogList')}}">文章访问日志</a>
  18. <i class="fa fa-circle"></i>
  19. </li>
  20. </ul>
  21. <!-- END PAGE BREADCRUMB -->
  22. <!-- BEGIN PAGE BASE CONTENT -->
  23. <div class="row">
  24. <div class="col-md-12">
  25. <!-- BEGIN EXAMPLE TABLE PORTLET-->
  26. <div class="portlet light bordered">
  27. <div class="portlet-title">
  28. <div class="caption font-dark">
  29. <i class="icon-docs font-dark"></i>
  30. <span class="caption-subject bold uppercase"> 文章访问日志 </span>
  31. </div>
  32. <div class="actions">
  33. <div class="btn-group">
  34. </div>
  35. </div>
  36. </div>
  37. <div class="portlet-body">
  38. <div class="table-scrollable">
  39. <table class="table table-striped table-bordered table-hover table-checkable order-column" id="sample_1">
  40. <thead>
  41. <tr>
  42. <th> ID </th>
  43. <th> 文章ID </th>
  44. <th> 坐标 </th>
  45. <th> IP </th>
  46. <th> 头部信息 </th>
  47. <th> 状态 </th>
  48. <th> 访问时间 </th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. @if($articleLogList->isEmpty())
  53. <tr>
  54. <td colspan="7">暂无数据</td>
  55. </tr>
  56. @else
  57. @foreach($articleLogList as $articleLog)
  58. <tr class="odd gradeX">
  59. <td> {{$articleLog->id}} </td>
  60. <td> <a href="{{url('article?id=' . $articleLog->aid)}}" target="_blank"> {{$articleLog->aid}} </a> </td>
  61. <td> {{$articleLog->lat}},{{$articleLog->lng}} </td>
  62. <td> {{$articleLog->ip}} </td>
  63. <td> {{$articleLog->headers}} </td>
  64. <td>
  65. @if ($articleLog->status)
  66. <span class="label label-default">已查看</span>
  67. @else
  68. <span class="label label-info">未查看</span>
  69. @endif
  70. </td>
  71. <td> {{$articleLog->created_at}} </td>
  72. </tr>
  73. @endforeach
  74. @endif
  75. </tbody>
  76. </table>
  77. </div>
  78. <div class="row">
  79. <div class="col-md-4 col-sm-4">
  80. <div class="dataTables_info" role="status" aria-live="polite">共 {{$articleLogList->total()}} 条日志</div>
  81. </div>
  82. <div class="col-md-8 col-sm-8">
  83. <div class="dataTables_paginate paging_bootstrap_full_number pull-right">
  84. {{ $articleLogList->links() }}
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <!-- END EXAMPLE TABLE PORTLET-->
  91. </div>
  92. </div>
  93. <!-- END PAGE BASE CONTENT -->
  94. </div>
  95. <!-- END CONTENT BODY -->
  96. @endsection
  97. @section('script')
  98. <script src="/assets/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
  99. <script src="/js/layer/layer.js" type="text/javascript"></script>
  100. <script type="text/javascript">
  101. //
  102. </script>
  103. @endsection