521283d8b6cdcf52a3ca39ed10609c9f06478eeb.php 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?php $__env->startSection('content'); ?>
  2. <div class="card">
  3. <div class="card-header">
  4. <h5 class="mb-0 h6"><?php echo e(translate('Seller 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('Seller')); ?></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><?php echo e(translate('Type')); ?></th>
  16. <th data-breakpoints="lg"><?php echo e(translate('Withdraw type')); ?></th>
  17. <th data-breakpoints="lg" width="20%"><?php echo e(translate('Message')); ?></th>
  18. <th data-breakpoints="lg"><?php echo e(translate('Status')); ?></th>
  19. <th data-breakpoints="lg" width="15%" class="text-right"><?php echo e(translate('Options')); ?></th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. <?php $__currentLoopData = $seller_withdraw_requests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $seller_withdraw_request): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  24. <?php $user = \App\Models\User::find($seller_withdraw_request->user_id); ?>
  25. <?php if($user && $user->shop): ?>
  26. <tr>
  27. <td><?php echo e(($key+1) + ($seller_withdraw_requests->currentPage() - 1)*$seller_withdraw_requests->perPage()); ?></td>
  28. <td><?php echo e($seller_withdraw_request->created_at); ?></td>
  29. <td><?php echo e($user->name); ?> (<?php echo e($user->shop->name); ?>)</td>
  30. <td><?php echo e(single_price($user->shop->admin_to_pay)); ?></td>
  31. <td><?php echo e(single_price($seller_withdraw_request->amount)); ?></td>
  32. <td>
  33. <?php if( $seller_withdraw_request->type == 1): ?>
  34. <?php echo e(translate('User Balance')); ?>
  35. <?php else: ?>
  36. <?php echo e(translate('Guarantee')); ?>
  37. <?php endif; ?>
  38. </td>
  39. <td>
  40. <?php if($seller_withdraw_request->w_type == 1): ?>
  41. <?php echo e(translate('Cash')); ?>
  42. <?php elseif($seller_withdraw_request->w_type == 2): ?>
  43. <?php echo e(translate('Bank')); ?>
  44. <?php elseif($seller_withdraw_request->w_type == 3): ?>
  45. <?php echo e(translate('USDT')); ?>
  46. <?php endif; ?>
  47. </td>
  48. <td>
  49. <?php echo e($seller_withdraw_request->message); ?>
  50. </td>
  51. <td>
  52. <?php if($seller_withdraw_request->status == 1): ?>
  53. <span class="badge badge-inline badge-success"><?php echo e(translate('Paid')); ?></span>
  54. <?php elseif($seller_withdraw_request->status == 2): ?>
  55. <span class="badge badge-inline badge-error"><?php echo e(translate('Refuse')); ?></span>
  56. <?php else: ?>
  57. <span class="badge badge-inline badge-info"><?php echo e(translate('Pending')); ?></span>
  58. <?php endif; ?>
  59. </td>
  60. <td class="text-right">
  61. <?php if($seller_withdraw_request->status == 0): ?>
  62. <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')); ?>">
  63. <i class="las la-money-bill"></i>
  64. <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')); ?>">
  65. <i class="las la-money-bill"></i>
  66. </a>
  67. <?php endif; ?>
  68. <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')); ?>">
  69. <i class="las la-eye"></i>
  70. </a>
  71. <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')); ?>">
  72. <i class="las la-history"></i>
  73. </a>
  74. </td>
  75. </tr>
  76. <?php endif; ?>
  77. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  78. </tbody>
  79. </table>
  80. <div class="aiz-pagination">
  81. <?php echo e($seller_withdraw_requests->links()); ?>
  82. </div>
  83. </div>
  84. </div>
  85. <?php $__env->stopSection(); ?>
  86. <?php $__env->startSection('modal'); ?>
  87. <!-- payment Modal -->
  88. <div class="modal fade" id="payment_modal">
  89. <div class="modal-dialog">
  90. <div class="modal-content" id="payment-modal-content">
  91. </div>
  92. </div>
  93. </div>
  94. <div class="modal fade" id="refuse_modal">
  95. <div class="modal-dialog">
  96. <div class="modal-content" id="refuse_modal-content">
  97. </div>
  98. </div>
  99. </div>
  100. <!-- Message View Modal -->
  101. <div class="modal fade" id="message_modal">
  102. <div class="modal-dialog">
  103. <div class="modal-content" id="message-modal-content">
  104. </div>
  105. </div>
  106. </div>
  107. <?php $__env->stopSection(); ?>
  108. <?php $__env->startSection('script'); ?>
  109. <script type="text/javascript">
  110. function show_seller_payment_modal(id, seller_withdraw_request_id){
  111. $.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){
  112. $('#payment-modal-content').html(data);
  113. $('#payment_modal').modal('show', {backdrop: 'static'});
  114. $('.demo-select2-placeholder').select2();
  115. });
  116. }
  117. function show_refuse_modal(id, seller_withdraw_request_id){
  118. $.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){
  119. $('#refuse_modal-content').html(data);
  120. $('#refuse_modal').modal('show', {backdrop: 'static'});
  121. });
  122. }
  123. function show_message_modal(id){
  124. $.post('<?php echo e(route('withdraw_request.message_modal')); ?>',{_token:'<?php echo e(@csrf_token()); ?>', id:id}, function(data){
  125. $('#message-modal-content').html(data);
  126. $('#message_modal').modal('show', {backdrop: 'static'});
  127. });
  128. }
  129. </script>
  130. <?php $__env->stopSection(); ?>
  131. <?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/backend/sellers/seller_withdraw_requests/index.blade.php ENDPATH**/ ?>