[viewBag]
==
<!-- Single Popular Item -->
<div class="single_popular_item">
    <a href="{{ 'product'|page({id: product.id}) }}">
        <div class="product_image">
            <!-- Product Image -->
            <img class="first_img" src="{{ product.images[0].thumb(680,700,{'mode':'crop'}) }}" alt="Gurluşyk, Gurluşyk Platforma, Bezeg, Gipsler merkezi, {{ product.name }}">
            {% if product.images_count > 1 %}
                <img class="hover_img" src="{{ product.images[1].thumb(680,700,{'mode':'crop'}) }}" alt="Gurluşyk, Gurluşyk Platforma, Bezeg, Gipsler merkezi, {{ product.name }}">
            {% endif %}
    
            <!-- Wishlist -->
            <div class="product_wishlist">
                {% if user %}
                    <a href="#" data-request="onCreateFav" data-request-data="product_id: {{product.id}}" data-request-flash><i class="icofont-heart"></i></a>
                {% else %}
                    <a href="{{ 'login'|page }}"><i class="icofont-heart"></i></a>
                {% endif %}
            </div>
            <!-- Add to cart -->
            {% if user %}
                <div class="product_add_to_cart addToCard" data-id="{{ product.id }}" data-price="{{ product.price }}" data-image="{{ product.images[0].path }}" data-name="{{ product.name }}"  data-vendor="{{ product.vendor.id }}">
                    <input type="hidden" min="1" id="quantity{{ product.id }}" value="1">
                    <a href="#"><i class="icofont-shopping-cart"></i> {{ 'product.SebedeGos'|_ }}</a>
                </div>
            {% else %}
                <div class="product_add_to_cart">
                    <a href="{{ 'login'|page }}"><i class="icofont-shopping-cart"></i> {{ 'product.SebedeGos'|_ }}</a>
                </div>
            {% endif %}
        </div>
    </a>    
    <!-- Product Description -->
    <div class="product_description">
        <a class="brand_name" href="{{ 'user-profile'|page({id: product.vendor.id}) }}" style="font-weight: normal;color: gray;">{{product.vendor.shop_title}}</a>

        <h5 style="margin-top: 10px;"><a href="{{ 'product'|page({id: product.id}) }}">{{ product.name }}</a></h5>
        <h6>
            {% if product.vendor.web2 > 0 %}
                <del style="color: rgb(253, 0, 24);">{{ product.price }} TMT</del>
                    {{ product.getDiscountedPrice(product.vendor.web2) }} TMT
                {% else %}
                    {{ product.price }} TMT
            {% endif %}
        </h6>
        <span class="badge mt-2 {{ product.stock == 0 ? 'badge-secondary' : 'badge-success' }}">{{ product.stock == 0 ? 'productAdd.ZakazaGelyar'|_ : 'productAdd.ElimizdeBar'|_ }}</span>
    </div>
</div>