314af612e4470bd6ac0f721ab962f9374ebcff2c.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <?php $__env->startSection('panel_content'); ?>
  2. <section class="py-8 bg-soft-primary">
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-xl-8 mx-auto text-center">
  6. <h1 class="mb-0 fw-700"><?php echo e(translate('Premium Packages for Sellers')); ?></h1>
  7. </div>
  8. </div>
  9. </div>
  10. </section>
  11. <section class="py-4 py-lg-5">
  12. <div class="container">
  13. <div class="row row-cols-xxl-5 row-cols-lg-3 row-cols-md-2 row-cols-1 gutters-10 justify-content-center">
  14. <?php $__currentLoopData = $seller_packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $seller_package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  15. <div class="col">
  16. <div class="card overflow-hidden">
  17. <div class="card-body">
  18. <div class="text-center mb-4 mt-3">
  19. <img class="mw-100 mx-auto mb-4" src="<?php echo e(uploaded_asset($seller_package->logo)); ?>" height="100">
  20. <h5 class="mb-3 h5 fw-600"><?php echo e($seller_package->getTranslation('name')); ?></h5>
  21. </div>
  22. <ul class="list-group list-group-raw fs-15 mb-5">
  23. <!--<li class="list-group-item py-2">-->
  24. <!-- <i class="las la-check text-success mr-2"></i>-->
  25. <!-- <?php echo e($seller_package->product_upload_limit); ?> <?php echo e(translate('Product Upload Limit')); ?>-->
  26. <!--</li>-->
  27. <li class="list-group-item py-2">
  28. <i class="las la-check text-success mr-2"></i>
  29. <?php echo e(translate('profit')); ?> <?php echo e($seller_package->max_profit); ?>%
  30. </li>
  31. </ul>
  32. <div class="mb-5 d-flex align-items-center justify-content-center">
  33. <?php if($seller_package->amount == 0): ?>
  34. <span class="display-4 fw-600 lh-1 mb-0" style="font-size: 14px;"><?php echo e(translate('Free')); ?></span>
  35. <?php else: ?>
  36. <span class="display-4 fw-600 lh-1 mb-0" style="font-size: 14px"><?php echo e(translate('total recharge')); ?> <?php echo e(single_price($seller_package->amount)); ?></span>
  37. <?php endif; ?>
  38. <!--<span class="text-secondary border-left ml-2 pl-2"><?php echo e($seller_package->duration); ?><br><?php echo e(translate('Days')); ?></span>-->
  39. </div>
  40. <!--<div class="text-center">-->
  41. <!-- <?php if($seller_package->amount == 0): ?>-->
  42. <!-- <button class="btn btn-primary fw-600" onclick="get_free_package(<?php echo e($seller_package->id); ?>)"><?php echo e(translate('Free Package')); ?></button>-->
  43. <!-- <?php else: ?>-->
  44. <!-- <?php if(addon_is_activated('offline_payment')): ?>-->
  45. <!-- <button class="btn btn-primary fw-600" onclick="select_payment_type(<?php echo e($seller_package->id); ?>)"><?php echo e(translate('Purchase Package')); ?></button>-->
  46. <!-- <?php else: ?>-->
  47. <!-- <button class="btn btn-primary fw-600" onclick="show_price_modal(<?php echo e($seller_package->id); ?>)"><?php echo e(translate('Purchase Package')); ?></button>-->
  48. <!-- <?php endif; ?>-->
  49. <!-- <?php endif; ?>-->
  50. <!--</div>-->
  51. </div>
  52. </div>
  53. </div>
  54. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  55. </div>
  56. </div>
  57. </section>
  58. <?php $__env->stopSection(); ?>
  59. <?php $__env->startSection('modal'); ?>
  60. <!-- Payment For Storehouse Modal -->
  61. <div class="modal fade" id="payment_for_storehouse_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  62. <div class="modal-dialog modal-dialog-centered" role="document">
  63. <div class="modal-content">
  64. <div class="modal-header">
  65. <h5 class="modal-title" id="exampleModalLabel"><?php echo e(translate('Payment For Storehouse')); ?></h5>
  66. <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button>
  67. </div>
  68. <div class="modal-body">
  69. <div class="row">
  70. <div class="col-12">
  71. <h5 class="text-center"><?php echo e(translate('Pay with wallet')); ?>
  72. <?php
  73. $user = \App\Models\User::find(Auth::user()->id);
  74. ?>
  75. <?php echo e(single_price($user->balance)); ?></h5>
  76. </div>
  77. </div>
  78. <div class="row">
  79. <div class="col-md-9">
  80. <input type="password" lang="en" class="form-control mb-3" id="tpwd" name="tpwd"
  81. placeholder="<?php echo e(translate('Transaction password')); ?>" max=6 required>
  82. </div>
  83. </div>
  84. <div class="form-group text-right">
  85. <button type="button" class="btn btn-sm btn-light transition-3d-hover mr-3" data-dismiss="modal"><?php echo e(translate('Cancel')); ?></button>
  86. <button id="payment_button" type="button" class="btn btn-sm btn-primary transition-3d-hover mr-1"><?php echo e(translate('Payment')); ?></button>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <!-- Select Payment Type Modal -->
  93. <div class="modal fade" id="select_payment_type_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  94. <div class="modal-dialog modal-dialog-centered" role="document">
  95. <div class="modal-content">
  96. <div class="modal-header">
  97. <h5 class="modal-title" id="exampleModalLabel"><?php echo e(translate('Select Payment Type')); ?></h5>
  98. <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button>
  99. </div>
  100. <div class="modal-body">
  101. <input type="hidden" id="package_id" name="package_id" value="">
  102. <div class="row">
  103. <div class="col-md-3">
  104. <label><?php echo e(translate('Payment Type')); ?></label>
  105. </div>
  106. <div class="col-md-9">
  107. <div class="mb-3">
  108. <select style="width:300px;" class="form-control aiz-selectpicker" onchange="payment_type(this.value)"
  109. data-minimum-results-for-search="Infinity">
  110. <option value=""><?php echo e(translate('Select One')); ?></option>
  111. <option value="cash"><?php echo e(translate('Wallet')); ?></option>
  112. <option value="online"><?php echo e(translate('Online payment')); ?></option>
  113. <option value="offline"><?php echo e(translate('Offline payment')); ?></option>
  114. </select>
  115. </div>
  116. </div>
  117. </div>
  118. <div class="form-group text-right">
  119. <button type="button" class="btn btn-sm btn-primary transition-3d-hover mr-1" id="select_type_cancel" data-dismiss="modal"><?php echo e(translate('Cancel')); ?></button>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. <!-- Online payment Modal-->
  126. <div class="modal fade" id="price_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  127. <div class="modal-dialog modal-dialog-centered" role="document">
  128. <div class="modal-content">
  129. <div class="modal-header">
  130. <h5 class="modal-title" id="exampleModalLabel"><?php echo e(translate('Purchase Your Package')); ?></h5>
  131. <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button>
  132. </div>
  133. <form class="" id="package_payment_form" action="<?php echo e(route('seller_packages.purchase')); ?>" method="post">
  134. <?php echo csrf_field(); ?>
  135. <input type="hidden" name="seller_package_id" value="">
  136. <div class="modal-body">
  137. <div class="row">
  138. <div class="col-md-2">
  139. <label><?php echo e(translate('Payment Method')); ?></label>
  140. </div>
  141. <div class="col-md-10">
  142. <div class="mb-3">
  143. <select class="form-control aiz-selectpicker" data-live-search="true" name="payment_option">
  144. <?php if(get_setting('paypal_payment') == 1): ?>
  145. <option value="paypal"><?php echo e(translate('Paypal')); ?></option>
  146. <?php endif; ?>
  147. <?php if(get_setting('stripe_payment') == 1): ?>
  148. <option value="stripe"><?php echo e(translate('Stripe')); ?></option>
  149. <?php endif; ?>
  150. <?php if(get_setting('mercadopago_payment') == 1): ?>
  151. <option value="mercadopago"><?php echo e(translate('Mercadopago')); ?></option>
  152. <option value="paypal"><?php echo e(translate('Paypal')); ?></option>
  153. <?php endif; ?>
  154. <?php if(get_setting('toyyibpay_payment') == 1): ?>
  155. <option value="toyyibpay"><?php echo e(translate('ToyyibPay')); ?></option>
  156. <?php endif; ?>
  157. <?php if(get_setting('sslcommerz_payment') == 1): ?>
  158. <option value="sslcommerz"><?php echo e(translate('sslcommerz')); ?></option>
  159. <?php endif; ?>
  160. <?php if(get_setting('instamojo_payment') == 1): ?>
  161. <option value="instamojo"><?php echo e(translate('Instamojo')); ?></option>
  162. <?php endif; ?>
  163. <?php if(get_setting('razorpay') == 1): ?>
  164. <option value="razorpay"><?php echo e(translate('RazorPay')); ?></option>
  165. <?php endif; ?>
  166. <?php if(get_setting('paystack') == 1): ?>
  167. <option value="paystack"><?php echo e(translate('PayStack')); ?></option>
  168. <?php endif; ?>
  169. <?php if(get_setting('payhere') == 1): ?>
  170. <option value="payhere"><?php echo e(translate('Payhere')); ?></option>
  171. <?php endif; ?>
  172. <?php if(get_setting('ngenius') == 1): ?>
  173. <option value="ngenius"><?php echo e(translate('Ngenius')); ?></option>
  174. <?php endif; ?>
  175. <?php if(get_setting('iyzico') == 1): ?>
  176. <option value="iyzico"><?php echo e(translate('Iyzico')); ?></option>
  177. <?php endif; ?>
  178. <?php if(get_setting('nagad') == 1): ?>
  179. <option value="nagad"><?php echo e(translate('Nagad')); ?></option>
  180. <?php endif; ?>
  181. <?php if(get_setting('bkash') == 1): ?>
  182. <option value="bkash"><?php echo e(translate('Bkash')); ?></option>
  183. <?php endif; ?>
  184. <?php if(get_setting('aamarpay') == 1): ?>
  185. <option value="aamarpay"><?php echo e(translate('Amarpay')); ?></option>
  186. <?php endif; ?>
  187. <?php if(addon_is_activated('african_pg')): ?>
  188. <?php if(get_setting('mpesa') == 1): ?>
  189. <option value="mpesa"><?php echo e(translate('Mpesa')); ?></option>
  190. <?php endif; ?>
  191. <?php if(get_setting('flutterwave') == 1): ?>
  192. <option value="flutterwave"><?php echo e(translate('Flutterwave')); ?></option>
  193. <?php endif; ?>
  194. <?php if(get_setting('payfast') == 1): ?>
  195. <option value="payfast"><?php echo e(translate('PayFast')); ?></option>
  196. <?php endif; ?>
  197. <?php endif; ?>
  198. </select>
  199. </div>
  200. </div>
  201. </div>
  202. <div class="form-group text-right">
  203. <button type="button" class="btn btn-sm btn-secondary transition-3d-hover mr-1" data-dismiss="modal"><?php echo e(translate('cancel')); ?></button>
  204. <button type="submit" class="btn btn-sm btn-primary transition-3d-hover mr-1"><?php echo e(translate('Confirm')); ?></button>
  205. </div>
  206. </div>
  207. </form>
  208. </div>
  209. </div>
  210. </div>
  211. <!-- offline payment Modal -->
  212. <div class="modal fade" id="offline_seller_package_purchase_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  213. <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  214. <div class="modal-content">
  215. <div class="modal-header">
  216. <h5 class="modal-title strong-600 heading-5"><?php echo e(translate('Offline Package Payment')); ?></h5>
  217. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  218. <span aria-hidden="true">&times;</span>
  219. </button>
  220. </div>
  221. <div id="offline_seller_package_purchase_modal_body"></div>
  222. </div>
  223. </div>
  224. </div>
  225. <?php $__env->stopSection(); ?>
  226. <?php $__env->startSection('script'); ?>
  227. <script src="/public/assets/js/md5.min.js"></script>
  228. <script type="text/javascript">
  229. function select_payment_type(id){
  230. $('input[name=package_id]').val(id);
  231. $('#select_payment_type_modal').modal('show');
  232. }
  233. $('#payment_button').on('click', function () {
  234. <?php
  235. $tpwd = Auth::user()->tpwd;
  236. ?>
  237. var tpwd = '<?php echo $tpwd; ?>'
  238. var pwd = $("#tpwd").val();
  239. if (md5(pwd) != tpwd) {
  240. AIZ.plugins.notify('danger',
  241. '<?php echo e(translate('password error')); ?>');
  242. return;
  243. }
  244. $.post('<?php echo e(route('orders.buy_package_cash')); ?>', {
  245. _token: '<?php echo e(csrf_token()); ?>',
  246. package_id: $('#package_id').val()
  247. }, function (data) {
  248. console.log(data)
  249. if (data.success == 1) {
  250. $('#order_details').modal('hide');
  251. AIZ.plugins.notify('success', data.message );
  252. location.reload().setTimeOut(500);
  253. } else {
  254. AIZ.plugins.notify('danger', data.message ? data.message : '出问题了!');
  255. }
  256. });
  257. })
  258. function payment_type(type){
  259. var package_id = $('#package_id').val();
  260. if(type == 'online'){
  261. $("#select_type_cancel").click();
  262. show_price_modal(package_id);
  263. }
  264. else if(type == 'cash'){
  265. $("#select_type_cancel").click();
  266. $('#payment_for_storehouse_modal').modal('show');
  267. }
  268. else if (type == 'offline'){
  269. $("#select_type_cancel").click();
  270. $.post('<?php echo e(route('seller.offline_seller_package_purchase_modal')); ?>', {_token:'<?php echo e(csrf_token()); ?>', package_id:package_id}, function(data){
  271. $('#offline_seller_package_purchase_modal_body').html(data);
  272. $('#offline_seller_package_purchase_modal').modal('show');
  273. });
  274. }
  275. }
  276. function show_price_modal(id){
  277. $('input[name=seller_package_id]').val(id);
  278. $('#price_modal').modal('show');
  279. }
  280. function get_free_package(id){
  281. $('input[name=seller_package_id]').val(id);
  282. $('#package_payment_form').submit();
  283. }
  284. </script>
  285. <?php $__env->stopSection(); ?>
  286. <?php echo $__env->make('seller.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/seller_packages/frontend/seller_packages_list.blade.php ENDPATH**/ ?>