<?php if($product->discount_price > 0 || $product->price): ?>
    <h6><strong
            style="color: var(--primary_color)"><?php echo e(setting('CURRENCY_ICON') ?? '৳'); ?><?php echo e($product->price ?? $product->discount_price); ?></strong>
        <del><?php echo e(setting('CURRENCY_ICON') ?? '৳'); ?><?php echo e($product->regular_price); ?></del></h6>
<?php else: ?>
    <h6><strong
            style="color: var(--primary_color)"><?php echo e(setting('CURRENCY_ICON') ?? '৳'); ?><?php echo e($product->regular_price); ?></strong>
    </h6>
<?php endif; ?>

<?php if($product->discount_price > 0): ?>
    <span style="color: #ea6721;">
        <?php if($product->dis_type == '2'): ?>
            <?php
                $discount_price =
                    round(
                        (($product->regular_price - floatval($product->discount_price)) /
                            floatval($product->regular_price)) *
                            100,
                    ) . '%';
            ?>
        <?php else: ?>
            <?php
                $currency_icon = setting('CURRENCY_ICON') ? setting('CURRENCY_ICON') : '৳';
                $discount_price =
                    $currency_icon .
                    (floatval($product->regular_price) - floatval($product->discount_price));
            ?>
        <?php endif; ?>


        <h6 class="dis-label d-block"><?php echo e($discount_price); ?> OFF</h6>
        <h6></h6>
    </span>
<?php endif; ?><?php /**PATH /home/apleefix/shopping.apleefix.com/resources/views/components/parts-product-grid-view/price.blade.php ENDPATH**/ ?>