gurl_o/themes/gurlushyk/partials/profile/style1.htm

203 lines
13 KiB
HTML

[viewBag]
==
<section class="shop_grid_area section_padding_50">
<div class="container" style="max-width: 1600px !important;">
<div class="row">
<div class="col-12 col-sm-5 col-md-4 col-lg-3">
<div class="shop_sidebar_area">
<div class="widget catagory mb-30">
<div style="text-align: center">
<img src="{{ user.logo|media|resize(200, 200, { mode: 'crop' }) }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi, {{ userProfile.name }}" style="width: 60%;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;">{{ userProfile.shop_title }}</h6>
<p style="text-align: center;font-size: 14px;">{{ userProfile.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'|_ }}: {{ userProfile.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 {{ userProfile.username }} <span class="text-muted"></span></label>
</p>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalLong" style="width: 100%;margin-top: 20px;">
{{ 'parallaxDolyMaglumat'|_ }}
</button>
</div>
</div>
<div class="widget catagory mb-30">
<h6 class="widget-title" style="margin-bottom: 30px !important;">{{ 'profileKategoriyalar'|_ }}</h6>
<div class="widget-desc">
<a href="{{ 'user-profile'|page({id: userProfile.id, slug: ''}) }}" class="custom-control custom-checkbox d-flex align-items-center mb-3 pl-1" style="font-weight: 300;color: {{ currentC == 'Hemme Harytlar' ? '#ff5722' : '' }};">
- {{ 'profileKategoriyalarHemmesi'|_ }} <span class="text-muted"></span>
</a>
{% for category in categories %}
<a href="{{ 'user-profile'|page({id: userProfile.id, slug: category.slug}) }}" class="custom-control custom-checkbox d-flex align-items-center mb-3 pl-1" style="font-weight: 300;color: {{ category.slug == slugq ? '#ff5722' : '' }};">
- {{ category.name }} <span class="text-muted"></span>
</a>
{% endfor %}
</div>
</div>
</div>
</div>
<div class="col-12 col-sm-7 col-md-8 col-lg-9">
{% 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="">{{ 'sortSaylanmadyk'|_ }}</option>
<option value="-price" {% if input('sort') == '-price' %} selected {% endif %}>{{ 'sortGymmatdanArzana'|_ }}</option>
<option value="price" {% if input('sort') == 'price' %} selected {% endif %}>{{ 'sortArzandanGymmada'|_ }}</option>
<option value="-created_at" {% if input('sort') == '-created_at' %} selected {% endif %}>{{ 'sortTazedenKona'|_ }}</option>
<option value="created_at" {% if input('sort') == 'created_at' %} selected {% endif %}>{{ 'sortKonedenTaza'|_ }}</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-6 col-sm-6 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(680,700,{'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
data-request="onCreateFav"
data-request-flash
data-request-validate
data-request-data="product_id: {{ product.id }}"
href="#"><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>
{% 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>
</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}}">{{ 'paginationOnki'|_ }}</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}}">{{ 'paginationIndiki'|_ }}</a></li>
{% endif %}
</ul>
</nav>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% if sliders.count > 0 %}
<!-- Mini slider area-->
<section class="offer_area" style="margin-top: 70px;">
<div class="single-mega cn-col-2">
<div class="gurl_slider2">
<div class="megamenu-slides owl-carousel">
{% for brandSlider in sliders %}
<img src="{{ brandSlider.img|media|resize(950) }}" alt="Gurluşyk, Gurluşyk Platforma, Bezeg, Gipsler merkezi">
{% endfor %}
</div>
</div>
</div>
</section>
<!-- Mini slider area-->
{% endif %}
</div>
</section>