login_ip.blade.php 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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-wrench"></i>
  10. </span>
  11. {{ __('auto.后台账号登录管理IP管理') }}
  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.后台账号登录管理IP管理') }}</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.后台账号登录管理IP管理') }}</h4>
  25. <table class="table table-bordered">
  26. <thead>
  27. <tr>
  28. <th>{{ __('auto.最后一次登录时间') }}</th>
  29. <th>{{ __('auto.昵称') }}</th>
  30. <th>{{ __('auto.账号') }}</th>
  31. <th>IP</th>
  32. <th>IP{{ __('auto.所在地址') }}</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. @foreach($list as $k=>$v)
  37. <tr>
  38. <td>{{ $v->last_login_time }}</td>
  39. <td>{{ $v->nickname }}</td>
  40. <td>{{ $v->account }}</td>
  41. <td>{{ $v->ip }}</td>
  42. <td>{{ $v->ip_address }}</td>
  43. </tr>
  44. @endforeach
  45. </tbody>
  46. </table>
  47. <div class="box-footer clearfix" id = "pages">
  48. {{ __('auto.总共') }} <b>{{ $list->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  49. {!! $list->links() !!}
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <script>
  58. function add(){
  59. var page = layer.open({
  60. type: 2,
  61. title: '{{ __('auto.添加IP白名单') }}',
  62. shadeClose: true,
  63. shade: 0.8,
  64. area: ['70%', '90%'],
  65. content: '/admin/IpWhiteList/add'
  66. });
  67. }
  68. function update(id){
  69. var page = layer.open({
  70. type: 2,
  71. title: '{{ __('auto.修改IP白名单') }}',
  72. shadeClose: true,
  73. shade: 0.8,
  74. area: ['70%', '90%'],
  75. content: '/admin/IpWhiteList/update/'+id
  76. });
  77. }
  78. function del(id){
  79. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
  80. myRequest("/admin/IpWhiteList/del/"+id,"post",{},function(res){
  81. layer.msg(res.msg)
  82. setTimeout(function(){
  83. window.location.reload();
  84. },1500)
  85. });
  86. });
  87. }
  88. </script>
  89. @endsection