member-company-signup.blade.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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 signup divide">
  8. <div class="container">
  9. <div class="row justify-content-center">
  10. <form class="col-12 col-sm-10 col-md-12 col-lg-12 col-xl-12 form-prevent-multiple-submits"
  11. id="company-signup-form" action="{{ route('member-company-signup.store') }}" method="POST" enctype="multipart/form-data">
  12. @csrf
  13. <div class="user-form-card">
  14. <div class="user-form-title">
  15. <h2>가맹점 회원가입</h2>
  16. <p>회원가입을 위해 아래 폼을 작성해 주세요.</p>
  17. </div>
  18. <div>
  19. <div class="user-form-group">
  20. <div class="user-form form-prevent-multiple-submits">
  21. <h6>
  22. 기본정보
  23. <p><strong>*</strong>는 필수 입력 사항입니다.</p>
  24. </h6>
  25. <div class="form-group re">
  26. <label>이메일</label>
  27. <input type="email" class="form-control" name="email" value="{{ old('email') }}" placeholder="이메일 주소를 입력해 주세요" required>
  28. @error('email')
  29. <span class="text-danger"><i class="icon-cancel-circle2 mr-2"></i>{{ $message }}</span>
  30. @enderror
  31. </div>
  32. <div class="form-group re">
  33. <label>비밀번호</label>
  34. <input type="password" name="password" value="{{ old('password') }}" class="form-control" placeholder="{{ $policyDesc }}" required>
  35. <!--<span class="text-danger"><i class="icon-cancel-circle2 mr-2"></i></span>-->
  36. </div>
  37. <div class="form-group re">
  38. <label>비밀번호 확인</label>
  39. <input type="password" name="password_confirmation" value="{{ old('password_confirmation') }}" class="form-control" placeholder="비밀번호 한번 더 입력해 주세요" required>
  40. @error('password')
  41. <span class="text-danger"><i class="icon-cancel-circle2 mr-2"></i>{{ $message }}</span>
  42. @enderror
  43. </div>
  44. <div class="form-group re">
  45. <label>이름</label>
  46. <input type="text" class="form-control" name="first_name" value="{{ old('first_name') }}" placeholder="이름을 입력해 주세요" required>
  47. </div>
  48. <div class="form-group re">
  49. <label>휴대폰번호</label>
  50. <input type="tel" name="mobile_no" value="{{ old('mobile_no', session('smsCert.mobile_no')) }}"
  51. class="form-control" placeholder="-없이 입력하세요" readonly required>
  52. </div>
  53. {{-- <div class="form-group re">--}}
  54. {{-- <label>주소</label>--}}
  55. {{-- <ul>--}}
  56. {{-- <li>--}}
  57. {{-- <input type="text" name="" class="form-control" placeholder="우편번호">--}}
  58. {{-- <button type="button" onclick="get_zip_code()">우편번호검색</button>--}}
  59. {{-- </li>--}}
  60. {{-- <li>--}}
  61. {{-- <input type="text" name="" class="form-control" placeholder="주소">--}}
  62. {{-- </li>--}}
  63. {{-- <li>--}}
  64. {{-- <input type="text" name="" class="form-control" placeholder="상세주소를 입력하세요">--}}
  65. {{-- </li>--}}
  66. {{-- </ul>--}}
  67. {{-- </div>--}}
  68. </div>
  69. <div class="user-form-divider"></div>
  70. <div class="user-form form-prevent-multiple-submits">
  71. <h6>
  72. 사업자 정보
  73. <p><strong>*</strong>는 필수 입력 사항입니다.</p>
  74. </h6>
  75. <div class="form-group re">
  76. <label>상호</label>
  77. <input type="text" class="form-control" value="{{ old('company_name') }}" name="company_name" placeholder="상호를 입력해 주세요" required>
  78. </div>
  79. <div class="form-group re">
  80. <label>사업자번호</label>
  81. <input type="text" name="tax_no" class="form-control" value="{{ old('tax_no') }}" placeholder="-없이 입력하세요" required>
  82. </div>
  83. <div class="form-group re">
  84. <label>대표자명</label>
  85. <input type="text" class="form-control" name="president" value="{{ old('president') }}" placeholder="대표자명을 입력해 주세요" required>
  86. </div>
  87. <div class="form-group re">
  88. <label>전화번호</label>
  89. <input type="tel" name="tel_no" class="form-control" value="{{ old('tel_no') }}" placeholder="-없이 입력하세요" required>
  90. </div>
  91. <div class="form-group re">
  92. <label>업태</label>
  93. <input type="text" class="form-control" name="biz_type" value="{{ old('biz_type') }}" placeholder="업태를 입력해 주세요" required>
  94. </div>
  95. <div class="form-group re">
  96. <label>종목</label>
  97. <input type="text" class="form-control" name="deal_item" value="{{ old('deal_item') }}" placeholder="종목을 입력해 주세요" required>
  98. </div>
  99. <div class="form-group re">
  100. <label>주소</label>
  101. <ul>
  102. <li>
  103. <input type="text" name="zip_code" id="zip-code-txt" value="{{ old('zip_code') }}" class="form-control" placeholder="우편번호" required>
  104. <button type="button" onclick="get_zip_code()">우편번호검색</button>
  105. </li>
  106. <li>
  107. <input type="text" name="addr1" id="addr1-txt" value="{{ old('addr1') }}" class="form-control" placeholder="주소">
  108. </li>
  109. <li>
  110. <input type="text" name="addr2" class="form-control" value="{{ old('addr2') }}" placeholder="상세주소를 입력하세요">
  111. </li>
  112. </ul>
  113. </div>
  114. <div class="form-group re">
  115. <label>사업자등록증 사진 첨부</label>
  116. <input type="file" id="upload-file" name="cert_img" value="{{ old('cert_img') }}" class="cursor-pointer rounded w-100 form-control-uniform-custom" required style="text-indent: 0;">
  117. </div>
  118. <div class="form-group">
  119. <label>사용중인 카드 단말기(VAN)</label>
  120. <select class="form-control" name="van">
  121. <option value="">사용중인 카드 단말기 선택</option>
  122. @foreach(['한국정보통신(KICC)', '나이스정보통신', 'KSNET',
  123. '스마트로', 'KIS정보통신', '퍼스트데이타', 'KOVAN', 'JT NET',
  124. '다우데이타', '한국사이버결제(KCP)', 'KOCES', 'SPC', '금융결제원' ] as $title)
  125. <option value="{{ $title }}" {{ old('van') == $title ? "selected" : "" }}>
  126. {{ $title }}
  127. </option>
  128. @endforeach
  129. </select>
  130. </div>
  131. <div class="form-group">
  132. <label>VAN 아이디</label>
  133. <input type="text" class="form-control" value="{{ old('van_id') }}" name="van_id" placeholder="VAN 아이디를 입력해 주세요">
  134. </div>
  135. <div class="form-group">
  136. <label>VAN 비밀번호</label>
  137. <input type="text" class="form-control" value="{{ old('van_pw') }}" name="van_pw" placeholder="VAN 비밀번호를 입력해 주세요">
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. <div class="form-check mb-3">
  144. <input class="form-check-input" type="checkbox" id="verifiy-ck">
  145. <label class="form-check-label" for="verifiy-ck">약관에 동의합니다. <a href="{{ route('policy.index') }}" target="_blank">약관보기</a> </label>
  146. </div>
  147. <div class="form-button">
  148. <button type="submit" class="button-prevent-multiple-submits">
  149. <i class="spinner fa fa-spinner fa-spin"></i>
  150. 확인
  151. </button>
  152. </div>
  153. <div class="user-form-remind">
  154. <p>이미 회원이시면 로그인해 주세요.<a href="{{ route('member-login') }}">로그인</a></p>
  155. </div>
  156. <!--
  157. <div class="user-form-footer">
  158. <p>Greeny | &COPY; Copyright by <a href="#">Mironcoder</a></p>
  159. </div>
  160. -->
  161. </form>
  162. </div>
  163. </div>
  164. </section>
  165. <!--=====================================
  166. USER FORM PART END
  167. =======================================-->
  168. @endsection
  169. @push('js')
  170. <script src="//t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js"></script>
  171. <script>
  172. $(document).ready(function() {
  173. $('#upload-file').fileselect();
  174. });
  175. function get_zip_code() {
  176. new daum.Postcode({
  177. oncomplete: function(data) {
  178. $('#zip-code-txt').val(data.zonecode)
  179. $('#addr1-txt').val(data.roadAddress)
  180. }
  181. }).open();
  182. }
  183. $('#company-signup-form').on('submit', function(event) {
  184. event.preventDefault();
  185. if ($('#verifiy-ck').is(':checked')) {
  186. this.submit()
  187. return
  188. }
  189. iziToast.info({ title: 'Info', message: "@lang('이용약관에 동의하셔야 합니다')" });
  190. return false
  191. });
  192. </script>
  193. @endpush