05b7a8df48c9028916c43bfb752c3577ca233e7a.php 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <div class="modal-body p-4 added-to-cart">
  2. <div class="text-center text-success mb-4">
  3. <i class="las la-check-circle la-3x"></i>
  4. <h3><?php echo e(translate('Item added to your cart!')); ?></h3>
  5. </div>
  6. <div class="media mb-4">
  7. <img src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>" data-src="<?php echo e(uploaded_asset($product->thumbnail_img)); ?>" class="mr-3 lazyload size-100px img-fit rounded" alt="Product Image">
  8. <div class="media-body pt-3 text-left">
  9. <h6 class="fw-600">
  10. <?php echo e($product->getTranslation('name')); ?>
  11. </h6>
  12. <div class="row mt-3">
  13. <div class="col-sm-2 opacity-60">
  14. <div><?php echo e(translate('Price')); ?>:</div>
  15. </div>
  16. <div class="col-sm-10">
  17. <div class="h6 text-primary">
  18. <strong>
  19. <?php echo e(single_price(($data['price'] + $data['tax']) * $data['quantity'])); ?>
  20. </strong>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. <div class="bg-white rounded shadow-sm">
  27. <div class="border-bottom p-3">
  28. <h3 class="fs-16 fw-600 mb-0">
  29. <span class="mr-4"><?php echo e(translate('Frequently Bought Together')); ?></span>
  30. </h3>
  31. </div>
  32. <div class="p-3">
  33. <div class="aiz-carousel gutters-5 half-outside-arrow" data-items="2" data-xl-items="3" data-lg-items="4" data-md-items="3" data-sm-items="2" data-xs-items="2" data-arrows='true' data-infinite='true'>
  34. <?php $__currentLoopData = filter_products(\App\Models\Product::query()->from("products as p")->where('category_id', $product->category_id)->where('id', '!=', $product->id))->limit(10)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $related_product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  35. <div class="carousel-box">
  36. <div class="aiz-card-box border border-light rounded hov-shadow-md my-2 has-transition">
  37. <div class="">
  38. <a href="<?php echo e(route('product', $related_product->slug)); ?>" class="d-block">
  39. <img
  40. class="img-fit lazyload mx-auto h-140px h-md-210px"
  41. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  42. data-src="<?php echo e(uploaded_asset($related_product->thumbnail_img)); ?>"
  43. alt="<?php echo e($related_product->getTranslation('name')); ?>"
  44. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';"
  45. >
  46. </a>
  47. </div>
  48. <div class="p-md-3 p-2 text-left">
  49. <div class="fs-15">
  50. <?php if(home_base_price($related_product) != home_discounted_base_price($related_product)): ?>
  51. <del class="fw-600 opacity-50 mr-1"><?php echo e(home_base_price($related_product)); ?></del>
  52. <?php endif; ?>
  53. <span class="fw-700 text-primary"><?php echo e(home_discounted_base_price($related_product)); ?></span>
  54. </div>
  55. <div class="rating rating-sm mt-1">
  56. <?php echo e(renderStarRating($related_product->rating)); ?>
  57. </div>
  58. <h3 class="fw-600 fs-13 text-truncate-2 lh-1-4 mb-0 h-35px">
  59. <a href="<?php echo e(route('product', $related_product->slug)); ?>" class="d-block text-reset"><?php echo e($related_product->getTranslation('name')); ?></a>
  60. </h3>
  61. <?php if(addon_is_activated('club_point')): ?>
  62. <div class="rounded px-2 mt-2 bg-soft-primary border-soft-primary border">
  63. <?php echo e(translate('Club Point')); ?>:
  64. <span class="fw-700 float-right"><?php echo e($related_product->earn_point); ?></span>
  65. </div>
  66. <?php endif; ?>
  67. </div>
  68. </div>
  69. </div>
  70. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="text-center">
  75. <button class="btn btn-outline-primary mb-3 mb-sm-0" data-dismiss="modal"><?php echo e(translate('Back to shopping')); ?></button>
  76. <a href="<?php echo e(route('cart')); ?>" class="btn btn-primary mb-3 mb-sm-0"><?php echo e(translate('Proceed to Checkout')); ?></a>
  77. </div>
  78. </div>
  79. <?php /**PATH /Users/shaoguo/Desktop/公司资料/小梦/商城/ebayShop/resources/views/frontend/partials/addedToCart.blade.php ENDPATH**/ ?>