member-withdrawal.blade.php 4.4 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">
  8. <div class="container">
  9. <div class="row justify-content-center">
  10. <div class="col-12 col-sm-10 col-md-9 col-lg-6 col-xl-5">
  11. <!--
  12. <div class="user-form-logo">
  13. <a href="index.html"><img src="images/logo.png" alt="logo"></a>
  14. </div>
  15. -->
  16. <form class="user-form-card" id="withdrawal-form" action="{{ route('member-withdrawal.store') }}" method="POST">
  17. @csrf
  18. <div class="user-form-title">
  19. <img src="{{ asset('/themes/pro/modunawa/resources/images/pass_img1.png') }}">
  20. <h2>회원 탈퇴</h2>
  21. <p>
  22. 탈퇴하시기 전, 꼭 확인해주세요!
  23. </p>
  24. <p>
  25. <strong class="txt_caution">
  26. - 탈퇴하시기 전 남은 포인트에 대해서 환불 요청 하시기 바랍니다.
  27. <br/>
  28. - 환불 받으신 후 탈퇴하시기 바랍니다.
  29. <br/>
  30. - 탈퇴 후 환불요청 시 포인트 환불은 불가합니다.
  31. </strong>
  32. </p>
  33. </div>
  34. <div class="form-group mb-2">
  35. <input type="password" name="password" class="form-control certi-txt rounded-right-0"
  36. placeholder="현재 비밀번호를 입력해주세요" required>
  37. @error('password')
  38. <span class="text-danger"><i class="icon-cancel-circle2 mr-2"></i>{{ $message }}</span>
  39. @enderror
  40. </div>
  41. <div class="form-check all_agree mb-4">
  42. <input class="form-check-input" type="checkbox" id="verifiy-ck">
  43. <label class="form-check-label" for="verifiy-ck">안내사항은 모두 확인하였으며, 이에 동의합니다.</label>
  44. </div>
  45. <div class="text-center">
  46. <button type="submit" class="btn btn_prime btn_round button-prevent-multiple-submits">
  47. <i class="spinner fa fa-spinner fa-spin"></i>
  48. 탈퇴하기
  49. </button>
  50. </div>
  51. </form>
  52. </div>
  53. </div>
  54. </div>
  55. </section>
  56. <!--=====================================
  57. USER FORM PART END
  58. =======================================-->
  59. @endsection
  60. @push('js')
  61. <script>
  62. $('#withdrawal-form').on('submit', function (event) {
  63. event.preventDefault()
  64. if (! $('#verifiy-ck').is(':checked')) {
  65. iziToast.info({ title: 'Info', message: "@lang('이용약관에 동의하셔야 합니다')" });
  66. return false
  67. }
  68. const form = this
  69. iziToast.question({
  70. timeout: 20000,
  71. close: false,
  72. overlay: true,
  73. displayMode: 'once',
  74. id: 'question',
  75. title: $('#comfirm-delete').text(),
  76. message: $('#can-not-recover-after-delete').text(),
  77. position: 'center',
  78. buttons: [
  79. [`<button><b>${$('#delete').text()}</b></button>`, async function (instance, toast) {
  80. instance.hide({ transitionOut: 'fadeOut' }, toast, 'button');
  81. click_submit_btn(form)
  82. form.submit()
  83. }, true],
  84. [`<button>${$('#cancel').text()}</button>`, function (instance, toast) {
  85. instance.hide({ transitionOut: 'fadeOut' }, toast, 'button');
  86. }],
  87. ],
  88. });
  89. });
  90. </script>
  91. @endpush