a9e4af2b04459f24057eaa8a442d9c8a21b92ab6.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <div class="aiz-card-box border border-light rounded hov-shadow-md mt-1 mb-2 has-transition bg-white">
  2. <?php if(discount_in_percentage($product) > 0): ?>
  3. <span class="badge-custom"><?php echo e(translate('OFF')); ?><span class="box ml-1 mr-0">&nbsp;<?php echo e(discount_in_percentage($product)); ?>%</span></span>
  4. <?php endif; ?>
  5. <div class="position-relative">
  6. <?php
  7. $product_url = route('product', $product->slug);
  8. if($product->auction_product == 1) {
  9. $product_url = route('auction-product', $product->slug);
  10. }
  11. ?>
  12. <a href="<?php echo e($product_url); ?>" class="d-block">
  13. <img
  14. class="img-fit lazyload mx-auto h-140px h-md-210px"
  15. src="<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>"
  16. data-src="<?php echo e(uploaded_asset($product->thumbnail_img)); ?>"
  17. alt="<?php echo e($product->getTranslation('name')); ?>"
  18. onerror="this.onerror=null;this.src='<?php echo e(static_asset('assets/img/placeholder.jpg')); ?>';"
  19. >
  20. </a>
  21. <?php if($product->wholesale_product): ?>
  22. <span class="absolute-bottom-left fs-11 text-white fw-600 px-2 lh-1-8" style="background-color: #455a64">
  23. <?php echo e(translate('Wholesale')); ?>
  24. </span>
  25. <?php endif; ?>
  26. <div class="absolute-top-right aiz-p-hov-icon">
  27. <a href="javascript:void(0)" onclick="addToWishList(<?php echo e($product->id); ?>)" data-toggle="tooltip" data-title="<?php echo e(translate('Add to wishlist')); ?>" data-placement="left">
  28. <i class="la la-heart-o"></i>
  29. </a>
  30. <a href="javascript:void(0)" onclick="addToCompare(<?php echo e($product->id); ?>)" data-toggle="tooltip" data-title="<?php echo e(translate('Add to compare')); ?>" data-placement="left">
  31. <i class="las la-sync"></i>
  32. </a>
  33. <a href="javascript:void(0)" onclick="showAddToCartModal(<?php echo e($product->id); ?>)" data-toggle="tooltip" data-title="<?php echo e(translate('Add to cart')); ?>" data-placement="left">
  34. <i class="las la-shopping-cart"></i>
  35. </a>
  36. </div>
  37. </div>
  38. <div class="p-md-3 p-2 text-left">
  39. <div class="fs-15">
  40. <?php if(home_base_price($product) != home_discounted_base_price($product)): ?>
  41. <del class="fw-600 opacity-50 mr-1"><?php echo e(home_base_price($product)); ?></del>
  42. <?php endif; ?>
  43. <span class="fw-700 text-primary"><?php echo e(home_discounted_base_price($product)); ?></span>
  44. </div>
  45. <div class="rating rating-sm mt-1">
  46. <?php echo e(renderStarRating($product->rating)); ?>
  47. </div>
  48. <h3 class="fw-600 fs-13 text-truncate-2 lh-1-4 mb-0 h-35px">
  49. <a href="<?php echo e($product_url); ?>" class="d-block text-reset"><?php echo e($product->getTranslation('name')); ?></a>
  50. </h3>
  51. <?php if(addon_is_activated('club_point')): ?>
  52. <div class="rounded px-2 mt-2 bg-soft-primary border-soft-primary border">
  53. <?php echo e(translate('Club Point')); ?>:
  54. <span class="fw-700 float-right"><?php echo e($product->earn_point); ?></span>
  55. </div>
  56. <?php endif; ?>
  57. </div>
  58. </div>
  59. <?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/partials/product_box_1.blade.php ENDPATH**/ ?>