contact-us.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. @extends('views.layouts.master')
  2. @section('content')
  3. <!-- page-title -->
  4. <section class="page-title" style="background-image: url(/themes/kbgolf/pro/resources/images/background/pagetitle-bg.png);">
  5. <div class="anim-icons">
  6. <div class="icon icon-1"><img src="/themes/kbgolf/pro/resources/images/icons/anim-icon-17.png" alt=""></div>
  7. <div class="icon icon-2 rotate-me"><img src="/themes/kbgolf/pro/resources/images/icons/anim-icon-18.png" alt=""></div>
  8. <div class="icon icon-3 rotate-me"><img src="/themes/kbgolf/pro/resources/images/icons/anim-icon-19.png" alt=""></div>
  9. <div class="icon icon-4"></div>
  10. </div>
  11. <div class="container">
  12. <div class="content-box clearfix">
  13. <div class="title-box pull-left">
  14. <h1>영업 문의</h1>
  15. <p>다보리솔루션에 문의하여 주셔서 감사합니다.</p>
  16. </div>
  17. </div>
  18. </div>
  19. </section>
  20. <!-- page-title end -->
  21. <!-- contact-section -->
  22. <section class="contact-section contact_us" id="contact_us">
  23. <div class="container">
  24. <div class="row">
  25. <div class="col-lg-10 col-md-12 col-sm-12 offset-lg-1 big-column">
  26. <div class="info-content centred">
  27. <div class="row">
  28. <div class="col-lg-4 col-md-6 col-sm-12 info-column">
  29. <div class="single-info-box">
  30. <figure class="icon-box"><img src="/themes/kbgolf/pro/resources/images/icons/info-icon-1.png" alt=""></figure>
  31. <h2>영업 핫라인</h2>
  32. <div class="phone"><a href="tel:01052609961">Mobile: 010-5260-9961</a></div>
  33. </div>
  34. </div>
  35. <div class="col-lg-4 col-md-6 col-sm-12 info-column">
  36. <div class="single-info-box">
  37. <figure class="icon-box"><img src="/themes/kbgolf/pro/resources/images/icons/info-icon-2.png" alt=""></figure>
  38. <h2>E-mail</h2>
  39. <div class="phone"><a href="mailto:kimhi65@gmail.com">kimhi65@gmail.com</a></div>
  40. </div>
  41. </div>
  42. <div class="col-lg-4 col-md-6 col-sm-12 info-column">
  43. <div class="single-info-box">
  44. <figure class="icon-box"><img src="/themes/kbgolf/pro/resources/images/icons/info-icon-3.png" alt=""></figure>
  45. <h2>강남 사무실</h2>
  46. <div class="text">서울특별시 강남구 강남대로92길 31 민석빌딩 6층<br>(강남역 12번 출구 1분거리)</div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="contact-form-area">
  52. <div class="sec-title center"><h2>영업 문의</h2></div>
  53. <div class="form-inner">
  54. <form id="contact-us-form" class="input_f form-prevent-multiple-submits" method="POST" action="{{ route('contact-us.store') }}">
  55. @csrf
  56. <div class="row">
  57. <div class="col-lg-6 col-md-12 col-sm-12 column">
  58. <div class="form-group">
  59. <i class="fas fa-user"></i>
  60. <input type="text" name="Pc1" placeholder="작성자 *" value="{{ old('Pc1') }}" required>
  61. </div>
  62. </div>
  63. <div class="col-lg-6 col-md-12 col-sm-12 column">
  64. <div class="form-group">
  65. <i class="fas fa-envelope"></i>
  66. <input type="email" name="Pc10" placeholder="이메일 *" value="{{ old('Pc10') }}" required>
  67. </div>
  68. </div>
  69. <div class="col-lg-6 col-md-12 col-sm-12 column">
  70. <div class="form-group">
  71. <i class="fas fa-file"></i>
  72. <input type="text" name="PostTitle" placeholder="제목 *" value="{{ old('PostTitle') }}" required>
  73. </div>
  74. </div>
  75. <div class="col-lg-6 col-md-12 col-sm-12 column">
  76. <div class="form-group">
  77. <i class="fas fa-phone"></i>
  78. <input type="text" name="Pc4" placeholder="모바일 번호 *" value="{{ old('Pc4') }}" required>
  79. </div>
  80. </div>
  81. <div class="col-lg-12 col-md-12 col-sm-12 column">
  82. <div class="form-group">
  83. <textarea name="PostContents" placeholder="내용 *" required>{{ old('PostContents') }}</textarea>
  84. </div>
  85. </div>
  86. <div class="mb-4 w-100 ">
  87. <h3 class="text-danger text-center font-weight-bold">모든 항목을 올바르게 입력하셔야 문의하기 버튼이 활성화 됩니다.</h3>
  88. </div>
  89. <div class="captcha_wrap btn_wrap d-flex align-items-center flex-column justify-content-between">
  90. {{-- <div id="captcha" class="g-recaptcha mb-3 mb-md-0" data-sitekey="6LeOP1wkAAAAAKp2uLahTyy3ID6Sp4F3CgcOI0u0"></div>--}}
  91. <div class="btn_wrap">
  92. <div class="d-flex modal-body px-0 m-auto py-3">
  93. {{-- <div class="form-group mb-1">--}}
  94. {{-- <div class="captcha text-center">--}}
  95. {{-- <span>{!! captcha_img() !!}</span>--}}
  96. {{-- </div>--}}
  97. {{-- </div>--}}
  98. <div class="form-group d-flex mb-0">
  99. <input id="captcha" type="text"
  100. class="form-control col h-auto radius-r0 mb-3" required
  101. style="min-height: 50px;"
  102. placeholder="문자열 입력" name="captcha">
  103. <button type="button" class="btn reload rounded col w-100 mx-0" style="max-width: 100%; min-height: 50px;" id="reload">
  104. 새로고침
  105. </button>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="col-lg-12 col-md-12 col-sm-12 column">
  111. <div class="form-group message-btn centred">
  112. <button type="submit" class="theme-btn-two contact-us-btn" disabled name="submit-form">
  113. <i class="spinner fa fa-spinner fa-spin" style="position: unset;"></i>
  114. 문의하기
  115. </button>
  116. </div>
  117. </div>
  118. </div>
  119. </form>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </section>
  126. <!-- contact-section end -->
  127. <!-- map-section -->
  128. <section class="map-section">
  129. <div class="google-map-area">
  130. <div
  131. class="google-map"
  132. id="contact-google-map"
  133. data-map-lat="40.712776"
  134. data-map-lng="-74.005974"
  135. data-icon-path="/themes/kbgolf/pro/resources/images/icons/map-marker.png"
  136. data-map-title="Brooklyn, New York, United Kingdom"
  137. data-map-zoom="12"
  138. data-markers='{
  139. "marker-1": [40.712776, -74.005974, "<h4>Branch Office</h4><p>77/99 New York</p>","/themes/kbgolf/pro/resources/images/icons/map-marker.png"]
  140. }'>
  141. </div>
  142. </div>
  143. </section>
  144. <!-- map-section end -->
  145. @endsection
  146. @push('js')
  147. <script>
  148. $('#contact-us-form input').on('input', function() {
  149. input_check()
  150. });
  151. $('#contact-us-form textarea').on('input', function() {
  152. input_check()
  153. });
  154. function input_check() {
  155. let check = true
  156. $('#contact-us-form input').each(function () {
  157. if ($(this).val() == '') {
  158. check = false
  159. return false
  160. }
  161. })
  162. $('#contact-us-form textarea').each(function () {
  163. if ($(this).val() == '') {
  164. check = false
  165. return false
  166. }
  167. })
  168. $('.contact-us-btn').prop('disabled', ! check)
  169. return check
  170. }
  171. $('input[name=Pc4]').on('input', function() {
  172. let phoneNumber = $(this).val();
  173. // Remove any non-numeric characters
  174. phoneNumber = phoneNumber.replace(/\D/g, '');
  175. // Limit input to 11 digits
  176. phoneNumber = phoneNumber.substring(0, 11);
  177. // Update the input value
  178. $(this).val(phoneNumber);
  179. });
  180. $('#reload').click(function () {
  181. $.ajax({
  182. type: 'GET',
  183. url: '{{ url('reload-captcha') }}',
  184. success: function (data) {
  185. $('#captcha').val('')
  186. $(".captcha span").html(data.captcha);
  187. }
  188. });
  189. });
  190. </script>
  191. @endpush