847683e93d0f9b4d0299b8f01567cf780f480ff3.php 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php $__env->startSection('content'); ?>
  2. <div class="card">
  3. <div class="card-header">
  4. <h5 class="mb-0 h6"><?php echo e(translate('Customer Withdraw Request')); ?></h5>
  5. </div>
  6. <div class="card-body">
  7. <table class="table aiz-table mb-0">
  8. <thead>
  9. <tr>
  10. <th data-breakpoints="lg">#</th>
  11. <th data-breakpoints="lg"><?php echo e(translate('Date')); ?></th>
  12. <th><?php echo e(translate('Customer')); ?></th>
  13. <th data-breakpoints="lg"><?php echo e(translate('Total Amount to Pay')); ?></th>
  14. <th><?php echo e(translate('Requested Amount')); ?></th>
  15. <th data-breakpoints="lg"><?php echo e(translate('Withdraw type')); ?></th>
  16. <th data-breakpoints="lg" width="20%"><?php echo e(translate('Message')); ?></th>
  17. <th data-breakpoints="lg"><?php echo e(translate('Status')); ?></th>
  18. <th data-breakpoints="lg" width="15%" class="text-right"><?php echo e(translate('Options')); ?></th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. <?php $__currentLoopData = $seller_withdraw_requests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $seller_withdraw_request): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  23. <?php $user = \App\Models\User::find($seller_withdraw_request->user_id); ?>
  24. <?php if($user ): ?>
  25. <tr>
  26. <td><?php echo e(($key+1) + ($seller_withdraw_requests->currentPage() - 1)*$seller_withdraw_requests->perPage()); ?></td>
  27. <td><?php echo e($seller_withdraw_request->created_at); ?></td>
  28. <td><?php echo e($user->name); ?> (<?php echo e($user->name); ?>)</td>
  29. <td><?php echo e(single_price($user->balance)); ?></td>
  30. <td><?php echo e(single_price($seller_withdraw_request->amount)); ?></td>
  31. <td>
  32. <?php if($seller_withdraw_request->w_type == 1): ?>
  33. <?php echo e(translate('Cash')); ?>
  34. <?php elseif($seller_withdraw_request->w_type == 2): ?>
  35. <?php echo e(translate('Bank')); ?>
  36. <?php elseif($seller_withdraw_request->w_type == 3): ?>
  37. <?php echo e(translate('USDT')); ?>
  38. <?php endif; ?>
  39. </td>
  40. <td>
  41. <?php echo e($seller_withdraw_request->message); ?>
  42. </td>
  43. <td>
  44. <?php if($seller_withdraw_request->status == 1): ?>
  45. <span class="badge badge-inline badge-success"><?php echo e(translate('Paid')); ?></span>
  46. <?php elseif($seller_withdraw_request->status == 2): ?>
  47. <span class="badge badge-inline badge-error"><?php echo e(translate('Refuse')); ?></span>
  48. <?php else: ?>
  49. <span class="badge badge-inline badge-info"><?php echo e(translate('Pending')); ?></span>
  50. <?php endif; ?>
  51. </td>
  52. <td class="text-right">
  53. <?php if($seller_withdraw_request->status == 0): ?>
  54. <a onclick="show_seller_payment_modal('<?php echo e($seller_withdraw_request->user_id); ?>','<?php echo e($seller_withdraw_request->id); ?>');" class="btn btn-soft-warning btn-icon btn-circle btn-sm" href="javascript:void(0);" title="<?php echo e(translate('Pay Now')); ?>">
  55. <i class="las la-money-bill"></i>
  56. <a onclick="show_refuse_modal('<?php echo e($seller_withdraw_request->user_id); ?>','<?php echo e($seller_withdraw_request->id); ?>');" class="btn btn-soft-warning btn-icon btn-circle btn-sm" href="javascript:void(0);" title="<?php echo e(translate('Refuse')); ?>">
  57. <i class="las la-money-bill"></i>
  58. </a>
  59. <?php endif; ?>
  60. <a onclick="show_message_modal('<?php echo e($seller_withdraw_request->id); ?>');" class="btn btn-soft-success btn-icon btn-circle btn-sm" href="javascript:void(0);" title="<?php echo e(translate('Message View')); ?>">
  61. <i class="las la-eye"></i>
  62. </a>
  63. <a href="<?php echo e(route('sellers.payment_history', encrypt($seller_withdraw_request->user_id))); ?>" class="btn btn-soft-primary btn-icon btn-circle btn-sm" title="<?php echo e(translate('Payment History')); ?>">
  64. <i class="las la-history"></i>
  65. </a>
  66. </td>
  67. </tr>
  68. <?php endif; ?>
  69. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  70. </tbody>
  71. </table>
  72. <div class="aiz-pagination">
  73. <?php echo e($seller_withdraw_requests->links()); ?>
  74. </div>
  75. </div>
  76. </div>
  77. <?php $__env->stopSection(); ?>
  78. <?php $__env->startSection('modal'); ?>
  79. <!-- payment Modal -->
  80. <div class="modal fade" id="payment_modal">
  81. <div class="modal-dialog">
  82. <div class="modal-content" id="payment-modal-content">
  83. </div>
  84. </div>
  85. </div>
  86. <div class="modal fade" id="refuse_modal">
  87. <div class="modal-dialog">
  88. <div class="modal-content" id="refuse_modal-content">
  89. </div>
  90. </div>
  91. </div>
  92. <!-- Message View Modal -->
  93. <div class="modal fade" id="message_modal">
  94. <div class="modal-dialog">
  95. <div class="modal-content" id="message-modal-content">
  96. </div>
  97. </div>
  98. </div>
  99. <?php $__env->stopSection(); ?>
  100. <?php $__env->startSection('script'); ?>
  101. <script type="text/javascript">
  102. function show_seller_payment_modal(id, seller_withdraw_request_id){
  103. $.post('<?php echo e(route('withdraw_request.payment_modal')); ?>',{_token:'<?php echo e(@csrf_token()); ?>', id:id, seller_withdraw_request_id:seller_withdraw_request_id}, function(data){
  104. $('#payment-modal-content').html(data);
  105. $('#payment_modal').modal('show', {backdrop: 'static'});
  106. $('.demo-select2-placeholder').select2();
  107. });
  108. }
  109. function show_refuse_modal(id, seller_withdraw_request_id){
  110. $.post('<?php echo e(route('withdraw_request.refuse_modal')); ?>',{_token:'<?php echo e(@csrf_token()); ?>', id:id, seller_withdraw_request_id:seller_withdraw_request_id}, function(data){
  111. $('#refuse_modal-content').html(data);
  112. $('#refuse_modal').modal('show', {backdrop: 'static'});
  113. });
  114. }
  115. function show_message_modal(id){
  116. $.post('<?php echo e(route('withdraw_request.message_modal')); ?>',{_token:'<?php echo e(@csrf_token()); ?>', id:id}, function(data){
  117. $('#message-modal-content').html(data);
  118. $('#message_modal').modal('show', {backdrop: 'static'});
  119. });
  120. }
  121. </script>
  122. <?php $__env->stopSection(); ?>
  123. <?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/shaoguo/Desktop/公司资料/小梦/商城/ebayShop/resources/views/backend/sellers/seller_withdraw_requests_all_by_user/index2.blade.php ENDPATH**/ ?>