loginLog.blade.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. @extends('desktop.layouts.app')
  2. @section('content')
  3. <div id="accountLoginLog" class="container">
  4. @include('desktop.account.navTabs')
  5. <h4>로그인 기록</h4>
  6. <hr/>
  7. <dl>
  8. <dd>※ 최대 3개월 이내의 내역만 확인 가능합니다.</dd>
  9. </dl>
  10. <form name="f_account_login_log" id="fAccountLoginLog" method="post" action="{{ route('account.loginLog') }}" accept-charset="UTF-8">
  11. @csrf
  12. <div class="row g-2 align-items-center mb-2">
  13. <div class="col col-sm-auto">
  14. Total : {{ $loginLog->total }}
  15. </div>
  16. <div class="col-auto col-sm">
  17. <div class="row g-2 align-items-center justify-content-end">
  18. <div class="col col-sm-auto">
  19. <input type="text" name="start_date" id="startDate" class="form-control date-picker" size="10" value="{{ $params->startDate }}"/>
  20. </div>
  21. <div class="col-auto">-</div>
  22. <div class="col col-sm-auto">
  23. <input type="text" name="end_date" id="endDate" class="form-control date-picker" size="10" value="{{ $params->endDate }}"/>
  24. </div>
  25. <div class="col-auto">
  26. <button type="submit" class="btn btn-default">조회</button>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </form>
  32. <table class="table table-bordered table-hover">
  33. <colgroup>
  34. <col width="5%"/>
  35. <col width="26%"/>
  36. <col width="10%"/>
  37. <col width="11%"/>
  38. <col width="10%"/>
  39. <col width="*"/>
  40. <col width="10%"/>
  41. </colgroup>
  42. <thead>
  43. <tr>
  44. <th>번호</th>
  45. <th>일시</th>
  46. <th>OS</th>
  47. <th>IP</th>
  48. <th>접속기기</th>
  49. <th>사유</th>
  50. <th>결과</th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. @if($loginLog->rows > 0)
  55. @foreach($loginLog->list as $row)
  56. <tr>
  57. <td>{{ $row->num }}</td>
  58. <td>{{ $row->created_at }}</td>
  59. <td>{{ $row->os }}</td>
  60. <td>{{ $row->ip_address }}</td>
  61. <td>{{ $row->device }}</td>
  62. <td>{{ $row->reason }}</td>
  63. <td>{{ $row->result }}</td>
  64. </tr>
  65. @endforeach
  66. @else
  67. <tr>
  68. <td colspan="7" class="p-5">
  69. 로그인 기록이 없습니다.
  70. </td>
  71. </tr>
  72. @endif
  73. </tbody>
  74. </table>
  75. @if($loginLog->total > 0)
  76. <div class="pagination">
  77. {{ $loginLog->list->withQueryString()->links('component.pagination') }}
  78. </div>
  79. @endif
  80. </div>
  81. @endsection
  82. @push('styles')
  83. <link rel="stylesheet" href="{{ asset('css/desktop/account/loginLog.css') }}"/>
  84. @endpush