<div class="col-xxl-2 col-xl-2 col-lg-3 col-md-4 col-sm-4 col-6">
    <div class="product_card">
        <div class="product_image">
            <a href="{{ route('reseller.single.product', [$resellers->username, $product->slug]) }}" id="{{$product->id}}" onclick="gtmEvent(this.id,'view_item',1)">
                    <img src="{{ asset('storage/' . $product->thumbnail_img) }}" alt="{{$product->name}}">
            </a>
           

            @if ($product->discount)
                <div class="product_discount">
                    <span>{{ getProductDiscountPrice($product->price, $product->sale_price) }}%</span>
                </div>
            @endif
            
        </div>
        <div class="product_content">
            <span class="product_new_price">{{ $product->sale_price }} TK</span>
            @if ($product->price > $product->sale_price)
                <span class="product_discount_price">{{ $product->price }} TK</span>
            @endif
        </div>
    </div>
</div>