find-member-id.blade.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. @extends('views.layouts.master')
  2. <link rel="stylesheet" href="{{ csset('/themes/pro/modunawa/resources/css/user-auth.css') }}">
  3. @section('content')
  4. <!--=====================================
  5. USER FORM PART START
  6. =======================================-->
  7. <section class="user-form-part find_id">
  8. <div class="container">
  9. <div class="row justify-content-center">
  10. <div class="col-12">
  11. <!--
  12. <div class="user-form-logo">
  13. <a href="index.html"><img src="images/logo.png" alt="logo"></a>
  14. </div>
  15. -->
  16. <div class="user-form-card">
  17. <div class="user-form-title">
  18. <h2>아이디찾기</h2>
  19. <p>고객님의 정보와 일치하는 아이디 목록입니다.</p>
  20. </div>
  21. <div class="col-lg-12">
  22. <div class="table-scroll">
  23. <table class="table-list">
  24. <thead>
  25. <tr>
  26. <th scope="col">아이디</th>
  27. <th scope="col">가입일</th>
  28. <th scope="col">회원상태</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. @forelse ($memberPage['Page'] ?? [] as $member)
  33. <tr class="text-center">
  34. <td>
  35. <div class="radioSec">
  36. <input type="radio" id="email-radio-{{ $member['Id'] }}" name="email">
  37. <label class="mr-3 tw-cursor-pointer email-label" for="email-radio-{{ $member['Id'] }}"
  38. data-sso-brand="{{ $member['SsoBrand'] }}">
  39. {{ $member['Email'] }}
  40. @if ($member['SsoBrand'])
  41. ({{ $member['SsoBrand'] }} 로그인)
  42. @endif
  43. </label>
  44. </div>
  45. </td>
  46. <td>{{ Carbon\Carbon::createFromTimestamp($member['CreatedOn'])->format('Y.m.d') }}</td>
  47. <td>{{ DataConverter::execute($member['Status'], "status('member')") }}</td>
  48. </tr>
  49. @empty
  50. <tr><td class="text-center" colspan="3">데이터가 없습니다</td></tr>
  51. @endforelse
  52. </tbody>
  53. </table>
  54. </div>
  55. </div>
  56. <div class="text-center flex-row">
  57. <button type="button" class="btn btn_prime btn_round" onclick="route_page('member-login')">로그인</button>
  58. <button type="button" class="btn btn_round btn-outline" onclick="route_page('find-pw')">비밀번호 찾기</button>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </section>
  65. <!--=====================================
  66. USER FORM PART END
  67. =======================================-->
  68. @endsection
  69. @push('js')
  70. <script>
  71. function route_page($type) {
  72. const checked_label = $('input:radio[name=email]:checked')
  73. const label = $(checked_label).prop('labels')
  74. let url
  75. switch ($type) {
  76. case 'member-login':
  77. if (isEmpty(label) || ! isEmpty($(label).data('sso-brand'))) {
  78. url = "{{ route('member-login') }}"
  79. } else {
  80. url = "{{ route('member-login', [ 'email' => '' ]) }}"
  81. }
  82. break;
  83. case 'find-pw':
  84. if (isEmpty(label)) {
  85. url = "{{ route('find-member-pw-memcheck.index') }}"
  86. } else if (! isEmpty($(label).data('sso-brand')) ) {
  87. url = "{{ route('member-login') }}"
  88. } else {
  89. url = "{{ route('find-member-pw-verify.index', [ 'email' => '' ]) }}"
  90. }
  91. break;
  92. }
  93. url = url.replace('email=', `email=${trim($(label).text())}`)
  94. // console.log(url)
  95. window.location.href = url
  96. }
  97. </script>
  98. @endpush