loginLog.blade.php 2.8 KB

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