<?php 

@$price = $item->price;

@$sale = $item->price_sale;

@$per = round((($price - $sale) / $price ) * 100);

@$ePrice = Helper::adddotstring($price);

@$eSale = Helper::adddotstring($sale);

?>

<div class="iproduct">

	<div class="product-item-info"><?php if($price > $sale && $sale > 0): ?> <span class="percent-price  flag-percent"> <span class="percent-list">-<?php echo e($per); ?>%</span> <span class="percent-view">Giảm <?php echo e($per); ?>%</span> </span><?php endif; ?>

		<div class="product-images"> <a title="Sofa 2 chỗ Calia" href="<?php echo e($item->alias); ?>" class="product photo product-item-photo"> <span class="main-image"> <span class="product-image-container"

			style="width:240px;"> <span class="product-image-wrapper"

			style="padding-bottom: 100%;"> <img class="product-image-photo"

			src="<?php echo e($item->thumb); ?>"

			width="240"

			height="240"

			alt="<?php echo e($item->name); ?>"/></span> </span> </span> </a> </div>

			<div class="product details product-box-info"> <a title="<?php echo e($item->name); ?>"

				href="<?php echo e($item->alias); ?>"

				class="product-item-name">

				<h4><?php echo e($item->name); ?></h4>

			</a>

			<?php if($price > $sale && $sale > 0): ?>

			<div class="price-box price-final_price">

				<span class="price-container price-final_price tax weee">

					<span class="special-price">

						<span class="price"><?php echo e($eSale); ?> đ</span>

					</span>

					<span class="old-price">

						<span class="price-wrapper">

							<span class="price"><?php echo e($ePrice); ?> đ</span>

						</span>

					</span>

				</span> 

				<span class="percent-price"><span class="percent-list">-<?php echo e($per); ?>%</span>

				<span class="percent-view">Đang giảm <?php echo e($per); ?>%</span></span>

			</div>

			<?php else: ?>

			<div class="price-box price-final_price">

				<span class="price-container price-final_price tax weee">

					<span class="special-price">

						<span class="price"><?php if($price > 0 ): ?><?php echo e($ePrice); ?> đ <?php else: ?> Liên hệ <?php endif; ?></span>

					</span>

				</span> 

			</div>

			<?php endif; ?>

			<div class="product-item-inner"> </div>

		</div>

	</div>

	<div class="item-hover"> <a title="<?php echo e($item->name); ?>" href="<?php echo e($item->alias); ?>" class="product photo product-item-photo"> <span>Xem chi tiết</span> </a> </div>

</div>