a5bcd6e7ffb222aef7838d55158f3f31da3a09ce.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. <div class="bg-white rounded shadow-sm mb-4">
  28. <div class="fs-15 fw-600 p-3 border-bottom">
  29. <?php echo e(translate('Basic Info')); ?>
  30. </div>
  31. <div class="p-3">
  32. <input type="hidden" class="form-control mb-3" name="create" value="2" required>
  33. <div class="form-group">
  34. <label><?php echo e(translate('Shop Name')); ?> <span class="text-primary">*</span></label>
  35. <input type="text" class="form-control" placeholder="<?php echo e(translate('Shop Name')); ?>" name="name" required>
  36. </div>
  37. <div class="form-group">
  38. <label><?php echo e(translate('Address')); ?> <span class="text-primary">*</span></label>
  39. <input type="text" class="form-control mb-3" placeholder="<?php echo e(translate('Address')); ?>" name="address" required>
  40. </div>
  41. <div class="form-group">
  42. <label><?php echo e(translate('Certificates Num')); ?> <span class="text-primary">*</span></label>
  43. <input type="text" class="form-control mb-3" placeholder="<?php echo e(translate('Certificates Num')); ?>" name="identity_card_num" required>
  44. </div>
  45. <div class="form-group">
  46. <label><?php echo e(translate('Line ID')); ?> <span class="text-primary">*</span></label>
  47. <input type="text" class="form-control mb-3" placeholder="<?php echo e(translate('Line ID')); ?>" name="line" required>
  48. </div>
  49. <div class="form-group" style="display: none;">
  50. <label><?php echo e(translate('Certificates Type')); ?> <span class="text-primary">*</span></label>
  51. <select class="form-control" name="certtype">
  52. <option value="idcard" selected> <?php echo e(translate('id card')); ?></option>
  53. <option value="passport"> <?php echo e(translate('passport')); ?></option>
  54. <option value="driving license"> <?php echo e(translate('driving license')); ?></option>
  55. <option value="social security card"> <?php echo e(translate('Social Security Card')); ?></option>
  56. </select>
  57. </div>
  58. <div class="form-group">
  59. <label><?php echo e(translate('Certificates Front')); ?> <span class="text-primary">*</span></label>
  60. <div class="input-group" data-toggle="aizuploader" data-type="image">
  61. <div class="input-group-prepend">
  62. <div class="input-group-text bg-soft-secondary font-weight-medium"><?php echo e(translate('Browse')); ?></div>
  63. </div>
  64. <div class="form-control file-amount"><?php echo e(translate('Choose File')); ?></div>
  65. <input type="hidden" name="identity_card_front" value="" class="selected-files">
  66. </div>
  67. <div class="file-preview box sm">
  68. </div>
  69. </div>
  70. <div class="form-group" style="display: none;">
  71. <label><?php echo e(translate('Certificates Back')); ?> <span class="text-primary">*</span></label>
  72. <div class="input-group" data-toggle="aizuploader" data-type="image">
  73. <div class="input-group-prepend">
  74. <div class="input-group-text bg-soft-secondary font-weight-medium"><?php echo e(translate('Browse')); ?></div>
  75. </div>
  76. <div class="form-control file-amount"><?php echo e(translate('Choose File')); ?></div>
  77. <input type="hidden" name="identity_card_back" value="none" class="selected-files">
  78. </div>
  79. <div class="file-preview box sm">
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <?php if(get_setting('google_recaptcha') == 1): ?>
  85. <div class="form-group mt-2 mx-auto row">
  86. <div class="g-recaptcha" data-sitekey="<?php echo e(env('CAPTCHA_KEY')); ?>"></div>
  87. </div>
  88. <?php endif; ?>
  89. <div class="text-right">
  90. <button type="submit" class="btn btn-primary fw-600"><?php echo e(translate('Register Your Shop')); ?></button>
  91. </div>
  92. </form>
  93. </div>
  94. </div>
  95. </div>
  96. </section>
  97. <?php $__env->stopSection(); ?>
  98. <?php $__env->startSection('script'); ?>
  99. <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  100. <script type="text/javascript">
  101. // making the CAPTCHA a required field for form submission
  102. $(document).ready(function(){
  103. // alert('helloman');
  104. $("#shop").on("submit", function(evt)
  105. {
  106. var response = grecaptcha.getResponse();
  107. if(response.length == 0)
  108. {
  109. //reCaptcha not verified
  110. alert("please verify you are humann!");
  111. evt.preventDefault();
  112. return false;
  113. }
  114. //captcha verified
  115. //do the rest of your validations here
  116. $("#reg-form").submit();
  117. });
  118. });
  119. </script>
  120. <?php $__env->stopSection(); ?>
  121. <?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/club_points/registered_shop.blade.php ENDPATH**/ ?>