gurl_o/plugins/tps/birzha/components/myoffers/default.htm

125 lines
6.4 KiB
HTML
Raw Normal View History

2023-10-03 12:00:10 +00:00
{% set products = __SELF__.offers %}
<!-- Breadcumb Area -->
<div class="breadcumb_area">
<div class="container h-100">
<div class="row h-100 align-items-center">
<div class="col-12">
2023-10-25 16:09:40 +00:00
<h5>{{ 'profileDropdown.Harytlarym'|_ }}</h5>
2023-10-03 12:00:10 +00:00
<ol class="breadcrumb">
2023-10-25 16:09:40 +00:00
<li class="breadcrumb-item"><a href="{{ 'index'|page }}">{{ 'breadcrumbEsasySahypa'|_ }}</a></li>
<li class="breadcrumb-item active">{{ 'profileDropdown.Harytlarym'|_ }}</li>
2023-10-03 12:00:10 +00:00
</ol>
2023-07-23 05:57:06 +00:00
</div>
2023-10-03 12:00:10 +00:00
</div>
</div>
</div>
<!-- Breadcumb Area -->
<!-- Wishlist Table Area -->
<div class="wishlist-table section_padding_100 clearfix">
<div class="container">
2023-10-22 13:08:31 +00:00
{% if products.count() == 0 %}
<div class="container mb-5">
<div class="row d-block justify-content-center align-items-center">
<div class="col-6 d-block mx-auto">
<div class="text-center">
<img src="{{ 'assets/img/core-img/no-products.png'|theme }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi">
</div>
</div>
<div class="col-6 d-block mx-auto">
<div class="text-center">
2023-10-25 16:09:40 +00:00
<p>{{ 'product.SuwagtlykcaHarytYok'|_ }}</p>
2023-10-22 13:08:31 +00:00
</div>
</div>
</div>
</div>
2023-10-25 16:09:40 +00:00
{% else %}
2023-10-03 12:00:10 +00:00
<div class="row">
2023-10-25 16:09:40 +00:00
{% partial "user/menu" %}
<div class="col-12 col-lg-9">
2023-10-03 12:00:10 +00:00
<div class="cart-table wishlist-table">
<div class="table-responsive">
<table class="table table-bordered mb-30">
<thead>
<tr>
2023-10-25 16:09:40 +00:00
<th scope="col">{{ 'product.Surat'|_ }}</th>
<th scope="col">{{ 'product.HarytAdy'|_ }}</th>
<th scope="col">{{ 'product.Bahasy'|_ }}</th>
<th scope="col">{{ 'checkout.Status'|_ }}</th>
2023-10-03 12:00:10 +00:00
<th scope="col"></th>
</tr>
</thead>
<tbody>
2023-10-25 16:09:40 +00:00
2023-10-03 12:00:10 +00:00
{% for product in products %}
<tr>
<td>
2023-10-15 20:26:14 +00:00
<img src="{{ product.images[0].thumb(60,60, { mode: 'crop' }) }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi, {{ product.name }}">
2023-10-03 12:00:10 +00:00
</td>
<td>
<a href="{{ 'product'|page({id: product.id}) }}">{{ product.name }}</a>
</td>
<td>{{ product.price }} TMT</td>
2023-10-25 16:09:40 +00:00
<td>
{% if product.status == 'new' %}
<span class="badge badge-warning">{{ 'awaiting'|_ }}</span>
2024-02-02 14:21:07 +00:00
{% elseif product.status == 'disabled' %}
<span class="badge badge-danger">{{ 'disabled'|_ }}</span>
2023-10-25 16:09:40 +00:00
{% else %}
<span class="badge badge-success">{{ 'confirmed'|_ }}</span>
{% endif %}
</td>
2023-10-12 20:59:00 +00:00
<td align="center" width="25%">
<button
2023-10-03 12:00:10 +00:00
data-request="onDeleteOffer"
data-request-data="id: {{product.id}}"
data-request-flash
2023-10-25 16:09:40 +00:00
class="btn btn-primary btn-sm mb-1">{{ 'product.Pozmak'|_ }}</button>
<a href="{{ 'addProduct'|page({productId: product.id}) }}" class="btn btn-primary btn-sm">{{ 'product.Uytgetmek'|_ }}</a>
2023-10-12 20:59:00 +00:00
</td>
2023-10-03 12:00:10 +00:00
</tr>
{% endfor %}
</tbody>
</table>
2023-07-23 05:57:06 +00:00
</div>
</div>
2023-10-25 16:09:40 +00:00
{% 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 %}
2023-07-23 05:57:06 +00:00
</div>
</div>
2023-10-25 16:09:40 +00:00
{% endif %}
2023-10-22 13:08:31 +00:00
2023-07-23 05:57:06 +00:00
</div>
2023-10-03 12:00:10 +00:00
</div>