- {% extends '@DcSite/Toyota/template.html.twig' %}
- {% block canonical %}
-     <link rel="canonical" href="{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}"/>
- {% endblock canonical %}
- {% block head %}
-     {% include '@DcSite/Modules/acessories/module/block-seo.html.twig' %}
-     <meta name="google-site-verification" content="gboUNadhhEyBztnrR7iBIU5BZf_sUV0rIuRsXq2bcH8" />
-     <link rel="stylesheet" type="text/css" href="/dist/{{ MODE }}/dcsite/toyota/css/toyotaAccessoriesPage.css?{{ VERSION }}">
- {% endblock %}
- {% block ogtagDynamic %}
-     {% include '@DcSite/Modules/acessories/module/og-tag-dnamic.htm.twig' %}
- {% endblock %}
- {% block ogtagDynamicImage %}
-     <meta property="og:image" content="{{ sonata_path(accessory.image , 'reference') }}"/>
- {% endblock %}
- {% block content %}
-     <section class="breadcrumbs__new">
-         {% set contentId = 1 %}
-         <div class="container">
-             <ol class="global_breadcrumbs__new" itemscope itemtype="https://schema.org/BreadcrumbList">
-                 <li class="marker__none" itemprop="itemListElement" itemscope
-                     itemtype="https://schema.org/ListItem">
-                     <a itemprop="item" href="{{ path('toyota_homepage') }}">
-                         <span class="breadcrumbs__link" itemprop="name">TOYOTA</span></a>
-                     <meta itemprop="position" content="{{ contentId }}"/>
-                 </li>
-                 {% for item in breadcrumbs %}
-                     {% set contentId = contentId + 1 %}
-                     <div class="arrow-bcs"> ❯</div>
-                     <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
-                         itemtype="https://schema.org/ListItem">
-                         {% if item.parent is null %}
-                             <a itemprop="item" href="{{ path('shop_accessory_catalog') }}">
-                             <span class="breadcrumbs__link"
-                                   itemprop="name">{{ item.title(app.request.locale) }}</span>
-                             </a>
-                         {% else %}
-                             <a itemprop="item" href="{{ path('shop_accessory_category', {categoryUrl:item.url}) }}">
-                             <span class="breadcrumbs__link"
-                                   itemprop="name">{{ item.title(app.request.locale) }}</span></a>
-                         {% endif %}
-                         <meta itemprop="position" content="{{ contentId }}"/>
-                     </li>
-                 {% endfor %}
-                 {% set contentId = contentId + 1 %}
-                 <div class="arrow-bcs"> ❯</div>
-                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
-                     itemtype="https://schema.org/ListItem">
-                     <span style="color: #ABABAB;" class="breadcrumbs__link" itemprop="name">{{ accessory.title }}</span>
-                     <meta itemprop="position" content="{{ contentId }}"/>
-                 </li>
-             </ol>
-         </div>
-     </section>
-     {% include '@DcSite/Modules/acessories/acessories-product.html.twig' %}
- {% endblock %}
- {% block script %}
-     <script type="application/ld+json">
-         {
-             "@context": "http://schema.org",
-             "@type": "Product",
-             "image": [
-                 "{{ sonata_path(accessory.image, 'reference') }}"
-             ],
-             "brand": {
-                 "@type": "Brand",
-                 "name": "{{ accessory.dealer.nameByLocale(app.request.locale) }}"
-             },
-             "manufacturer": {
-                 "@type": "Corporation",
-                 "name": "{{ accessory.dealer.nameByLocale(app.request.locale) }}"
-             },
-             "description": "{{ accessory.description|raw }}",
-             "sku": "{{ accessory.vendorCode }}",
-             "name": "{{ accessory.title }}",
-             "offers": {
-                 "@type": "AggregateOffer",
-                 "availability": "http://schema.org/InStock",
-                 "priceCurrency": "UAH",
-                 "price": "{{ accessory.salePricePart |number_format(2, '.', ' ') }}",
-                 "lowPrice": "{{ accessory.salePricePart |number_format(2, '.', ' ') }}",
-                 "highPrice": "{{ accessory.pricePart |number_format(2, '.', ' ') }}"},
-             "itemCondition": "http://schema.org/NewCondition",
-             "seller": {
-                 "@type": "Organization",
-                 "name": "{{ accessory.dealer.nameByLocale(app.request.locale) }}",
-                 "url": "https://shop.toyota-ua.com/"
-             },
-             "url": "{{ path('shop_accessory_page', {workId: accessory.id}) }}"
-         }
-     </script>
-     <script src="/dist/{{ MODE }}/dcsite/toyota/js/toyotaAccessoriesPage.js?{{ VERSION }}"></script>
-     <script>
-         $(() => {
-             initAccessoriesProduct({
-                 initUrl: '{{ path('base_accessories_vs') }}',
-                 addReviewUrl: '{{ path('base_review_init') }}',
-                 addAccessoryToBasketUrl: '{{ path('my_basket_add_accessory') }}',
-                 basketUrl: '{{ path('toyota_basket') }}',
-                 locale: '{{ app.request.locale }}',
-                 accessoryId: {{ accessory.id }},
-                 dealerId: {{ dealer.id }},
-                 review_count: {{ accessory.review.count }},
-                 review_avg: {{ accessory.review.avg }},
-                 accessory: {{ accessory|json_encode|raw }},
-                 secondCategory: "{{ breadcrumbs[1].titleUa }}",
-                 brand: "{{ dealer.brand }}",
-             });
-         });
-     </script>
- {% endblock %}