240 lines
13 KiB
HTML
240 lines
13 KiB
HTML
{% set products = __SELF__.offers %}
|
|
{% set category = __SELF__.category %}
|
|
{% set categories = __SELF__.categories %}
|
|
{% set cities = __SELF__.cities %}
|
|
|
|
|
|
{% for product in products %}
|
|
<!-- Quick View Modal Area -->
|
|
<div class="modal fade" id="quickview{{product.id}}" tabindex="-1" role="dialog" aria-labelledby="quickview" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
|
|
<div class="modal-content">
|
|
<button type="button" class="close btn" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<div class="modal-body">
|
|
<div class="quickview_body">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12 col-lg-5">
|
|
<div class="quickview_pro_img">
|
|
<img class="first_img" src="{{ product.images[0].path }}" alt="">
|
|
{% if product.images_count > 1 %}
|
|
<img class="hover_img" src="{{ product.images[1].path }}" alt="">
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-7">
|
|
<div class="quickview_pro_des">
|
|
<h4 class="title">{{ product.name }}</h4>
|
|
<div class="top_seller_product_rating mb-15">
|
|
<i class="fa fa-star" aria-hidden="true"></i>
|
|
<i class="fa fa-star" aria-hidden="true"></i>
|
|
<i class="fa fa-star" aria-hidden="true"></i>
|
|
<i class="fa fa-star" aria-hidden="true"></i>
|
|
<i class="fa fa-star" aria-hidden="true"></i>
|
|
</div>
|
|
<h5 class="price">{{ product.price }} TMT</h5>
|
|
<p>{{ html_limit(product.description, 100) }}</p>
|
|
<a href="{{ 'product'|page({id: product.id}) }}">Giňişleýin maglumat</a>
|
|
</div>
|
|
<!-- Add to Cart Form -->
|
|
<form class="cart" method="post">
|
|
<div class="quantity">
|
|
<input type="number" class="qty-text" id="qty" step="1" min="1" max="12" name="quantity" value="1">
|
|
</div>
|
|
<button type="submit" name="addtocart" value="5" class="cart-submit">Sebede goş</button>
|
|
<!-- Wishlist -->
|
|
<div class="modal_pro_wishlist">
|
|
{% if user %}
|
|
<a href="wishlist.html"><i class="icofont-heart"></i></a>
|
|
{% else %}
|
|
<a href="{{ 'login'|page }}"><i class="icofont-heart"></i></a>
|
|
{% endif %}
|
|
</div>
|
|
|
|
</form>
|
|
<!-- Share -->
|
|
<div class="share_wf mt-30">
|
|
<p>Paýlaşmak</p>
|
|
<div class="_icon">
|
|
<a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a>
|
|
<a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a>
|
|
<a href="#"><i class="fa fa-pinterest" aria-hidden="true"></i></a>
|
|
<a href="#"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
|
|
<a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a>
|
|
<a href="#"><i class="fa fa-envelope-o" aria-hidden="true"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Quick View Modal Area -->
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
<!-- Breadcumb Area -->
|
|
<div class="breadcumb_area">
|
|
<div class="container h-100">
|
|
<div class="row h-100 align-items-center">
|
|
<div class="col-12">
|
|
<h5>Harytlar</h5>
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{{ 'index'|page }}">Esasy sahypa</a></li>
|
|
<li class="breadcrumb-item active">Harytlar</li>
|
|
<li class="breadcrumb-item active">{{ category.name }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Breadcumb Area -->
|
|
|
|
<section class="shop_grid_area section_padding_100">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12 col-sm-5 col-md-4 col-lg-3">
|
|
<div class="shop_sidebar_area">
|
|
<form action="{{ 'filter-products'|page }}" method="GET">
|
|
{% if category.subs|length > 0 %}
|
|
<div class="widget catagory mb-30">
|
|
<h6 class="widget-title">Sub kategoriýalar</h6>
|
|
<div class="widget-desc">
|
|
<select name="subcategory" class="form-control">
|
|
<option value="">Kategoriýa saýla</option>
|
|
{% for item in category.subs %}
|
|
<option value="{{ item.slug }}" {{ item.id == category.id ? 'selected' : '' }}>{{ item.name }} </option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="widget brands mb-30">
|
|
<h6 class="widget-title">Şäherler</h6>
|
|
<div class="widget-desc">
|
|
<select name="city" class="form-control">
|
|
<option value="">Şäher saýla</option>
|
|
{% for city in cities %}
|
|
<option value="{{ city.id }}">{{ city.name }} </option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Single Widget -->
|
|
<div class="widget price mb-30">
|
|
<h6 class="widget-title">Baha</h6>
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<input class="form-control" type="number" name="min_price"
|
|
placeholder="0" value="{{input('min_price') ? input('min_price') : null}}">
|
|
</div>
|
|
<div class="col-6">
|
|
<input class="form-control" type="number" name="max_price"
|
|
placeholder="1350" value="{{input('max_price') ? input('max_price') : null}}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary" style="width: 100%"> Filterle </button>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12 col-sm-7 col-md-8 col-lg-9">
|
|
<!-- 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">
|
|
</div>
|
|
<div class="col-4">
|
|
<select class="form-control" id="sort">
|
|
<option selected>Gymmatdan arzana</option>
|
|
<option value="&sortDate=asc">Täzeden könä</option>
|
|
<option value="2">Köneden täzä</option>
|
|
<option value="3">Arzandan gymmada</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="shop_grid_product_area">
|
|
<div class="row justify-content-center">
|
|
{% for product in products %}
|
|
<!-- Single Product -->
|
|
<div class="col-9 col-sm-12 col-md-6 col-lg-4">
|
|
<div class="single-product-area mb-30">
|
|
<div class="product_image">
|
|
<!-- Product Image -->
|
|
<img class="normal_img" src="{{ product.images[0].path }}" alt="{{ product.name }}">
|
|
{% if product_images_count > 1 %}
|
|
<img class="hover_img" src="{{ product.images[1].path }}" alt="">
|
|
{% endif %}
|
|
<div class="product_wishlist">
|
|
{% if user %}
|
|
<a href="wishlist.html"><i class="icofont-heart"></i></a>
|
|
{% else %}
|
|
<a href="{{ 'login'|page }}"><i class="icofont-heart"></i></a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Product Description -->
|
|
<div class="product_description">
|
|
<!-- Add to cart -->
|
|
<div class="product_add_to_cart">
|
|
{% if user %}
|
|
<a href="#"><i class="icofont-shopping-cart"></i> Sebede goş</a>
|
|
{% else %}
|
|
<a href="{{ 'login'|page }}"><i class="icofont-shopping-cart"></i> Sebede goş</a>
|
|
{% endif %}
|
|
</div>
|
|
<!-- Quick View -->
|
|
<div class="product_quick_view">
|
|
<a href="#" data-toggle="modal" data-target="#quickview{{product.id}}"><i class="icofont-eye-alt"></i> Doly maglumat</a>
|
|
</div>
|
|
<p class="brand_name"></p>
|
|
<a href="#">{{ 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 }}">Öňki</a></li>
|
|
{% endif %}
|
|
|
|
{% for page in range(1, products.lastPage) %}
|
|
<li class="page-item"><a class="page-link" href="{{ products.url(page) }}">{{ page }}</a></li>
|
|
{% endfor %}
|
|
|
|
{% if products.lastPage > products.currentPage %}
|
|
<li class="page-item"><a class="page-link" href="{{ products.nextPageUrl }}">Indiki</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section> |