loginLog.blade.php 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. @extends('mobile.layouts.app')
  2. @section('content')
  3. <div id="accountLoginLog" class="container">
  4. @include('mobile.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') }}" autocomplete="off" accept-charset="UTF-8">
  11. @csrf
  12. <div class="row row-cols-1 g-2 align-items-center mb-2">
  13. <div class="col col-sm-auto">
  14. Total : {{ $loginLog->total }}
  15. </div>
  16. <div class="col 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. <div class="table-responsive">
  33. <table class="table table-hover">
  34. <colgroup>
  35. <col style="width: 5%;min-width: 50px;"/>
  36. <col style="width: 20%;"/>
  37. <col style="width: 13%;"/>
  38. <col style="width: 13%;"/>
  39. <col style="width: 13%;"/>
  40. <col style="width: auto;"/>
  41. <col style="width: 10%;"/>
  42. </colgroup>
  43. <thead>
  44. <tr>
  45. <th>번호</th>
  46. <th>일시</th>
  47. <th>OS</th>
  48. <th>IP</th>
  49. <th>접속기기</th>
  50. <th>사유</th>
  51. <th>결과</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. @if($loginLog->rows > 0)
  56. @foreach($loginLog->list as $row)
  57. <tr>
  58. <td>{{ $row->num }}</td>
  59. <td>{{ $row->created_at }}</td>
  60. <td>{{ $row->os }}</td>
  61. <td>{{ $row->ip_address }}</td>
  62. <td>{{ $row->device }}</td>
  63. <td>{{ $row->reason }}</td>
  64. <td>{{ $row->result }}</td>
  65. </tr>
  66. @endforeach
  67. @else
  68. <tr>
  69. <td colspan="7" class="p-5">
  70. 로그인 기록이 없습니다.
  71. </td>
  72. </tr>
  73. @endif
  74. </tbody>
  75. </table>
  76. </div>
  77. @if($loginLog->total > 0)
  78. <div class="pagination">
  79. {{ $loginLog->list->withQueryString()->links('component.pagination') }}
  80. </div>
  81. @endif
  82. </div>
  83. @endsection
  84. @push('styles')
  85. <link rel="stylesheet" href="{{ asset('css/mobile/account/loginLog.css') }}"/>
  86. @endpush