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

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


        <h6 class="dis-label d-block">{{ $discount_price }} OFF</h6>
        <h6></h6>
    </span>
@endif