0c749234e9a0f55bd55b46613119faf5dfc2bab4.php 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. <?php $__env->startSection('content'); ?>
  2. <section class="mb-4 pt-5">
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-xl-8 mx-auto">
  6. <div class="row aiz-steps arrow-divider">
  7. <div class="col done">
  8. <div class="text-success text-center">
  9. <i class="la-3x las la-shopping-cart mb-2"></i>
  10. <h3 class="fs-14 fw-600 d-none d-lg-block"><?php echo e(translate('1. My Cart')); ?></h3>
  11. </div>
  12. </div>
  13. <div class="col done">
  14. <div class="text-success text-center">
  15. <i class="la-3x las la-map mb-2"></i>
  16. <h3 class="fs-14 fw-600 d-none d-lg-block"><?php echo e(translate('2. Shipping info')); ?></h3>
  17. </div>
  18. </div>
  19. <div class="col done">
  20. <div class="text-success text-center">
  21. <i class="la-3x las la-truck mb-2"></i>
  22. <h3 class="fs-14 fw-600 d-none d-lg-block"><?php echo e(translate('3. Delivery info')); ?></h3>
  23. </div>
  24. </div>
  25. <div class="col active">
  26. <div class="text-primary text-center">
  27. <i class="la-3x las la-credit-card mb-2"></i>
  28. <h3 class="fs-14 fw-600 d-none d-lg-block"><?php echo e(translate('4. Payment')); ?></h3>
  29. </div>
  30. </div>
  31. <div class="col">
  32. <div class="text-center">
  33. <i class="la-3x las la-check-circle mb-2 opacity-50"></i>
  34. <h3 class="fs-14 fw-600 d-none d-lg-block opacity-50"><?php echo e(translate('5. Confirmation')); ?>
  35. </h3>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </section>
  43. <section class="mb-4">
  44. <div class="container text-left">
  45. <div class="row">
  46. <div class="col-lg-8">
  47. <form action="<?php echo e(route('payment.checkout')); ?>" class="form-default" role="form" method="POST"
  48. id="checkout-form">
  49. <?php echo csrf_field(); ?>
  50. <input type="hidden" name="owner_id" value="<?php echo e($carts[0]['owner_id']); ?>">
  51. <div class="card rounded border-0 shadow-sm">
  52. <div class="card-header p-3">
  53. <h3 class="fs-16 fw-600 mb-0">
  54. <?php echo e(translate('Any additional info?')); ?>
  55. </h3>
  56. </div>
  57. <div class="form-group px-3 pt-3">
  58. <textarea name="additional_info" rows="5" class="form-control"
  59. placeholder="<?php echo e(translate('Type your text')); ?>"></textarea>
  60. </div>
  61. <div class="card-header p-3">
  62. <h3 class="fs-16 fw-600 mb-0">
  63. <?php echo e(translate('Select a payment option')); ?>
  64. </h3>
  65. </div>
  66. <div class="card-body text-center">
  67. <div class="row">
  68. <div class="col-xxl-8 col-xl-10 mx-auto">
  69. <div class="row gutters-10">
  70. <?php if(get_setting('paypal_payment') == 1): ?>
  71. <div class="col-6 col-md-4">
  72. <label class="aiz-megabox d-block mb-3">
  73. <input value="paypal" class="online_payment" type="radio"
  74. name="payment_option" checked>
  75. <span class="d-block aiz-megabox-elem p-3">
  76. <img src="<?php echo e(static_asset('assets/img/cards/paypal.png')); ?>"
  77. class="img-fluid mb-2">
  78. <span class="d-block text-center">
  79. <span
  80. class="d-block fw-600 fs-15"><?php echo e(translate('Paypal')); ?></span>
  81. </span>
  82. </span>
  83. </label>
  84. </div>
  85. <?php endif; ?>
  86. <?php if(get_setting('stripe_payment') == 1): ?>
  87. <div class="col-6 col-md-4">
  88. <label class="aiz-megabox d-block mb-3">
  89. <input value="stripe" class="online_payment" type="radio"
  90. name="payment_option" checked>
  91. <span class="d-block aiz-megabox-elem p-3">
  92. <img src="<?php echo e(static_asset('assets/img/cards/stripe.png')); ?>"
  93. class="img-fluid mb-2">
  94. <span class="d-block text-center">
  95. <span
  96. class="d-block fw-600 fs-15"><?php echo e(translate('Stripe')); ?></span>
  97. </span>
  98. </span>
  99. </label>
  100. </div>
  101. <?php endif; ?>
  102. <?php if(get_setting('mercadopago_payment') == 1): ?>
  103. <div class="col-6 col-md-4">
  104. <label class="aiz-megabox d-block mb-3">
  105. <input value="mercadopago" class="online_payment" type="radio"
  106. name="payment_option" checked>
  107. <span class="d-block aiz-megabox-elem p-3">
  108. <img src="<?php echo e(static_asset('assets/img/cards/mercadopago.png')); ?>"
  109. class="img-fluid mb-2">
  110. <span class="d-block text-center">
  111. <span
  112. class="d-block fw-600 fs-15"><?php echo e(translate('Mercadopago')); ?></span>
  113. </span>
  114. </span>
  115. </label>
  116. </div>
  117. <?php endif; ?>
  118. <?php if(get_setting('sslcommerz_payment') == 1): ?>
  119. <div class="col-6 col-md-4">
  120. <label class="aiz-megabox d-block mb-3">
  121. <input value="sslcommerz" class="online_payment" type="radio"
  122. name="payment_option" checked>
  123. <span class="d-block aiz-megabox-elem p-3">
  124. <img src="<?php echo e(static_asset('assets/img/cards/sslcommerz.png')); ?>"
  125. class="img-fluid mb-2">
  126. <span class="d-block text-center">
  127. <span
  128. class="d-block fw-600 fs-15"><?php echo e(translate('sslcommerz')); ?></span>
  129. </span>
  130. </span>
  131. </label>
  132. </div>
  133. <?php endif; ?>
  134. <?php if(get_setting('instamojo_payment') == 1): ?>
  135. <div class="col-6 col-md-4">
  136. <label class="aiz-megabox d-block mb-3">
  137. <input value="instamojo" class="online_payment" type="radio"
  138. name="payment_option" checked>
  139. <span class="d-block aiz-megabox-elem p-3">
  140. <img src="<?php echo e(static_asset('assets/img/cards/instamojo.png')); ?>"
  141. class="img-fluid mb-2">
  142. <span class="d-block text-center">
  143. <span
  144. class="d-block fw-600 fs-15"><?php echo e(translate('Instamojo')); ?></span>
  145. </span>
  146. </span>
  147. </label>
  148. </div>
  149. <?php endif; ?>
  150. <?php if(get_setting('razorpay') == 1): ?>
  151. <div class="col-6 col-md-4">
  152. <label class="aiz-megabox d-block mb-3">
  153. <input value="razorpay" class="online_payment" type="radio"
  154. name="payment_option" checked>
  155. <span class="d-block aiz-megabox-elem p-3">
  156. <img src="<?php echo e(static_asset('assets/img/cards/rozarpay.png')); ?>"
  157. class="img-fluid mb-2">
  158. <span class="d-block text-center">
  159. <span
  160. class="d-block fw-600 fs-15"><?php echo e(translate('Razorpay')); ?></span>
  161. </span>
  162. </span>
  163. </label>
  164. </div>
  165. <?php endif; ?>
  166. <?php if(get_setting('paystack') == 1): ?>
  167. <div class="col-6 col-md-4">
  168. <label class="aiz-megabox d-block mb-3">
  169. <input value="paystack" class="online_payment" type="radio"
  170. name="payment_option" checked>
  171. <span class="d-block aiz-megabox-elem p-3">
  172. <img src="<?php echo e(static_asset('assets/img/cards/paystack.png')); ?>"
  173. class="img-fluid mb-2">
  174. <span class="d-block text-center">
  175. <span
  176. class="d-block fw-600 fs-15"><?php echo e(translate('Paystack')); ?></span>
  177. </span>
  178. </span>
  179. </label>
  180. </div>
  181. <?php endif; ?>
  182. <?php if(get_setting('voguepay') == 1): ?>
  183. <div class="col-6 col-md-4">
  184. <label class="aiz-megabox d-block mb-3">
  185. <input value="voguepay" class="online_payment" type="radio"
  186. name="payment_option" checked>
  187. <span class="d-block aiz-megabox-elem p-3">
  188. <img src="<?php echo e(static_asset('assets/img/cards/vogue.png')); ?>"
  189. class="img-fluid mb-2">
  190. <span class="d-block text-center">
  191. <span
  192. class="d-block fw-600 fs-15"><?php echo e(translate('VoguePay')); ?></span>
  193. </span>
  194. </span>
  195. </label>
  196. </div>
  197. <?php endif; ?>
  198. <?php if(get_setting('payhere') == 1): ?>
  199. <div class="col-6 col-md-4">
  200. <label class="aiz-megabox d-block mb-3">
  201. <input value="payhere" class="online_payment" type="radio"
  202. name="payment_option" checked>
  203. <span class="d-block aiz-megabox-elem p-3">
  204. <img src="<?php echo e(static_asset('assets/img/cards/payhere.png')); ?>"
  205. class="img-fluid mb-2">
  206. <span class="d-block text-center">
  207. <span
  208. class="d-block fw-600 fs-15"><?php echo e(translate('payhere')); ?></span>
  209. </span>
  210. </span>
  211. </label>
  212. </div>
  213. <?php endif; ?>
  214. <?php if(get_setting('ngenius') == 1): ?>
  215. <div class="col-6 col-md-4">
  216. <label class="aiz-megabox d-block mb-3">
  217. <input value="ngenius" class="online_payment" type="radio"
  218. name="payment_option" checked>
  219. <span class="d-block aiz-megabox-elem p-3">
  220. <img src="<?php echo e(static_asset('assets/img/cards/ngenius.png')); ?>"
  221. class="img-fluid mb-2">
  222. <span class="d-block text-center">
  223. <span
  224. class="d-block fw-600 fs-15"><?php echo e(translate('ngenius')); ?></span>
  225. </span>
  226. </span>
  227. </label>
  228. </div>
  229. <?php endif; ?>
  230. <?php if(get_setting('iyzico') == 1): ?>
  231. <div class="col-6 col-md-4">
  232. <label class="aiz-megabox d-block mb-3">
  233. <input value="iyzico" class="online_payment" type="radio"
  234. name="payment_option" checked>
  235. <span class="d-block aiz-megabox-elem p-3">
  236. <img src="<?php echo e(static_asset('assets/img/cards/iyzico.png')); ?>"
  237. class="img-fluid mb-2">
  238. <span class="d-block text-center">
  239. <span
  240. class="d-block fw-600 fs-15"><?php echo e(translate('Iyzico')); ?></span>
  241. </span>
  242. </span>
  243. </label>
  244. </div>
  245. <?php endif; ?>
  246. <?php if(get_setting('nagad') == 1): ?>
  247. <div class="col-6 col-md-4">
  248. <label class="aiz-megabox d-block mb-3">
  249. <input value="nagad" class="online_payment" type="radio"
  250. name="payment_option" checked>
  251. <span class="d-block aiz-megabox-elem p-3">
  252. <img src="<?php echo e(static_asset('assets/img/cards/nagad.png')); ?>"
  253. class="img-fluid mb-2">
  254. <span class="d-block text-center">
  255. <span
  256. class="d-block fw-600 fs-15"><?php echo e(translate('Nagad')); ?></span>
  257. </span>
  258. </span>
  259. </label>
  260. </div>
  261. <?php endif; ?>
  262. <?php if(get_setting('bkash') == 1): ?>
  263. <div class="col-6 col-md-4">
  264. <label class="aiz-megabox d-block mb-3">
  265. <input value="bkash" class="online_payment" type="radio"
  266. name="payment_option" checked>
  267. <span class="d-block aiz-megabox-elem p-3">
  268. <img src="<?php echo e(static_asset('assets/img/cards/bkash.png')); ?>"
  269. class="img-fluid mb-2">
  270. <span class="d-block text-center">
  271. <span
  272. class="d-block fw-600 fs-15"><?php echo e(translate('Bkash')); ?></span>
  273. </span>
  274. </span>
  275. </label>
  276. </div>
  277. <?php endif; ?>
  278. <?php if(get_setting('aamarpay') == 1): ?>
  279. <div class="col-6 col-md-4">
  280. <label class="aiz-megabox d-block mb-3">
  281. <input value="aamarpay" class="online_payment" type="radio"
  282. name="payment_option" checked>
  283. <span class="d-block aiz-megabox-elem p-3">
  284. <img src="<?php echo e(static_asset('assets/img/cards/aamarpay.png')); ?>"
  285. class="img-fluid mb-2">
  286. <span class="d-block text-center">
  287. <span
  288. class="d-block fw-600 fs-15"><?php echo e(translate('Aamarpay')); ?></span>
  289. </span>
  290. </span>
  291. </label>
  292. </div>
  293. <?php endif; ?>
  294. <?php if(get_setting('authorizenet') == 1): ?>
  295. <div class="col-6 col-md-4">
  296. <label class="aiz-megabox d-block mb-3">
  297. <input value="authorizenet" class="online_payment" type="radio"
  298. name="payment_option" checked>
  299. <span class="d-block aiz-megabox-elem p-3">
  300. <img src="<?php echo e(static_asset('assets/img/cards/authorizenet.png')); ?>"
  301. class="img-fluid mb-2">
  302. <span class="d-block text-center">
  303. <span
  304. class="d-block fw-600 fs-15"><?php echo e(translate('Authorize Net')); ?></span>
  305. </span>
  306. </span>
  307. </label>
  308. </div>
  309. <?php endif; ?>
  310. <?php if(get_setting('payku') == 1): ?>
  311. <div class="col-6 col-md-4">
  312. <label class="aiz-megabox d-block mb-3">
  313. <input value="payku" class="online_payment" type="radio"
  314. name="payment_option" checked>
  315. <span class="d-block aiz-megabox-elem p-3">
  316. <img src="<?php echo e(static_asset('assets/img/cards/payku.png')); ?>"
  317. class="img-fluid mb-2">
  318. <span class="d-block text-center">
  319. <span
  320. class="d-block fw-600 fs-15"><?php echo e(translate('Payku')); ?></span>
  321. </span>
  322. </span>
  323. </label>
  324. </div>
  325. <?php endif; ?>
  326. <?php if(addon_is_activated('african_pg')): ?>
  327. <?php if(get_setting('mpesa') == 1): ?>
  328. <div class="col-6 col-md-4">
  329. <label class="aiz-megabox d-block mb-3">
  330. <input value="mpesa" class="online_payment" type="radio"
  331. name="payment_option" checked>
  332. <span class="d-block aiz-megabox-elem p-3">
  333. <img src="<?php echo e(static_asset('assets/img/cards/mpesa.png')); ?>"
  334. class="img-fluid mb-2">
  335. <span class="d-block text-center">
  336. <span
  337. class="d-block fw-600 fs-15"><?php echo e(translate('mpesa')); ?></span>
  338. </span>
  339. </span>
  340. </label>
  341. </div>
  342. <?php endif; ?>
  343. <?php if(get_setting('flutterwave') == 1): ?>
  344. <div class="col-6 col-md-4">
  345. <label class="aiz-megabox d-block mb-3">
  346. <input value="flutterwave" class="online_payment" type="radio"
  347. name="payment_option" checked>
  348. <span class="d-block aiz-megabox-elem p-3">
  349. <img src="<?php echo e(static_asset('assets/img/cards/flutterwave.png')); ?>"
  350. class="img-fluid mb-2">
  351. <span class="d-block text-center">
  352. <span
  353. class="d-block fw-600 fs-15"><?php echo e(translate('flutterwave')); ?></span>
  354. </span>
  355. </span>
  356. </label>
  357. </div>
  358. <?php endif; ?>
  359. <?php if(get_setting('payfast') == 1): ?>
  360. <div class="col-6 col-md-4">
  361. <label class="aiz-megabox d-block mb-3">
  362. <input value="payfast" class="online_payment" type="radio"
  363. name="payment_option" checked>
  364. <span class="d-block aiz-megabox-elem p-3">
  365. <img src="<?php echo e(static_asset('assets/img/cards/payfast.png')); ?>"
  366. class="img-fluid mb-2">
  367. <span class="d-block text-center">
  368. <span
  369. class="d-block fw-600 fs-15"><?php echo e(translate('payfast')); ?></span>
  370. </span>
  371. </span>
  372. </label>
  373. </div>
  374. <?php endif; ?>
  375. <?php endif; ?>
  376. <?php if(addon_is_activated('paytm') && get_setting('paytm_payment') == 1): ?>
  377. <div class="col-6 col-md-4">
  378. <label class="aiz-megabox d-block mb-3">
  379. <input value="paytm" class="online_payment" type="radio"
  380. name="payment_option" checked>
  381. <span class="d-block aiz-megabox-elem p-3">
  382. <img src="<?php echo e(static_asset('assets/img/cards/paytm.jpg')); ?>"
  383. class="img-fluid mb-2">
  384. <span class="d-block text-center">
  385. <span
  386. class="d-block fw-600 fs-15"><?php echo e(translate('Paytm')); ?></span>
  387. </span>
  388. </span>
  389. </label>
  390. </div>
  391. <?php endif; ?>
  392. <?php if(addon_is_activated('paytm') && get_setting('toyyibpay_payment') == 1): ?>
  393. <div class="col-6 col-md-4">
  394. <label class="aiz-megabox d-block mb-3">
  395. <input value="toyyibpay" class="online_payment" type="radio"
  396. name="payment_option" checked>
  397. <span class="d-block aiz-megabox-elem p-3">
  398. <img src="<?php echo e(static_asset('assets/img/cards/toyyibpay.png')); ?>"
  399. class="img-fluid mb-2">
  400. <span class="d-block text-center">
  401. <span
  402. class="d-block fw-600 fs-15"><?php echo e(translate('ToyyibPay')); ?></span>
  403. </span>
  404. </span>
  405. </label>
  406. </div>
  407. <?php endif; ?>
  408. <?php if(get_setting('cash_payment') == 1): ?>
  409. <?php
  410. $digital = 0;
  411. $cod_on = 1;
  412. foreach ($carts as $cartItem) {
  413. $product = \App\Models\Product::find($cartItem['product_id']);
  414. if ($product['digital'] == 1) {
  415. $digital = 1;
  416. }
  417. if ($product['cash_on_delivery'] == 0) {
  418. $cod_on = 0;
  419. }
  420. }
  421. ?>
  422. <?php if($digital != 1 && $cod_on == 1): ?>
  423. <div class="col-6 col-md-4">
  424. <label class="aiz-megabox d-block mb-3">
  425. <input value="cash_on_delivery" class="online_payment"
  426. type="radio" name="payment_option" checked>
  427. <span class="d-block aiz-megabox-elem p-3">
  428. <img src="<?php echo e(static_asset('assets/img/cards/cod.png')); ?>"
  429. class="img-fluid mb-2">
  430. <span class="d-block text-center">
  431. <span
  432. class="d-block fw-600 fs-15"><?php echo e(translate('Cash on Delivery')); ?></span>
  433. </span>
  434. </span>
  435. </label>
  436. </div>
  437. <?php endif; ?>
  438. <?php endif; ?>
  439. <?php if(Auth::check()): ?>
  440. <?php if(addon_is_activated('offline_payment')): ?>
  441. <?php $__currentLoopData = \App\Models\ManualPaymentMethod::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $method): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  442. <div class="col-6 col-md-4">
  443. <label class="aiz-megabox d-block mb-3">
  444. <input value="<?php echo e($method->heading); ?>" type="radio"
  445. name="payment_option"
  446. onchange="toggleManualPaymentData(<?php echo e($method->id); ?>)"
  447. data-id="<?php echo e($method->id); ?>" checked>
  448. <span class="d-block aiz-megabox-elem p-3">
  449. <img src="<?php echo e(uploaded_asset($method->photo)); ?>"
  450. class="img-fluid mb-2">
  451. <span class="d-block text-center">
  452. <span
  453. class="d-block fw-600 fs-15"><?php echo e($method->heading); ?></span>
  454. </span>
  455. </span>
  456. </label>
  457. </div>
  458. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  459. <?php $__currentLoopData = \App\Models\ManualPaymentMethod::all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $method): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  460. <div id="manual_payment_info_<?php echo e($method->id); ?>"
  461. class="d-none">
  462. <?php echo $method->description ?>
  463. <?php if($method->bank_info != null): ?>
  464. <ul>
  465. <?php $__currentLoopData = json_decode($method->bank_info); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $info): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  466. <li><?php echo e(translate('Bank Name')); ?> -
  467. <?php echo e($info->bank_name); ?>,
  468. <?php echo e(translate('Account Name')); ?> -
  469. <?php echo e($info->account_name); ?>,
  470. <?php echo e(translate('Account Number')); ?> -
  471. <?php echo e($info->account_number); ?>,
  472. <?php echo e(translate('Routing Number')); ?> -
  473. <?php echo e($info->routing_number); ?></li>
  474. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  475. </ul>
  476. <?php endif; ?>
  477. </div>
  478. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  479. <?php endif; ?>
  480. <?php endif; ?>
  481. </div>
  482. </div>
  483. </div>
  484. <?php if(addon_is_activated('offline_payment')): ?>
  485. <div class="d-none mb-3 rounded border bg-white p-3 text-left">
  486. <div id="manual_payment_description">
  487. </div>
  488. </div>
  489. <?php endif; ?>
  490. <?php if(Auth::check() && get_setting('wallet_system') == 1): ?>
  491. <div class="separator mb-3">
  492. <span class="bg-white px-3">
  493. <span class="opacity-60"><?php echo e(translate('Or')); ?></span>
  494. </span>
  495. </div>
  496. <div class="py-4 text-center">
  497. <div class="h6 mb-3">
  498. <span class="opacity-80"><?php echo e(translate('Your wallet balance :')); ?></span>
  499. <span
  500. class="fw-600"><?php echo e(single_price(Auth::user()->balance)); ?></span>
  501. </div>
  502. <?php if(Auth::user()->balance < $total): ?>
  503. <button type="button" class="btn btn-secondary" disabled>
  504. <?php echo e(translate('Insufficient balance')); ?>
  505. </button>
  506. <?php else: ?>
  507. <button type="button" onclick="use_wallet()" class="btn btn-primary fw-600">
  508. <?php echo e(translate('Pay with wallet')); ?>
  509. </button>
  510. <?php endif; ?>
  511. </div>
  512. <?php endif; ?>
  513. </div>
  514. </div>
  515. <div class="pt-3">
  516. <label class="aiz-checkbox">
  517. <input type="checkbox" required id="agree_checkbox" checked>
  518. <span class="aiz-square-check"></span>
  519. <span><?php echo e(translate('I agree to the')); ?></span>
  520. </label>
  521. <a href="<?php echo e(route('terms')); ?>"><?php echo e(translate('terms and conditions')); ?></a>,
  522. <a href="<?php echo e(route('returnpolicy')); ?>"><?php echo e(translate('return policy')); ?></a> &
  523. <a href="<?php echo e(route('privacypolicy')); ?>"><?php echo e(translate('privacy policy')); ?></a>
  524. </div>
  525. <div class="row align-items-center pt-3">
  526. <div class="col-6">
  527. <a href="<?php echo e(route('home')); ?>" class="link link--style-3">
  528. <i class="las la-arrow-left"></i>
  529. <?php echo e(translate('Return to shop')); ?>
  530. </a>
  531. </div>
  532. <div class="col-6 text-right">
  533. <button type="button" onclick="submitOrder(this)"
  534. class="btn btn-primary fw-600"><?php echo e(translate('Complete Order')); ?></button>
  535. </div>
  536. </div>
  537. </form>
  538. </div>
  539. <div class="col-lg-4 mt-lg-0 mt-4" id="cart_summary">
  540. <?php echo $__env->make('frontend.partials.cart_summary', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  541. </div>
  542. </div>
  543. </div>
  544. <div class="modal fade" id="request_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
  545. aria-hidden="true">
  546. <div class="modal-dialog modal-dialog-centered" role="document">
  547. <div class="modal-content">
  548. <div class="modal-header">
  549. <h5 class="modal-title" id="exampleModalLabel"><?php echo e(translate('Transaction password')); ?></h5>
  550. <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button>
  551. </div>
  552. <form class="" action="javascript:;" method="post">
  553. <?php echo csrf_field(); ?>
  554. <div class="modal-body gry-bg px-3 pt-3">
  555. <div class="row">
  556. <div class="col-md-9">
  557. <input type="password" lang="en" class="form-control mb-3" id="tpwd" name="tpwd"
  558. placeholder="<?php echo e(translate('Transaction password')); ?>" max=6 required>
  559. </div>
  560. </div>
  561. <div class="form-group text-right">
  562. <button type="button" onclick="check_pwd()" class="btn btn-sm btn-primary"><?php echo e(translate('submit')); ?></button>
  563. </div>
  564. </div>
  565. </form>
  566. </div>
  567. </div>
  568. </div>
  569. </section>
  570. <?php $__env->stopSection(); ?>
  571. <script src="https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.min.js"></script>
  572. <?php $__env->startSection('script'); ?>
  573. <script type="text/javascript">
  574. function show_request_modal() {
  575. $('#request_modal').modal('show');
  576. }
  577. $(document).ready(function() {
  578. $(".online_payment").click(function() {
  579. $('#manual_payment_description').parent().addClass('d-none');
  580. });
  581. toggleManualPaymentData($('input[name=payment_option]:checked').data('id'));
  582. });
  583. var minimum_order_amount_check = <?php echo e(get_setting('minimum_order_amount_check') == 1 ? 1 : 0); ?>;
  584. var minimum_order_amount =
  585. <?php echo e(get_setting('minimum_order_amount_check') == 1 ? get_setting('minimum_order_amount') : 0); ?>;
  586. function use_wallet() {
  587. var tpwd = '<?php echo e($tpwd); ?>'
  588. if (tpwd == "") {
  589. location.href="/user/transaction";
  590. return;
  591. }
  592. $('#request_modal').modal('show');
  593. $('input[name=payment_option]').val('wallet');
  594. // if ($('#agree_checkbox').is(":checked")) {
  595. // ;
  596. // if (minimum_order_amount_check && $('#sub_total').val() < minimum_order_amount) {
  597. // AIZ.plugins.notify('danger',
  598. // '<?php echo e(translate('You order amount is less then the minimum order amount')); ?>');
  599. // } else {
  600. // $('#checkout-form').submit();
  601. // }
  602. // } else {
  603. // AIZ.plugins.notify('danger', '<?php echo e(translate('You need to agree with our policies')); ?>');
  604. // }
  605. }
  606. function submitOrder(el) {
  607. $(el).prop('disabled', true);
  608. var tpwd = '<?php echo e($tpwd); ?>'
  609. if (tpwd == "") {
  610. location.href="/user/transaction";
  611. return;
  612. }
  613. $('#request_modal').modal('show');
  614. }
  615. function check_pwd()
  616. {
  617. var tpwd = '<?php echo e($tpwd); ?>'
  618. var pwd = $("#tpwd").val();
  619. if (md5(pwd) != tpwd) {
  620. AIZ.plugins.notify('danger',
  621. '<?php echo e(translate('password error')); ?>');
  622. return;
  623. }
  624. if ($('#agree_checkbox').is(":checked")) {
  625. if (minimum_order_amount_check && $('#sub_total').val() < minimum_order_amount) {
  626. AIZ.plugins.notify('danger',
  627. '<?php echo e(translate('You order amount is less then the minimum order amount')); ?>');
  628. } else {
  629. $('#checkout-form').submit();
  630. }
  631. } else {
  632. AIZ.plugins.notify('danger', '<?php echo e(translate('You need to agree with our policies')); ?>');
  633. $(el).prop('disabled', false);
  634. }
  635. }
  636. function toggleManualPaymentData(id) {
  637. if (typeof id != 'undefined') {
  638. $('#manual_payment_description').parent().removeClass('d-none');
  639. $('#manual_payment_description').html($('#manual_payment_info_' + id).html());
  640. }
  641. }
  642. $(document).on("click", "#coupon-apply", function() {
  643. var data = new FormData($('#apply-coupon-form')[0]);
  644. $.ajax({
  645. headers: {
  646. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  647. },
  648. method: "POST",
  649. url: "<?php echo e(route('checkout.apply_coupon_code')); ?>",
  650. data: data,
  651. cache: false,
  652. contentType: false,
  653. processData: false,
  654. success: function(data, textStatus, jqXHR) {
  655. AIZ.plugins.notify(data.response_message.response, data.response_message.message);
  656. $("#cart_summary").html(data.html);
  657. }
  658. })
  659. });
  660. $(document).on("click", "#coupon-remove", function() {
  661. var data = new FormData($('#remove-coupon-form')[0]);
  662. $.ajax({
  663. headers: {
  664. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  665. },
  666. method: "POST",
  667. url: "<?php echo e(route('checkout.remove_coupon_code')); ?>",
  668. data: data,
  669. cache: false,
  670. contentType: false,
  671. processData: false,
  672. success: function(data, textStatus, jqXHR) {
  673. $("#cart_summary").html(data);
  674. }
  675. })
  676. })
  677. </script>
  678. <?php $__env->stopSection(); ?>
  679. <?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/payment_select.blade.php ENDPATH**/ ?>