104 lines
5.2 KiB
HTML
104 lines
5.2 KiB
HTML
{% set favourites = __SELF__.favourites %}
|
|
<!-- Breadcumb Area -->
|
|
<div class="breadcumb_area">
|
|
<div class="container h-100">
|
|
<div class="row h-100 align-items-center">
|
|
<div class="col-12">
|
|
<h5>{{ 'profileDropdown.Halanlarym'|_ }}</h5>
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{{ 'index'|page }}">{{ 'breadcrumbEsasySahypa'|_ }}</a></li>
|
|
<li class="breadcrumb-item active">{{ 'profileDropdown.Halanlarym'|_ }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Breadcumb Area -->
|
|
|
|
<!-- Wishlist Table Area -->
|
|
<div class="wishlist-table section_padding_100 clearfix">
|
|
<div class="container">
|
|
|
|
{% if favourites.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">
|
|
<p>{{ 'product.SuwagtlykcaHarytYok'|_ }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="cart-table wishlist-table">
|
|
<div class="table-responsive">
|
|
<table class="table table-bordered mb-30">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">{{ 'product.Surat'|_ }}</th>
|
|
<th scope="col">{{ 'product.HarytAdy'|_ }}</th>
|
|
<th scope="col">{{ 'product.Bahasy'|_ }}</th>
|
|
<th scope="col"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
{% for favourite in favourites %}
|
|
<tr>
|
|
<td>
|
|
<a href="{{ 'product'|page({id: favourite.product.id}) }}">
|
|
<img src="{{ favourite.product.images[0].thumb(60,60, { mode: 'crop' }) }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi, {{ favourite.product.name }}">
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="{{ 'product'|page({id: favourite.product.id}) }}">{{ favourite.product.name }}</a>
|
|
</td>
|
|
<td>
|
|
{{ favourite.product.price }} TMT
|
|
</td>
|
|
<td align="center" width="40%">
|
|
<a href="{{ 'product'|page({id: favourite.product.id}) }}" class="btn btn-primary btn-sm">{{ 'product.HarydyGormek'|_ }}</a>
|
|
<a href="#" data-request="onRemove" data-request-data="product_id: {{ favourite.product.id }}" data-request-flash class="btn btn-primary btn-sm">{{ 'favourites.HalanlarymdanAyyrmak'|_ }}</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
{% if favourites.hasPages %}
|
|
<div class="shop_pagination_area mt-30">
|
|
<nav aria-label="Page navigation">
|
|
<ul class="pagination pagination-sm justify-content-center">
|
|
{% if favourites.currentPage > 1 %}
|
|
<li class="page-item"><a class="page-link" href="{{ favourites.previousPageUrl }}">{{ 'paginationOnki'|_ }}</a></li>
|
|
{% endif %}
|
|
|
|
{% for page in range(1, favourites.lastPage) %}
|
|
<li class="page-item"><a class="page-link" href="{{ favourites.url(page) }}">{{ page }}</a></li>
|
|
{% endfor %}
|
|
|
|
{% if favourites.lastPage > favourites.currentPage %}
|
|
<li class="page-item"><a class="page-link" href="{{ favourites.nextPageUrl }}">{{ 'paginationIndiki'|_ }}</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div> |