c8e9652d3ad153b33bd1b8e5054bf03706bb2460.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php $__env->startSection('panel_content'); ?>
  2. <div class="card">
  3. <div class="card-header">
  4. <h5 class="mb-0 h6"><?php echo e(translate('Purchase History')); ?></h5>
  5. </div>
  6. <?php if(count($orders) > 0): ?>
  7. <div class="card-body">
  8. <table class="table aiz-table mb-0">
  9. <thead>
  10. <tr>
  11. <th><?php echo e(translate('Code')); ?></th>
  12. <th data-breakpoints="md"><?php echo e(translate('Date')); ?></th>
  13. <th><?php echo e(translate('Amount')); ?></th>
  14. <th data-breakpoints="md"><?php echo e(translate('Delivery Status')); ?></th>
  15. <th data-breakpoints="md"><?php echo e(translate('Payment Status')); ?></th>
  16. <th class="text-right"><?php echo e(translate('Options')); ?></th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  21. <?php if(count($order->orderDetails) > 0): ?>
  22. <tr>
  23. <td>
  24. <a href="<?php echo e(route('purchase_history.details', encrypt($order->id))); ?>"><?php echo e($order->code); ?></a>
  25. </td>
  26. <td><?php echo e(date('d-m-Y', $order->date)); ?></td>
  27. <td>
  28. <?php echo e(single_price($order->grand_total)); ?>
  29. </td>
  30. <td>
  31. <?php echo e(translate(ucfirst(str_replace('_', ' ', $order->delivery_status)))); ?>
  32. <?php if($order->delivery_viewed == 0): ?>
  33. <span class="ml-2" style="color:green"><strong>*</strong></span>
  34. <?php endif; ?>
  35. </td>
  36. <td>
  37. <?php if($order->payment_status == 'paid'): ?>
  38. <span class="badge badge-inline badge-success"><?php echo e(translate('Paid')); ?></span>
  39. <?php else: ?>
  40. <span class="badge badge-inline badge-danger"><?php echo e(translate('Unpaid')); ?></span>
  41. <?php endif; ?>
  42. <?php if($order->payment_status_viewed == 0): ?>
  43. <span class="ml-2" style="color:green"><strong>*</strong></span>
  44. <?php endif; ?>
  45. </td>
  46. <td class="text-right">
  47. <?php if($order->delivery_status == 'pending' && $order->payment_status == 'unpaid'): ?>
  48. <a href="javascript:void(0)" class="btn btn-soft-danger btn-icon btn-circle btn-sm confirm-delete" data-href="<?php echo e(route('purchase_history.destroy', $order->id)); ?>" title="<?php echo e(translate('Cancel')); ?>">
  49. <i class="las la-trash"></i>
  50. </a>
  51. <?php endif; ?>
  52. <a href="<?php echo e(route('purchase_history.details', encrypt($order->id))); ?>" class="btn btn-soft-info btn-icon btn-circle btn-sm" title="<?php echo e(translate('Order Details')); ?>">
  53. <i class="las la-eye"></i>
  54. </a>
  55. <a class="btn btn-soft-warning btn-icon btn-circle btn-sm" href="<?php echo e(route('invoice.download', $order->id)); ?>" title="<?php echo e(translate('Download Invoice')); ?>">
  56. <i class="las la-download"></i>
  57. </a>
  58. </td>
  59. </tr>
  60. <?php endif; ?>
  61. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  62. </tbody>
  63. </table>
  64. <div class="aiz-pagination">
  65. <?php echo e($orders->links()); ?>
  66. </div>
  67. </div>
  68. <?php endif; ?>
  69. </div>
  70. <?php $__env->stopSection(); ?>
  71. <?php $__env->startSection('modal'); ?>
  72. <?php echo $__env->make('modals.delete_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  73. <div class="modal fade" id="order_details" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  74. <div class="modal-dialog modal-dialog-centered modal-xl" role="document">
  75. <div class="modal-content">
  76. <div id="order-details-modal-body">
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <?php $__env->stopSection(); ?>
  82. <?php $__env->startSection('script'); ?>
  83. <script type="text/javascript">
  84. $('#order_details').on('hidden.bs.modal', function () {
  85. location.reload();
  86. })
  87. </script>
  88. <?php $__env->stopSection(); ?>
  89. <?php echo $__env->make('frontend.layouts.user_panel', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/shaoguo/Desktop/公司资料/小梦/商城/ebayShop/resources/views/frontend/user/purchase_history.blade.php ENDPATH**/ ?>