templates/website/page/hertiage-products.html.twig line 1
{% extends '@web/base.html.twig' %}{% set metaParams = {'title': page.metaTitle,'description': page.metaDescription,'keywords': page.metaDescription,'ogImage': page.metaImage,} %}{% block meta %}{% include '@web/parts/meta.html.twig' with metaParams %}{% endblock meta %}{% block title %}{{ page.metaTitle }}{% endblock title %}{% block body %}<script>function toggleFilters() {const filters = document.getElementById('filtersContent');filters.classList.toggle('active');}</script><section class="main-products-section"><div class="container-fluid"><div class="row"><div class="col-lg-10 m-auto"><ul class="wrapper-navigation"><li><a href="{{ path('page_heritage') }}">{{ 'Home'|trans }}</a></li><li><span>{{ 'Products'|trans }}</span></li></ul><h2 class="main-title">{{ 'Jewelry shop'|trans }}</h2><div class="row"><div class="col-lg-3"><div class="filters-wrapper"><button type="button" class="filter-toggle" onclick="toggleFilters()"><span class="filter-toggle__icon"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4 7H20" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/><path d="M7 12H17" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/><path d="M10 17H14" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg></span><span class="filter-toggle__text">{{ 'Filter'|trans }}</span></button><div class="filters-content" id="filtersContent"><form action="{{ path('page_heritage_products') }}"><div class="custom-checkbox"><h3>{{ 'Collection'|trans }}</h3><ul class="checkbox-list">{% for item in collection %}<li><input{% if collectionId == item.id %}checked{% endif %}type="radio"id="collection_{{ item.id }}"name="collection"value="{{ item.id }}"onchange="this.form.submit()"><label for="collection_{{ item.id }}">{{ item.title }}</label></li>{% endfor %}</ul></div><div class="custom-checkbox"><h3>{{ 'Category'|trans }}</h3><ul class="checkbox-list">{% for item in category %}<li><input{% if item.id == categoryId %}checked{% endif %}type="radio"id="category_{{ item.id }}"name="category"value="{{ item.id }}"onchange="this.form.submit()"><label for="category_{{ item.id }}">{{ item.title }}</label></li>{% endfor %}</ul></div></form></div></div></div><div class="col-lg-9">{% if products %}<div class="wrapper-products">{% for item in products %}<div class="wrapper-item"><div class="wrapper-image"><img src="{{ item.image }}" alt=""></div><div class="wrapper-description"><a class="title"href="{{ path('page_heritage_product_view',{'id':item.id}) }}">{{ item.title }}</a><h4>{{ item.price|number_format ~ 'դրամ'|trans }}</h4><a class="read-btn main-shop-btn"href="{{ path('page_heritage_product_view',{'id':item.id}) }}">{{ 'ADD TO CARD'|trans }}</a></div></div>{% endfor %}</div>{% else %}<div class="wrapper-empty-data"><div class="empty-box"><div class="empty-icon"><svg width="70" height="70" viewBox="0 0 24 24" fill="none"><path d="M21 21L15.5 15.5" stroke="#273869" stroke-width="1.8" stroke-linecap="round"/><circle cx="10" cy="10" r="6" stroke="#273869" stroke-width="1.8"/><path d="M10 7V10L12 12" stroke="#273869" stroke-width="1.8" stroke-linecap="round"/></svg></div><h4>{{ 'Products not found'|trans }}</h4><p>{{ 'Try changing the filter or explore other collections.'|trans }}</p></div></div>{% endif %}</div></div></div></div></div></section>{% endblock %}