<div class="card {{ $class }}">
    <a href="{{ route('product', $product->post->slug) }}">
        <div class="card-image">
            <img src="{{ asset($product->thumbnail) }}" alt="" class="absolute">
        </div>
    </a>
    <div class="card-body">
        <div class="card-content">
            <h3>{{ $product->post->title }}</h3>
            <h4>{{ num_format($product->price) }}</h4>
        </div>
        <div class="btn-container">
            <a href="#" class="btn btn-cart-action" data-action="add" data-product-id="{{ $product->id }}">
                <span>Añadir al carrito</span>
                <i class="far fa-arrow-right"></i>
            </a>
        </div>
    </div>
</div>