c7969deeb5eb4fd3b3167161dd76af3f41cf8b1d.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. <?php $__env->startSection('panel_content'); ?>
  2. <div class="aiz-titlebar mt-2 mb-4">
  3. <div class="row align-items-center">
  4. <div class="col-md-6">
  5. <h1 class="h3"><?php echo e(translate('My Wallet')); ?></h1>
  6. </div>
  7. </div>
  8. </div>
  9. <div class="row gutters-10">
  10. <div class="col-md-3 mx-auto mb-3" >
  11. <div class="bg-grad-1 text-white rounded-lg overflow-hidden">
  12. <span class="size-30px rounded-circle mx-auto bg-soft-primary d-flex align-items-center justify-content-center mt-3">
  13. <i class="las la-dollar-sign la-2x text-white"></i>
  14. </span>
  15. <div class="px-3 pt-3 pb-3">
  16. <div class="h4 fw-700 text-center"><?php echo e(single_price(Auth::user()->balance)); ?></div>
  17. <div class="opacity-50 text-center"><?php echo e(translate('Wallet Balance')); ?></div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="col-md-3 mx-auto mb-3" >
  22. <div class="p-3 rounded mb-3 c-pointer text-center bg-white shadow-sm hov-shadow-lg has-transition" onclick="show_wallet_modal()">
  23. <span class="size-60px rounded-circle mx-auto bg-secondary d-flex align-items-center justify-content-center mb-3">
  24. <i class="las la-plus la-3x text-white"></i>
  25. </span>
  26. <div class="fs-18 text-primary"><?php echo e(translate('Recharge Wallet')); ?></div>
  27. </div>
  28. </div>
  29. <?php if(addon_is_activated('offline_payment')): ?>
  30. <div class="col-md-3 mx-auto mb-3" >
  31. <div class="p-3 rounded mb-3 c-pointer text-center bg-white shadow-sm hov-shadow-lg has-transition" onclick="show_make_wallet_recharge_modal()">
  32. <span class="size-60px rounded-circle mx-auto bg-secondary d-flex align-items-center justify-content-center mb-3">
  33. <i class="las la-plus la-3x text-white"></i>
  34. </span>
  35. <div class="fs-18 text-primary"><?php echo e(translate('Offline Recharge Wallet')); ?></div>
  36. </div>
  37. </div>
  38. <?php endif; ?>
  39. <div class="col-md-3 mb-3 mx-auto">
  40. <div
  41. class="bg-grad-2 p-3 rounded mb-3 c-pointer text-center bg-white shadow-sm hov-shadow-lg has-transition"
  42. onclick="show_request_modal()">
  43. <span
  44. class="size-60px rounded-circle mx-auto bg-secondary d-flex align-items-center justify-content-center mb-3">
  45. <i class="las la-plus la-3x text-white"></i>
  46. </span>
  47. <div class="fs-18 text-white"><?php echo e(translate('Send Withdraw Request')); ?></div>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="card">
  52. <div class="card-header">
  53. <h5 class="mb-0 h6"><?php echo e(translate('Wallet recharge history')); ?></h5>
  54. </div>
  55. <div class="card-body">
  56. <table class="table aiz-table mb-0">
  57. <thead>
  58. <tr>
  59. <th>#</th>
  60. <th data-breakpoints="lg"><?php echo e(translate('Date')); ?></th>
  61. <th><?php echo e(translate('Amount')); ?></th>
  62. <th data-breakpoints="lg"><?php echo e(translate('Payment Method')); ?></th>
  63. <th class="text-right"><?php echo e(translate('Approval')); ?></th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. <?php $__currentLoopData = $wallets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $wallet): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  68. <tr>
  69. <td><?php echo e($key+1); ?></td>
  70. <td><?php echo e(date('d-m-Y', strtotime($wallet->created_at))); ?></td>
  71. <td><?php echo e(single_price($wallet->amount)); ?></td>
  72. <td><?php echo e(ucfirst(str_replace('_', ' ', $wallet ->payment_method))); ?></td>
  73. <td class="text-right">
  74. <?php if($wallet->offline_payment): ?>
  75. <?php if($wallet->approval): ?>
  76. <span class="badge badge-inline badge-success"><?php echo e(translate('Approved')); ?></span>
  77. <?php else: ?>
  78. <span class="badge badge-inline badge-info"><?php echo e(translate('Pending')); ?></span>
  79. <?php endif; ?>
  80. <?php else: ?>
  81. N/A
  82. <?php endif; ?>
  83. </td>
  84. </tr>
  85. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  86. </tbody>
  87. </table>
  88. <div class="aiz-pagination">
  89. <?php echo e($wallets->links()); ?>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="card">
  94. <div class="card-header">
  95. <h5 class="mb-0 h6"><?php echo e(translate('Withdraw Request history')); ?></h5>
  96. </div>
  97. <div class="card-body">
  98. <table class="table aiz-table mb-0">
  99. <thead>
  100. <tr>
  101. <th>#</th>
  102. <th><?php echo e(translate('Date')); ?></th>
  103. <th><?php echo e(translate('Amount')); ?></th>
  104. <th><?php echo e(translate('Type')); ?></th>
  105. <th data-breakpoints="lg"><?php echo e(translate('Status')); ?></th>
  106. <th><?php echo e(translate('Withdraw Type')); ?></th>
  107. <th><?php echo e(translate('Remarks')); ?></th>
  108. <th data-breakpoints="lg" width="40%"><?php echo e(translate('Message')); ?></th>
  109. </tr>
  110. </thead>
  111. <tbody>
  112. <?php $__currentLoopData = $seller_withdraw_requests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $seller_withdraw_request): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  113. <tr>
  114. <td><?php echo e($key+1); ?></td>
  115. <td><?php echo e(date('d-m-Y', strtotime($seller_withdraw_request->created_at))); ?></td>
  116. <td><?php echo e(single_price($seller_withdraw_request->amount)); ?></td>
  117. <td>
  118. <?php if( $seller_withdraw_request->type == 1): ?>
  119. <?php echo e(translate('User Balance')); ?>
  120. <?php else: ?>
  121. <?php echo e(translate('Guarantee')); ?>
  122. <?php endif; ?>
  123. </td>
  124. <td>
  125. <?php if($seller_withdraw_request->status == 1): ?>
  126. <span class=" badge badge-inline badge-success"><?php echo e(translate('Paid')); ?></span>
  127. <?php elseif($seller_withdraw_request->status == 2): ?>
  128. <span class=" badge badge-inline badge-danger"><?php echo e(translate('Refuse')); ?> </span>
  129. <?php else: ?>
  130. <span class=" badge badge-inline badge-info"><?php echo e(translate('Pending')); ?></span>
  131. <?php endif; ?>
  132. </td>
  133. <td>
  134. <?php if( $seller_withdraw_request->w_type == 1): ?>
  135. <?php echo e(translate('Cash')); ?>
  136. <?php elseif( $seller_withdraw_request->w_type == 2): ?>
  137. <?php echo e(translate('Bank')); ?>
  138. <?php elseif( $seller_withdraw_request->w_type == 3): ?>
  139. <?php echo e(translate('USDT')); ?>
  140. <?php endif; ?>
  141. </td>
  142. <td>
  143. <?php echo e($seller_withdraw_request->remarks); ?>
  144. </td>
  145. <td>
  146. <?php echo e($seller_withdraw_request->message); ?>
  147. </td>
  148. </tr>
  149. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  150. </tbody>
  151. </table>
  152. <div class="aiz-pagination">
  153. <?php echo e($seller_withdraw_requests->links()); ?>
  154. </div>
  155. </div>
  156. </div>
  157. <?php $__env->stopSection(); ?>
  158. <?php $__env->startSection('modal'); ?>
  159. <div class="modal fade" id="wallet_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  160. <div class="modal-dialog modal-dialog-centered" role="document">
  161. <div class="modal-content">
  162. <div class="modal-header">
  163. <h5 class="modal-title" id="exampleModalLabel"><?php echo e(translate('Recharge Wallet')); ?></h5>
  164. <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button>
  165. </div>
  166. <form class="" action="<?php echo e(route('wallet.recharge')); ?>" method="post">
  167. <?php echo csrf_field(); ?>
  168. <div class="modal-body gry-bg px-3 pt-3">
  169. <div class="row">
  170. <div class="col-md-4">
  171. <label><?php echo e(translate('Amount')); ?> <span class="text-danger">*</span></label>
  172. </div>
  173. <div class="col-md-8">
  174. <input type="number" lang="en" class="form-control mb-3" name="amount" placeholder="<?php echo e(translate('Amount')); ?>" required>
  175. </div>
  176. </div>
  177. <!--<div class="row">-->
  178. <!-- <div class="col-md-4">-->
  179. <!-- <label><?php echo e(translate('Payment Method')); ?> <span class="text-danger">*</span></label>-->
  180. <!-- </div>-->
  181. <!-- <div class="col-md-8">-->
  182. <!-- <div class="mb-3">-->
  183. <!-- <select class="form-control selectpicker" data-minimum-results-for-search="Infinity" name="payment_option" data-live-search="true">-->
  184. <!-- <?php if(get_setting('paypal_payment') == 1): ?>-->
  185. <!-- <option value="paypal"><?php echo e(translate('Paypal')); ?></option>-->
  186. <!-- <?php endif; ?>-->
  187. <!-- <?php if(get_setting('stripe_payment') == 1): ?>-->
  188. <!-- <option value="stripe"><?php echo e(translate('Stripe')); ?></option>-->
  189. <!-- <?php endif; ?>-->
  190. <!-- <?php if(get_setting('mercadopago_payment') == 1): ?>-->
  191. <!-- <option value="mercadopago"><?php echo e(translate('Mercadopago')); ?></option>-->
  192. <!-- <?php endif; ?>-->
  193. <!-- <?php if(get_setting('toyyibpay_payment') == 1): ?>-->
  194. <!-- <option value="toyyibpay"><?php echo e(translate('ToyyibPay')); ?></option>-->
  195. <!-- <?php endif; ?>-->
  196. <!-- <?php if(get_setting('sslcommerz_payment') == 1): ?>-->
  197. <!-- <option value="sslcommerz"><?php echo e(translate('SSLCommerz')); ?></option>-->
  198. <!-- <?php endif; ?>-->
  199. <!-- <?php if(get_setting('instamojo_payment') == 1): ?>-->
  200. <!-- <option value="instamojo"><?php echo e(translate('Instamojo')); ?></option>-->
  201. <!-- <?php endif; ?>-->
  202. <!-- <?php if(get_setting('paystack') == 1): ?>-->
  203. <!-- <option value="paystack"><?php echo e(translate('Paystack')); ?></option>-->
  204. <!-- <?php endif; ?>-->
  205. <!-- <?php if(get_setting('voguepay') == 1): ?>-->
  206. <!-- <option value="voguepay"><?php echo e(translate('VoguePay')); ?></option>-->
  207. <!-- <?php endif; ?>-->
  208. <!-- <?php if(get_setting('payhere') == 1): ?>-->
  209. <!-- <option value="payhere"><?php echo e(translate('Payhere')); ?></option>-->
  210. <!-- <?php endif; ?>-->
  211. <!-- <?php if(get_setting('ngenius') == 1): ?>-->
  212. <!-- <option value="ngenius"><?php echo e(translate('Ngenius')); ?></option>-->
  213. <!-- <?php endif; ?>-->
  214. <!-- <?php if(get_setting('razorpay') == 1): ?>-->
  215. <!-- <option value="razorpay"><?php echo e(translate('Razorpay')); ?></option>-->
  216. <!-- <?php endif; ?>-->
  217. <!-- <?php if(get_setting('iyzico') == 1): ?>-->
  218. <!-- <option value="iyzico"><?php echo e(translate('Iyzico')); ?></option>-->
  219. <!-- <?php endif; ?>-->
  220. <!-- <?php if(get_setting('bkash') == 1): ?>-->
  221. <!-- <option value="bkash"><?php echo e(translate('Bkash')); ?></option>-->
  222. <!-- <?php endif; ?>-->
  223. <!-- <?php if(get_setting('nagad') == 1): ?>-->
  224. <!-- <option value="nagad"><?php echo e(translate('Nagad')); ?></option>-->
  225. <!-- <?php endif; ?>-->
  226. <!-- <?php if(get_setting('payku') == 1): ?>-->
  227. <!-- <option value="payku"><?php echo e(translate('Payku')); ?></option>-->
  228. <!-- <?php endif; ?>-->
  229. <!-- <?php if(addon_is_activated('african_pg')): ?>-->
  230. <!-- <?php if(get_setting('mpesa') == 1): ?>-->
  231. <!-- <option value="mpesa"><?php echo e(translate('Mpesa')); ?></option>-->
  232. <!-- <?php endif; ?>-->
  233. <!-- <?php if(get_setting('flutterwave') == 1): ?>-->
  234. <!-- <option value="flutterwave"><?php echo e(translate('Flutterwave')); ?></option>-->
  235. <!-- <?php endif; ?>-->
  236. <!-- <?php if(get_setting('payfast') == 1): ?>-->
  237. <!-- <option value="payfast"><?php echo e(translate('PayFast')); ?></option>-->
  238. <!-- <?php endif; ?>-->
  239. <!-- <?php endif; ?>-->
  240. <!-- <?php if(addon_is_activated('paytm') && get_setting('paytm_payment')): ?>-->
  241. <!-- <option value="paytm"><?php echo e(translate('Paytm')); ?></option>-->
  242. <!-- <?php endif; ?>-->
  243. <!-- <?php if(get_setting('authorizenet') == 1): ?>-->
  244. <!-- <option value="authorizenet"><?php echo e(translate('Authorize Net')); ?></option>-->
  245. <!-- <?php endif; ?>-->
  246. <!-- </select>-->
  247. <!-- </div>-->
  248. <!-- </div>-->
  249. <!--</div>-->
  250. <div class="form-group text-right">
  251. <button type="submit" class="btn btn-sm btn-primary transition-3d-hover mr-1"><?php echo e(translate('Confirm')); ?></button>
  252. </div>
  253. </div>
  254. </form>
  255. </div>
  256. </div>
  257. </div>
  258. <!-- offline payment Modal -->
  259. <div class="modal fade" id="offline_wallet_recharge_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  260. <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  261. <div class="modal-content">
  262. <div class="modal-header">
  263. <h5 class="modal-title" id="exampleModalLabel"><?php echo e(translate('Offline Recharge Wallet')); ?></h5>
  264. <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button>
  265. </div>
  266. <div id="offline_wallet_recharge_modal_body"></div>
  267. </div>
  268. </div>
  269. </div>
  270. <?php
  271. $balance = \App\Models\User::where(['id'=>Auth::user()->id])->first()['balance'];
  272. ?>
  273. <div class="modal fade" id="request_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
  274. aria-hidden="true">
  275. <div class="modal-dialog modal-dialog-centered" role="document">
  276. <div class="modal-content">
  277. <div class="modal-header">
  278. <h5 class="modal-title" id="exampleModalLabel"><?php echo e(translate('Send A Withdraw Request')); ?></h5>
  279. <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button>
  280. </div>
  281. <?php if($balance > 5): ?>
  282. <form class="" action="<?php echo e(route('wallet.do_money_withdraw_request')); ?>" method="post">
  283. <?php echo csrf_field(); ?>
  284. <div class="modal-body gry-bg px-3 pt-3">
  285. <div class="row">
  286. <div class="col">
  287. <div class="alert alert-success" role="alert">
  288. <h6><?php echo e(translate('Your wallet balance :')); ?> $<?php echo e($balance); ?></h6>
  289. </div>
  290. </div>
  291. </div>
  292. <div class="row">
  293. <div class="col-md-3">
  294. <label><?php echo e(translate('Amount')); ?> <span class="text-danger">*</span></label>
  295. </div>
  296. <div class="col-md-9">
  297. <input type="number" lang="en" class="form-control mb-3" name="amount"
  298. placeholder="<?php echo e(translate('Amount')); ?>" required>
  299. </div>
  300. </div>
  301. <div class="row" style="margin-bottom:5px; display:none;">
  302. <div class="col-md-3">
  303. <label><?php echo e(translate('Opera Type')); ?></label>
  304. </div>
  305. <div class="col-md-9">
  306. <select name="type" class="form-control">
  307. <option value="1"><?php echo e(translate('User Balance')); ?></option>
  308. </select>
  309. </div>
  310. </div>
  311. <div class="row" style="margin-bottom:5px;">
  312. <div class="col-md-3">
  313. <label><?php echo e(translate('Withdraw Type')); ?></label>
  314. </div>
  315. <div class="col-md-9">
  316. <select name="w_type" class="form-control" id="p">
  317. <option value="1"><?php echo e(translate('Cash')); ?></option>
  318. <option value="2"><?php echo e(translate('Bank')); ?></option>
  319. <option value="3"><?php echo e(translate('USDT')); ?></option>
  320. </select>
  321. </div>
  322. </div>
  323. <div class="row">
  324. <div class="col-md-3">
  325. <label><?php echo e(translate('Message')); ?></label>
  326. </div>
  327. <div class="col-md-9">
  328. <textarea name="message" rows="8" class="form-control mb-3"></textarea>
  329. </div>
  330. </div>
  331. <div class="form-group text-right">
  332. <button type="submit" class="btn btn-sm btn-primary"><?php echo e(translate('Send')); ?></button>
  333. </div>
  334. </div>
  335. </form>
  336. <?php else: ?>
  337. <div class="modal-body gry-bg px-3 pt-3">
  338. <div class="p-5 heading-3">
  339. <?php echo e(translate('You do not have enough balance to send withdraw request')); ?>
  340. </div>
  341. </div>
  342. <?php endif; ?>
  343. </div>
  344. </div>
  345. </div>
  346. <?php $__env->stopSection(); ?>
  347. <?php $__env->startSection('script'); ?>
  348. <script type="text/javascript">
  349. function show_request_modal() {
  350. $('#request_modal').modal('show');
  351. }
  352. function show_wallet_modal(){
  353. $('#wallet_modal').modal('show');
  354. }
  355. function show_make_wallet_recharge_modal(){
  356. $.post('<?php echo e(route('offline_wallet_recharge_modal')); ?>', {_token:'<?php echo e(csrf_token()); ?>'}, function(data){
  357. $('#offline_wallet_recharge_modal_body').html(data);
  358. $('#offline_wallet_recharge_modal').modal('show');
  359. });
  360. }
  361. $(function(){
  362. <?php
  363. $user = \App\Models\User::find(Auth::user()->id);
  364. ?>
  365. $("#p").change(function(){
  366. var usdt_status = <?php echo e($user->usdt_payment_status); ?>;
  367. var bank_payment_status = <?php echo e($user->bank_payment_status); ?>;
  368. var cash_on_delivery_status = <?php echo e($user->cash_on_delivery_status); ?>;
  369. var type = $(this).val();
  370. if (type == 3 && usdt_status == 0) {
  371. window.location.href = "/profile"
  372. $(".btn").attr("disabled")
  373. }
  374. if (type == 2 && bank_payment_status == 0) {
  375. window.location.href = "/profile#bank"
  376. $(".btn").attr("disabled")
  377. }
  378. if (type == 1 && cash_on_delivery_status == 0) {
  379. window.location.href = "/profile#cash"
  380. $(".btn").attr("disabled")
  381. }
  382. })
  383. })
  384. </script>
  385. <?php $__env->stopSection(); ?>
  386. <?php echo $__env->make('frontend.layouts.user_panel', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/user/wallet/index.blade.php ENDPATH**/ ?>