c211305990d7c52a6bd8f9b431f5f298984197ca.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?php $__env->startSection('content'); ?>
  2. <section class="pt-4 mb-4">
  3. <div class="container">
  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('Affiliate Informations')); ?></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('affiliate.apply')); ?>">"<?php echo e(translate('Affiliate')); ?>"</a>
  15. </li>
  16. </ul>
  17. </div>
  18. </div>
  19. <div class="row">
  20. <div class="col-lg-8 mx-auto">
  21. <form class="" action="<?php echo e(route('affiliate.store_affiliate_user')); ?>" method="POST" enctype="multipart/form-data">
  22. <?php echo csrf_field(); ?>
  23. <?php if(!Auth::check()): ?>
  24. <div class="card">
  25. <div class="card-header">
  26. <h5 class="mb-0 h6"><?php echo e(translate('User Info')); ?></h5>
  27. </div>
  28. <div class="card-body">
  29. <div class="row">
  30. <div class="col-12">
  31. <div class="form-group">
  32. <div class="input-group input-group--style-1">
  33. <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">
  34. <span class="input-group-addon">
  35. <i class="las la-user"></i>
  36. </span>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="row">
  42. <div class="col-12">
  43. <div class="form-group">
  44. <div class="input-group input-group--style-1">
  45. <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">
  46. <span class="input-group-addon">
  47. <i class="las la-envelope"></i>
  48. </span>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="row">
  54. <div class="col-12">
  55. <div class="form-group">
  56. <div class="input-group input-group--style-1">
  57. <input type="password" class="form-control<?php echo e($errors->has('password') ? ' is-invalid' : ''); ?>" placeholder="<?php echo e(translate('Password')); ?>" name="password">
  58. <span class="input-group-addon">
  59. <i class="las la-lock"></i>
  60. </span>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="row">
  66. <div class="col-12">
  67. <div class="form-group">
  68. <div class="input-group input-group--style-1">
  69. <input type="password" class="form-control" placeholder="<?php echo e(translate('Confirm Password')); ?>" name="password_confirmation">
  70. <span class="input-group-addon">
  71. <i class=" las la-lock"></i>
  72. </span>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. <?php endif; ?>
  80. <div class="card">
  81. <div class="card-header">
  82. <h5 class="mb-0 h6"><?php echo e(translate('Verification info')); ?></h5>
  83. </div>
  84. <div class="card-body">
  85. <?php
  86. $verification_form = \App\Models\AffiliateConfig::where('type', 'verification_form')->first()->value;
  87. ?>
  88. <?php $__currentLoopData = json_decode($verification_form); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  89. <?php if($element->type == 'text'): ?>
  90. <div class="row">
  91. <label class="col-md-2 col-form-label"><?php echo e($element->label); ?> <span class="text-danger">*</span></label>
  92. <div class="col-md-10">
  93. <input type="<?php echo e($element->type); ?>" class="form-control mb-3" placeholder="<?php echo e($element->label); ?>" name="element_<?php echo e($key); ?>" required>
  94. </div>
  95. </div>
  96. <?php elseif($element->type == 'file'): ?>
  97. <div class="row">
  98. <label class="col-md-2 col-form-label"><?php echo e($element->label); ?></label>
  99. <div class="col-md-10">
  100. <input type="<?php echo e($element->type); ?>" name="element_<?php echo e($key); ?>" id="file-<?php echo e($key); ?>" class="custom-input-file custom-input-file--4" data-multiple-caption="{count} files selected" required/>
  101. <label for="file-<?php echo e($key); ?>" class="mw-100 mb-3">
  102. <span></span>
  103. <strong>
  104. <i class="fa fa-upload"></i>
  105. <?php echo e(translate('Choose file')); ?>
  106. </strong>
  107. </label>
  108. </div>
  109. </div>
  110. <?php elseif($element->type == 'select' && is_array(json_decode($element->options))): ?>
  111. <div class="row">
  112. <label class="col-md-2 col-form-label"><?php echo e($element->label); ?></label>
  113. <div class="col-md-10">
  114. <div class="mb-3">
  115. <select class="form-control selectpicker" data-minimum-results-for-search="Infinity" name="element_<?php echo e($key); ?>" required>
  116. <?php $__currentLoopData = json_decode($element->options); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  117. <option value="<?php echo e($value); ?>"><?php echo e($value); ?></option>
  118. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  119. </select>
  120. </div>
  121. </div>
  122. </div>
  123. <?php elseif($element->type == 'multi_select' && is_array(json_decode($element->options))): ?>
  124. <div class="row">
  125. <label class="col-md-2 col-form-label"><?php echo e($element->label); ?></label>
  126. <div class="col-md-10">
  127. <div class="mb-3">
  128. <select class="form-control selectpicker" data-minimum-results-for-search="Infinity" name="element_<?php echo e($key); ?>[]" multiple required>
  129. <?php $__currentLoopData = json_decode($element->options); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  130. <option value="<?php echo e($value); ?>"><?php echo e($value); ?></option>
  131. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  132. </select>
  133. </div>
  134. </div>
  135. </div>
  136. <?php elseif($element->type == 'radio'): ?>
  137. <div class="row">
  138. <label class="col-md-2 col-form-label"><?php echo e($element->label); ?></label>
  139. <div class="col-md-10">
  140. <div class="mb-3">
  141. <?php $__currentLoopData = json_decode($element->options); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  142. <div class="radio radio-inline">
  143. <input type="radio" name="element_<?php echo e($key); ?>" value="<?php echo e($value); ?>" id="<?php echo e($value); ?>" required>
  144. <label for="<?php echo e($value); ?>"><?php echo e($value); ?></label>
  145. </div>
  146. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  147. </div>
  148. </div>
  149. </div>
  150. <?php endif; ?>
  151. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  152. </div>
  153. </div>
  154. <div class="form-group mb-0 text-right">
  155. <button type="submit" class="btn btn-primary"><?php echo e(translate('Save')); ?></button>
  156. </div>
  157. </form>
  158. </div>
  159. </div>
  160. </div>
  161. </section>
  162. <?php $__env->stopSection(); ?>
  163. <?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/affiliate/frontend/apply_for_affiliate.blade.php ENDPATH**/ ?>