fda909c0c523fc72b5d9cc5199e6c00980c167c9.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?php $__env->startSection('content'); ?>
  2. <section class="pt-4 mb-4">
  3. <div class="container text-center">
  4. <div class="row">
  5. <div class="col-lg-6 text-center text-lg-left">
  6. <h1 class="fw-600 h4"><?php echo e(translate('Register your shop')); ?></h1>
  7. </div>
  8. <div class="col-lg-6">
  9. <ul class="breadcrumb bg-transparent p-0 justify-content-center justify-content-lg-end">
  10. <li class="breadcrumb-item opacity-50">
  11. <a class="text-reset" href="<?php echo e(route('home')); ?>"><?php echo e(translate('Home')); ?></a>
  12. </li>
  13. <li class="text-dark fw-600 breadcrumb-item">
  14. <a class="text-reset" href="<?php echo e(route('shops.create')); ?>">"<?php echo e(translate('Register your shop')); ?>"</a>
  15. </li>
  16. </ul>
  17. </div>
  18. </div>
  19. </div>
  20. </section>
  21. <section class="pt-4 mb-4">
  22. <div class="container">
  23. <div class="row">
  24. <div class="col-xxl-5 col-xl-6 col-md-8 mx-auto">
  25. <form id="shop" class="" action="<?php echo e(route('shops.store')); ?>" method="POST" enctype="multipart/form-data">
  26. <?php echo csrf_field(); ?>
  27. <?php if(!Auth::check()): ?>
  28. <div class="bg-white rounded shadow-sm mb-3">
  29. <div class="fs-15 fw-600 p-3 border-bottom">
  30. <?php echo e(translate('Personal Info')); ?>
  31. </div>
  32. <div class="p-3">
  33. <div class="form-group">
  34. <label><?php echo e(translate('Your Name')); ?> <span class="text-primary">*</span></label>
  35. <input type="text" class="form-control<?php echo e($errors->has('name') ? ' is-invalid' : ''); ?>" value="<?php echo e(old('name')); ?>" placeholder="<?php echo e(translate('Name')); ?>" name="name">
  36. </div>
  37. <div class="form-group">
  38. <label><?php echo e(translate('Your Email')); ?> <span class="text-primary">*</span></label>
  39. <input type="email" class="form-control<?php echo e($errors->has('email') ? ' is-invalid' : ''); ?>" value="<?php echo e(old('email')); ?>" placeholder="<?php echo e(translate('Email')); ?>" name="email">
  40. </div>
  41. <div class="form-group">
  42. <label><?php echo e(translate('Your Password')); ?> <span class="text-primary">*</span></label>
  43. <input type="password" class="form-control<?php echo e($errors->has('password') ? ' is-invalid' : ''); ?>" placeholder="<?php echo e(translate('Password')); ?>" name="password">
  44. </div>
  45. <div class="form-group">
  46. <label><?php echo e(translate('Repeat Password')); ?> <span class="text-primary">*</span></label>
  47. <input type="password" class="form-control" placeholder="<?php echo e(translate('Confirm Password')); ?>" name="password_confirmation">
  48. </div>
  49. <div class="form-group">
  50. <label><?php echo e(translate('Invitation Code')); ?> <span class="text-primary">*</span></label>
  51. <input type="text" class="form-control" id="invit" placeholder="<?php echo e(translate('Invitation Code')); ?>" name="invit">
  52. </div>
  53. </div>
  54. </div>
  55. <?php endif; ?>
  56. <div class="bg-white rounded shadow-sm mb-4">
  57. <div class="fs-15 fw-600 p-3 border-bottom">
  58. <?php echo e(translate('Basic Info')); ?>
  59. </div>
  60. <div class="p-3">
  61. <div class="form-group">
  62. <label><?php echo e(translate('Shop Name')); ?> <span class="text-primary">*</span></label>
  63. <input type="text" class="form-control" placeholder="<?php echo e(translate('Shop Name')); ?>" name="name" required>
  64. </div>
  65. <div class="form-group">
  66. <label><?php echo e(translate('Address')); ?> <span class="text-primary">*</span></label>
  67. <input type="text" class="form-control mb-3" placeholder="<?php echo e(translate('Address')); ?>" name="address" required>
  68. </div>
  69. <div class="form-group">
  70. <label><?php echo e(translate('Certificates Num')); ?> <span class="text-primary">*</span></label>
  71. <input type="text" class="form-control mb-3" placeholder="<?php echo e(translate('Certificates Num')); ?>" name="identity_card_num" required>
  72. </div>
  73. <div class="form-group">
  74. <label><?php echo e(translate('Line ID')); ?> <span class="text-primary">*</span></label>
  75. <input type="text" class="form-control mb-3" placeholder="<?php echo e(translate('Line ID')); ?>" name="line" required>
  76. </div>
  77. <div class="form-group" style="display: none;">
  78. <label><?php echo e(translate('Certificates Type')); ?> <span class="text-primary">*</span></label>
  79. <select class="form-control" name="certtype">
  80. <option value="idcard" selected> <?php echo e(translate('id card')); ?></option>
  81. <option value="passport"> <?php echo e(translate('passport')); ?></option>
  82. <option value="driving license"> <?php echo e(translate('driving license')); ?></option>
  83. <option value="social security card"> <?php echo e(translate('Social Security Card')); ?></option>
  84. </select>
  85. </div>
  86. <div class="form-group">
  87. <label><?php echo e(translate('Certificates Front')); ?> <span class="text-primary">*</span></label>
  88. <div class="input-group" data-toggle="aizuploader" data-type="image">
  89. <div class="input-group-prepend">
  90. <div class="input-group-text bg-soft-secondary font-weight-medium"><?php echo e(translate('Browse')); ?></div>
  91. </div>
  92. <div class="form-control file-amount"><?php echo e(translate('Choose File')); ?></div>
  93. <input type="hidden" name="identity_card_front" value="" class="selected-files">
  94. </div>
  95. <div class="file-preview box sm">
  96. </div>
  97. </div>
  98. <div class="form-group" style="display: none;">
  99. <label><?php echo e(translate('Certificates Back')); ?> <span class="text-primary">*</span></label>
  100. <div class="input-group" data-toggle="aizuploader" data-type="image">
  101. <div class="input-group-prepend">
  102. <div class="input-group-text bg-soft-secondary font-weight-medium"><?php echo e(translate('Browse')); ?></div>
  103. </div>
  104. <div class="form-control file-amount"><?php echo e(translate('Choose File')); ?></div>
  105. <input type="hidden" name="identity_card_back" value="none" class="selected-files">
  106. </div>
  107. <div class="file-preview box sm">
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <?php if(get_setting('google_recaptcha') == 1): ?>
  113. <div class="form-group mt-2 mx-auto row">
  114. <div class="g-recaptcha" data-sitekey="<?php echo e(env('CAPTCHA_KEY')); ?>"></div>
  115. </div>
  116. <?php endif; ?>
  117. <div class="text-right">
  118. <button type="submit" class="btn btn-primary fw-600"><?php echo e(translate('Register Your Shop')); ?></button>
  119. </div>
  120. </form>
  121. </div>
  122. </div>
  123. </div>
  124. </section>
  125. <?php $__env->stopSection(); ?>
  126. <?php $__env->startSection('script'); ?>
  127. <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  128. <script type="text/javascript">
  129. var invit=getQueryString('leader_id');
  130. $("#invit").val(invit);
  131. function getQueryString(name) {
  132. var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
  133. var r = window.location.search.substr(1).match(reg);
  134. if (r != null) {
  135. return unescape(r[2]);
  136. }
  137. return null;
  138. }
  139. // making the CAPTCHA a required field for form submission
  140. $(document).ready(function(){
  141. // alert('helloman');
  142. $("#shop").on("submit", function(evt)
  143. {
  144. var response = grecaptcha.getResponse();
  145. if(response.length == 0)
  146. {
  147. //reCaptcha not verified
  148. alert("please verify you are humann!");
  149. evt.preventDefault();
  150. return false;
  151. }
  152. //captcha verified
  153. //do the rest of your validations here
  154. $("#reg-form").submit();
  155. });
  156. });
  157. </script>
  158. <?php $__env->stopSection(); ?>
  159. <?php echo $__env->make('frontend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/seller_form.blade.php ENDPATH**/ ?>