8f68556f96aec57f149fb0a60df7b35a923bd253.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  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('Money Withdraw')); ?></h1>-->
  6. <!-- </div>-->
  7. <!-- </div>-->
  8. <!--</div>-->
  9. <div class="row gutters-0">
  10. <div class="col-md-2 mb-3 mx-auto">
  11. <div class="bg-grad-3 text-white rounded-lg overflow-hidden">
  12. <span
  13. class="size-30px rounded-circle mx-auto bg-soft-primary d-flex align-items-center justify-content-center mt-3">
  14. <i class="las la-dollar-sign la-2x text-black-50"></i>
  15. </span>
  16. <div class="px-3 pt-3 pb-3">
  17. <div class="h4 fw-700 text-center"><?php echo e(single_price(Auth::user()->shop->admin_to_pay)); ?></div>
  18. <div class="opacity-50 text-center"><?php echo e(translate('Pending Balance')); ?></div>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="col-md-2 mb-3 mx-auto">
  23. <div class="bg-grad-1 text-white rounded-lg overflow-hidden">
  24. <span
  25. class="size-30px rounded-circle mx-auto bg-soft-primary d-flex align-items-center justify-content-center mt-3">
  26. <i class="las la-dollar-sign la-2x text-black-50"></i>
  27. </span>
  28. <div class="px-3 pt-3 pb-3">
  29. <div class="h4 fw-700 text-center"><?php echo e(single_price(Auth::user()->balance)); ?></div>
  30. <div class="opacity-50 text-center"><?php echo e(translate('Wallet Money')); ?></div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="col-md-2 mb-3 mx-auto">
  35. <div
  36. class="bg-grad-2 p-3 rounded mb-3 c-pointer text-center bg-white shadow-sm hov-shadow-lg has-transition"
  37. onclick="show_request_modal()">
  38. <span
  39. class="size-60px rounded-circle mx-auto bg-secondary d-flex align-items-center justify-content-center mb-3">
  40. <i class="las la-plus la-3x text-white"></i>
  41. </span>
  42. <div class="fs-18 text-white"><?php echo e(translate('Send Withdraw Request')); ?></div>
  43. </div>
  44. </div>
  45. <?php if(addon_is_activated('offline_payment')): ?>
  46. <div class="col-md-2 mb-3 mr-auto">
  47. <div
  48. class="bg-grad-4 p-3 rounded mb-3 c-pointer text-center bg-white shadow-sm hov-shadow-lg has-transition"
  49. onclick="show_make_wallet_recharge_modal(1)">
  50. <span
  51. class="size-60px rounded-circle mx-auto bg-secondary d-flex align-items-center justify-content-center mb-3">
  52. <i class="las la-plus la-3x text-white"></i>
  53. </span>
  54. <div class="fs-18 text-white"><?php echo e(translate('Offline Recharge Wallet')); ?></div>
  55. </div>
  56. </div>
  57. <div class="col-md-2 mb-3 mr-auto">
  58. <div
  59. class="bg-grad-4 p-3 rounded mb-3 c-pointer text-center bg-white shadow-sm hov-shadow-lg has-transition"
  60. onclick="show_make_wallet_recharge_modal(2)">
  61. <span
  62. class="size-60px rounded-circle mx-auto bg-secondary d-flex align-items-center justify-content-center mb-3">
  63. <i class="las la-plus la-3x text-white"></i>
  64. </span>
  65. <div class="fs-18 text-white"><?php echo e(translate('Guarantee Recharge')); ?></div>
  66. </div>
  67. </div>
  68. <?php endif; ?>
  69. </div>
  70. <div class="card">
  71. <div class="card-header">
  72. <h5 class="mb-0 h6"><?php echo e(translate('Withdraw Request history')); ?></h5>
  73. </div>
  74. <div class="card-body">
  75. <table class="table aiz-table mb-0">
  76. <thead>
  77. <tr>
  78. <th>#</th>
  79. <th><?php echo e(translate('Date')); ?></th>
  80. <th><?php echo e(translate('Amount')); ?></th>
  81. <th><?php echo e(translate('Type')); ?></th>
  82. <th data-breakpoints="lg"><?php echo e(translate('Status')); ?></th>
  83. <th><?php echo e(translate('Withdraw Type')); ?></th>
  84. <th><?php echo e(translate('Remarks')); ?></th>
  85. <th data-breakpoints="lg" width="40%"><?php echo e(translate('Message')); ?></th>
  86. </tr>
  87. </thead>
  88. <tbody>
  89. <?php $__currentLoopData = $seller_withdraw_requests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $seller_withdraw_request): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  90. <tr>
  91. <td><?php echo e($key+1); ?></td>
  92. <td><?php echo e(date('d-m-Y', strtotime($seller_withdraw_request->created_at))); ?></td>
  93. <td><?php echo e(single_price($seller_withdraw_request->amount)); ?></td>
  94. <td>
  95. <?php if( $seller_withdraw_request->type == 1): ?>
  96. <?php echo e(translate('User Balance')); ?>
  97. <?php else: ?>
  98. <?php echo e(translate('Guarantee')); ?>
  99. <?php endif; ?>
  100. </td>
  101. <td>
  102. <?php if($seller_withdraw_request->status == 1): ?>
  103. <span class=" badge badge-inline badge-success"><?php echo e(translate('Paid')); ?></span>
  104. <?php elseif($seller_withdraw_request->status == 2): ?>
  105. <span class=" badge badge-inline badge-danger"><?php echo e(translate('Refuse')); ?> </span>
  106. <?php else: ?>
  107. <span class=" badge badge-inline badge-info"><?php echo e(translate('Pending')); ?></span>
  108. <?php endif; ?>
  109. </td>
  110. <td>
  111. <?php if( $seller_withdraw_request->w_type == 1): ?>
  112. <?php echo e(translate('Cash')); ?>
  113. <?php elseif( $seller_withdraw_request->w_type == 2): ?>
  114. <?php echo e(translate('Bank')); ?>
  115. <?php elseif( $seller_withdraw_request->w_type == 3): ?>
  116. <?php echo e(translate('USDT')); ?>
  117. <?php endif; ?>
  118. </td>
  119. <td>
  120. <?php echo e($seller_withdraw_request->remarks); ?>
  121. </td>
  122. <td>
  123. <?php echo e($seller_withdraw_request->message); ?>
  124. </td>
  125. </tr>
  126. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  127. </tbody>
  128. </table>
  129. <div class="aiz-pagination">
  130. <?php echo e($seller_withdraw_requests->links()); ?>
  131. </div>
  132. </div>
  133. </div>
  134. <!-- 待解冻订单 -->
  135. <div class="card">
  136. <div class="card-header">
  137. <h5 class="mb-0 h6"><?php echo e(translate('Froze Order')); ?></h5>
  138. </div>
  139. <div class="card-body">
  140. <table class="table aiz-table mb-0">
  141. <thead>
  142. <tr>
  143. <th>#</th>
  144. <th><?php echo e(translate('Order Code')); ?></th>
  145. <th data-breakpoints="md"><?php echo e(translate('Amount')); ?></th>
  146. <th data-breakpoints="md"><?php echo e(translate('Profit')); ?></th>
  147. <th data-breakpoints="md"><?php echo e(translate('Payment Status')); ?></th>
  148. <th data-breakpoints="md"><?php echo e(translate('Pick Up Status')); ?></th>
  149. <th><?php echo e(translate('Date')); ?></th>
  150. <th><?php echo e(translate('Unfreeze Countdown')); ?></th>
  151. </tr>
  152. </thead>
  153. <tbody>
  154. <?php $__currentLoopData = $freezeOrders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  155. <tr>
  156. <td><?php echo e($key+1); ?></td>
  157. <td><?php echo e($order->code); ?></td>
  158. <td><?php echo e(single_price($order->grand_total)); ?></td>
  159. <td><?php echo e(single_price($order->grand_total - $order->product_storehouse_total)); ?></td>
  160. <td>
  161. <?php if($order->payment_status == 'paid'): ?>
  162. <span class="badge badge-inline badge-success"><?php echo e(translate('Paid')); ?></span>
  163. <?php else: ?>
  164. <span class="badge badge-inline badge-danger"><?php echo e(translate('Unpaid')); ?></span>
  165. <?php endif; ?>
  166. </td>
  167. <td>
  168. <?php if($order->product_storehouse_status): ?>
  169. <span class="badge badge-inline badge-success"><?php echo e(translate('Picked Up')); ?></span>
  170. <?php else: ?>
  171. <span class="badge badge-inline badge-danger"><?php echo e(translate('Unpicked Up')); ?></span>
  172. <?php endif; ?>
  173. </td>
  174. <td><?php echo e(date('d-m-Y', strtotime($order->created_at))); ?></td>
  175. <td>
  176. <?php if($order->freeze_expired_at): ?>
  177. <?php echo e(round(($order->freeze_expired_at - now()->timestamp) / 86400)); ?> <?php echo e(translate('Days')); ?>
  178. <?php else: ?>
  179. <?php echo e(translate('Unpicked Up')); ?>
  180. <?php endif; ?>
  181. </td>
  182. </tr>
  183. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  184. </tbody>
  185. </table>
  186. <div class="aiz-pagination">
  187. <?php echo e($freezeOrders->links()); ?>
  188. </div>
  189. </div>
  190. </div>
  191. <!-- 充值记录 -->
  192. <div class="card">
  193. <div class="card-header">
  194. <h5 class="mb-0 h6"><?php echo e(translate('Wallet Recharge History')); ?></h5>
  195. </div>
  196. <div class="card-body">
  197. <table class="table aiz-table mb-0">
  198. <thead>
  199. <tr>
  200. <th>#</th>
  201. <th data-breakpoints="md"><?php echo e(translate('Amount')); ?></th>
  202. <th data-breakpoints="md"><?php echo e(translate('Payment method')); ?></th>
  203. <th><?php echo e(translate('Payment Details')); ?></th>
  204. <th data-breakpoints="md"><?php echo e(translate('Approval')); ?></th>
  205. <th data-breakpoints="md"><?php echo e(translate('Offline payment')); ?></th>
  206. <th data-breakpoints="md"><?php echo e(translate('Type')); ?></th>
  207. <th data-breakpoints="md"><?php echo e(translate('Receipt')); ?></th>
  208. <th><?php echo e(translate('Date')); ?></th>
  209. </tr>
  210. </thead>
  211. <tbody>
  212. <?php $__currentLoopData = $rechargeList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  213. <tr>
  214. <td><?php echo e($key+1); ?></td>
  215. <td><?php echo e(single_price($list->amount)); ?></td>
  216. <td><?php echo e($list->payment_method); ?></td>
  217. <td><?php echo e($list->payment_details); ?></td>
  218. <td>
  219. <?php if($list->approval == 1): ?>
  220. <span class="badge badge-inline badge-success"><?php echo e(translate('yes')); ?></span>
  221. <?php else: ?>
  222. <span class="badge badge-inline badge-danger"><?php echo e(translate('No')); ?></span>
  223. <?php endif; ?>
  224. </td>
  225. <td>
  226. <?php if($list->offline_payment == 1): ?>
  227. <span class="badge badge-inline badge-success"><?php echo e(translate('yes')); ?></span>
  228. <?php else: ?>
  229. <span class="badge badge-inline badge-danger"><?php echo e(translate('No')); ?></span>
  230. <?php endif; ?>
  231. </td>
  232. <td>
  233. <?php if( $list->type == 1): ?>
  234. <?php echo e(translate('User Balance')); ?>
  235. <?php else: ?>
  236. <?php echo e(translate('Guarantee')); ?>
  237. <?php endif; ?>
  238. </td>
  239. <td><?php echo e($list->reciept); ?></td>
  240. <td><?php echo e(date('d-m-Y', strtotime($list->created_at))); ?></td>
  241. </tr>
  242. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  243. </tbody>
  244. </table>
  245. <div class="aiz-pagination">
  246. <?php echo e($rechargeList->links()); ?>
  247. </div>
  248. </div>
  249. </div>
  250. <!-- 充值记录 -->
  251. <div class="card">
  252. <div class="card-header">
  253. <h5 class="mb-0 h6"><?php echo e(translate('Payment History')); ?></h5>
  254. </div>
  255. <div class="card-body">
  256. <table class="table aiz-table mb-0">
  257. <thead>
  258. <tr>
  259. <th>#</th>
  260. <th data-breakpoints="md"><?php echo e(translate('Amount')); ?></th>
  261. <th><?php echo e(translate('Payment Details')); ?></th>
  262. <th data-breakpoints="md"><?php echo e(translate('Payment method')); ?></th>
  263. <th><?php echo e(translate('Date')); ?></th>
  264. </tr>
  265. </thead>
  266. <tbody>
  267. <?php $__currentLoopData = $paymentList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  268. <tr>
  269. <td><?php echo e($key+1); ?></td>
  270. <td><?php echo e(single_price($list->amount)); ?></td>
  271. <td><?php echo e($list->payment_details); ?></td>
  272. <td>
  273. <?php echo e(translate($list->payment_method)); ?>
  274. </td>
  275. <td><?php echo e(date('d-m-Y', strtotime($list->created_at))); ?></td>
  276. </tr>
  277. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  278. </tbody>
  279. </table>
  280. <div class="aiz-pagination">
  281. <?php echo e($paymentList->links()); ?>
  282. </div>
  283. </div>
  284. </div>
  285. <?php $__env->stopSection(); ?>
  286. <?php $__env->startSection('modal'); ?>
  287. <!-- offline payment Modal -->
  288. <div class="modal fade" id="offline_wallet_recharge_modal" tabindex="-1" role="dialog"
  289. aria-labelledby="exampleModalLabel" aria-hidden="true">
  290. <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  291. <div class="modal-content">
  292. <div class="modal-header">
  293. <h5 class="modal-title" id="exampleModalLabel">
  294. <?php echo e(translate('Offline Recharge Wallet')); ?></h5>
  295. <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button>
  296. </div>
  297. <div id="offline_wallet_recharge_modal_body"></div>
  298. </div>
  299. </div>
  300. </div>
  301. <div class="modal fade" id="request_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
  302. aria-hidden="true">
  303. <div class="modal-dialog modal-dialog-centered" role="document">
  304. <div class="modal-content">
  305. <div class="modal-header">
  306. <h5 class="modal-title" id="exampleModalLabel"><?php echo e(translate('Send A Withdraw Request')); ?></h5>
  307. <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button>
  308. </div>
  309. <?php if($balance > 5): ?>
  310. <form class="" action="<?php echo e(route('seller.money_withdraw_request.store')); ?>" method="post">
  311. <?php echo csrf_field(); ?>
  312. <div class="modal-body gry-bg px-3 pt-3">
  313. <div class="row">
  314. <div class="col">
  315. <div class="alert alert-success" role="alert">
  316. <h6><?php echo e(translate('Your wallet balance :')); ?> $<?php echo e($balance); ?></h6>
  317. </div>
  318. <div class="alert alert-success" role="alert">
  319. <h6><?php echo e(translate('Your guarantee balance :')); ?>
  320. $<?php echo e(Auth::user()->shop->bzj_money); ?> </h6>
  321. </div>
  322. </div>
  323. </div>
  324. <div class="row">
  325. <div class="col-md-3">
  326. <label><?php echo e(translate('Amount')); ?> <span class="text-danger">*</span></label>
  327. </div>
  328. <div class="col-md-9">
  329. <input type="number" lang="en" class="form-control mb-3" name="amount"
  330. placeholder="<?php echo e(translate('Amount')); ?>" required>
  331. </div>
  332. </div>
  333. <div class="row" style="margin-bottom:5px;">
  334. <div class="col-md-3">
  335. <label><?php echo e(translate('Opera Type')); ?></label>
  336. </div>
  337. <div class="col-md-9">
  338. <select name="type" class="form-control">
  339. <option value="1"><?php echo e(translate('User Balance')); ?></option>
  340. <option value="2"><?php echo e(translate('guarantee')); ?></option>
  341. </select>
  342. </div>
  343. </div>
  344. <div class="row" style="margin-bottom:5px;">
  345. <div class="col-md-3">
  346. <label><?php echo e(translate('Withdraw Type')); ?></label>
  347. </div>
  348. <div class="col-md-9">
  349. <select name="w_type" class="form-control" id="p">
  350. <option value="1"><?php echo e(translate('Cash')); ?></option>
  351. <option value="2"><?php echo e(translate('Bank')); ?></option>
  352. <option value="3"><?php echo e(translate('USDT')); ?></option>
  353. </select>
  354. </div>
  355. </div>
  356. <div class="row">
  357. <div class="col-md-3">
  358. <label><?php echo e(translate('Message')); ?></label>
  359. </div>
  360. <div class="col-md-9">
  361. <textarea name="message" rows="8" class="form-control mb-3"></textarea>
  362. </div>
  363. </div>
  364. <div class="form-group text-right">
  365. <button type="submit" class="btn btn-sm btn-primary"><?php echo e(translate('Send')); ?></button>
  366. </div>
  367. </div>
  368. </form>
  369. <?php else: ?>
  370. <div class="modal-body gry-bg px-3 pt-3">
  371. <div class="p-5 heading-3">
  372. <?php echo e(translate('You do not have enough balance to send withdraw request')); ?>
  373. </div>
  374. </div>
  375. <?php endif; ?>
  376. </div>
  377. </div>
  378. </div>
  379. <?php $__env->stopSection(); ?>
  380. <?php $__env->startSection('script'); ?>
  381. <script type="text/javascript">
  382. function show_request_modal() {
  383. $('#request_modal').modal('show');
  384. }
  385. function show_message_modal(id) {
  386. $.post('<?php echo e(route('withdraw_request.message_modal')); ?>', {
  387. _token: '<?php echo e(@csrf_token()); ?>',
  388. id: id
  389. }, function (data) {
  390. $('#message_modal .modal-content').html(data);
  391. $('#message_modal').modal('show', {backdrop: 'static'});
  392. });
  393. }
  394. function show_make_wallet_recharge_modal(type){
  395. if( type == 2 )
  396. {
  397. $("#exampleModalLabel").text('<?php echo e(translate('Guarantee Recharge')); ?>');
  398. }
  399. $.post('<?php echo e(route('offline_wallet_recharge_modal')); ?>', {type:type,_token:'<?php echo e(csrf_token()); ?>'}, function(data){
  400. $('#offline_wallet_recharge_modal_body').html(data);
  401. $('#offline_wallet_recharge_modal').modal('show');
  402. });
  403. }
  404. $("#p").change(function(){
  405. var usdt_status = <?php echo e($shop->usdt_payment_status); ?>
  406. var bank_payment_status = <?php echo e($shop->bank_payment_status); ?>
  407. var cash_on_delivery_status = <?php echo e($shop->cash_on_delivery_status); ?>
  408. var type = $(this).val();
  409. if (type == 3 && usdt_status == 0) {
  410. window.location.href = "/seller/profile#usdt"
  411. $(".btn").attr("disabled")
  412. }
  413. if (type == 2 && bank_payment_status == 0) {
  414. window.location.href = "/seller/profile#bank"
  415. $(".btn").attr("disabled")
  416. }
  417. if (type == 1 && cash_on_delivery_status == 0) {
  418. window.location.href = "/seller/profile#cash"
  419. $(".btn").attr("disabled")
  420. }
  421. })
  422. </script>
  423. <?php $__env->stopSection(); ?>
  424. <?php echo $__env->make('seller.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/shaoguo/Desktop/公司资料/小梦/商城/ebayShop/resources/views/seller/money_withdraw_requests/index.blade.php ENDPATH**/ ?>