title = "Haryt2"
url = "/product2/:id"
layout = "default"
is_hidden = 0
robot_index = "index"
robot_follow = "follow"

[singleoffer]
productSlug = "{{ :slug }}"
offerId = "{{ :id }}"

[session]
security = "all"
==
{% set product = singleoffer.offer %}
{% set rating =  singleoffer.rating %}

    <!-- Breadcumb Area -->
    <div class="breadcumb_area">
        <div class="container h-100">
            <div class="row h-100 align-items-center">
                <div class="col-12">
                    <h1>{{product.name}}</h1>
                </div>
            </div>
        </div>
    </div>
    <!-- Breadcumb Area -->

    <!-- Single Product Details Area -->
    <section class="single_product_details_area section_padding_100">
        <div class="container">
            <div class="row">
                  
                   <div class="col-12">
                      {{product.description|raw}}
                  </div>
                            
                {% for key, image in product.images %}
                 <div class="col-12">
                    <img class="d-block w-100" src="{{ image.path }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi, {{ product.name }}" style="width: 100%;">
                </div>
                {% endfor %}
                    
                
            </div>
            
            <div class="row justify-content-center" style="margin-top: 50px;">
                <div class="col-md-6">
                     <div class="widget catagory mb-30">
                            <div style="text-align: center">
                                  <img src="{{ product.vendor.logo|media|resize(200, 200, { mode: 'crop' }) }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi, {{ userProfile.name }}" style="width: 32%;border: 5px solid white;border-radius: 10px;box-shadow: 0px 2px 5px #00000038;">
                            </div>
                            <h6 class="widget-title" style="margin-top: 25px;text-align: center;font-weight: bold;font-size: 18px;margin-bottom: 2px;">{{ product.vendor.shop_title }}</h6>
                            <p style="text-align: center;font-size: 14px;">{{ product.vendor.slogan }}</p>
                            <hr>
                            <div class="widget-desc">
                                <p class="custom-control d-flex align-items-center" style="margin-bottom: 0px;">
                                    <label style="font-weight: 300;margin-bottom: 0px;">- {{ 'profileIsWagty'|_ }}: {{ product.vendor.work_time }} <span class="text-muted"></span></label>
                                </p>
                                <p class="custom-control d-flex align-items-center" style="margin-bottom: 0px;">
                                    <label style="font-weight: 300;margin-bottom: 0px;">- {{ 'profileTelefon'|_ }}: +993 {{ product.vendor.username }} <span class="text-muted"></span></label>
                                </p>
                               <a href="/user-profile/{{product.vendor.id}}" type="button" class="btn btn-primary" style="width: 100%;margin-top: 20px;">
                                   {{ 'parallaxDolyMaglumat'|_ }}
                                </a>
                            </div>
                        </div>
                </div>
            </div>
        </div>
    </section>
    <!-- Single Product Details Area End -->

{% put scripts %}
<script>
    function resetForm() {
        document.getElementById('commentForm').reset(); // Reset the form
    }
</script>
{% endput %}