134 lines
7.9 KiB
HTML
134 lines
7.9 KiB
HTML
[viewBag]
|
|
==
|
|
{% partial "profile/parallax" userProfile=userProfile %}
|
|
|
|
|
|
|
|
|
|
<section class="shop_grid_area section_padding_50">
|
|
<div class="container" style="max-width: 1600px !important;">
|
|
<div class="shop_top_sidebar_area">
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
<a href="{{ 'user-profile'|page({id: userProfile.id, slug: ''}) }}" class="tagCat {{ currentC == 'Hemme Harytlar' ? 'activeCat' : '' }}"> Hemmesi</a>
|
|
{% for category in categories %}
|
|
<a href="{{ 'user-profile'|page({id: userProfile.id, slug: category.slug}) }}" class="tagCat {{ category.slug == slugq ? 'activeCat' : '' }}"> {{ category.name }}</a>
|
|
{% endfor %}
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% partial "profile/modal" userProfile=userProfile %}
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<!-- Shop Top Sidebar -->
|
|
<div class="shop_top_sidebar_area d-flex flex-wrap align-items-center justify-content-between">
|
|
<div class="row" style="width: 100%">
|
|
<div class="col-8" style="margin: auto;">
|
|
{{currentC}}
|
|
</div>
|
|
<div class="col-4">
|
|
<form id="sortOptionUserProfile" method="GET"></form>
|
|
<select class="form-control" onchange="sortHandle()" id="sort_input">
|
|
<option value="">Saýlanmadyk</option>
|
|
<option value="-price" {% if input('sort') == '-price' %} selected {% endif %}>Gymmatdan arzana</option>
|
|
<option value="price" {% if input('sort') == 'price' %} selected {% endif %}>Arzandan gymmada</option>
|
|
<option value="-created_at" {% if input('sort') == '-created_at' %} selected {% endif %}>Täzeden könä</option>
|
|
<option value="created_at" {% if input('sort') == 'created_at' %} selected {% endif %}>Köneden täzä</option>
|
|
</select>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="shop_grid_product_area">
|
|
<div class="row justify-content-start ">
|
|
{% for product in products %}
|
|
<!-- Single Product -->
|
|
<div class="col-4 col-sm-12 col-md-2 col-lg-2">
|
|
<div class="single-product-area mb-30">
|
|
<a href="{{ 'product'|page({id: product.id}) }}">
|
|
<div class="product_image">
|
|
<!-- Product Image -->
|
|
<img class="normal_img" src="{{ product.images[0].thumb(680,700,{'mode':'crop'}) }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi, {{ product.name }}">
|
|
{% if product_images_count > 1 %}
|
|
<img class="hover_img" src="{{ product.images[1].thumb(500,625,{'mode':'crop'}) }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi, {{ product.name }}">
|
|
{% endif %}
|
|
|
|
{% if product.type_title %}
|
|
<div class="product_badge">
|
|
<span>{{product.type_title}}</span>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="product_wishlist">
|
|
{% if user %}
|
|
<a href="{{ 'wishlist'|page }}"><i class="icofont-heart"></i></a>
|
|
{% else %}
|
|
<a href="{{ 'login'|page }}"><i class="icofont-heart"></i></a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
|
|
<!-- Product Description -->
|
|
<div class="product_description" style="padding-top: 1px;padding-bottom: 20px;">
|
|
<!-- 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" style="font-size: 19px;"></i></a>
|
|
</div>
|
|
{% else %}
|
|
<div class="product_add_to_cart">
|
|
<a href="{{ 'login'|page }}"><i class="icofont-shopping-cart" style="font-size: 19px;"></i></a>
|
|
</div>
|
|
{% endif %}
|
|
<!-- Quick View -->
|
|
<div class="product_quick_view">
|
|
<a href="#" data-toggle="modal" data-target="#quickview{{product.id}}"><i class="icofont-eye-alt" style="font-size: 19px;"></i></a>
|
|
</div>
|
|
<p class="brand_name"></p>
|
|
<a href="{{ 'product'|page({id: product.id}) }}">{{ product.name }}</a>
|
|
<h6 class="product-price">{{ product.price }} TMT</h6>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
</div>
|
|
</div>
|
|
{% if products.hasPages %}
|
|
<div class="shop_pagination_area mt-30">
|
|
<nav aria-label="Page navigation">
|
|
<ul class="pagination pagination-sm justify-content-center">
|
|
{% if products.currentPage > 1 %}
|
|
<li class="page-item"><a class="page-link" href="{{ products.previousPageUrl }}{{params}}">Öňki</a></li>
|
|
{% endif %}
|
|
|
|
{% for page in range(1, products.lastPage) %}
|
|
{% if page == products.currentPage %}
|
|
<li class="page-item active"><a class="page-link" href="{{ products.url(page) }}{{params}}">{{ page }}</a></li>
|
|
{% elseif page > products.currentPage - 3 and page < products.currentPage + 3 %}
|
|
<li class="page-item"><a class="page-link" href="{{ products.url(page) }}{{params}}">{{ page }}</a></li>
|
|
{% elseif page == products.currentPage + 3 or page == products.currentPage - 3 %}
|
|
<li>...</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% if products.lastPage > products.currentPage %}
|
|
<li class="page-item"><a class="page-link" href="{{ products.nextPageUrl }}{{params}}">Indiki</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section> |