{% extends '@Portal/base.html.twig' %}
{% block seo %}
{% if subCategory.getContentByLocale(app.request.locale).getSeoTitle() is defined and subCategory.getContentByLocale(app.request.locale).getSeoTitle() is not empty %}
{% set title = subCategory.getContentByLocale(app.request.locale).getSeoTitle() %}
{% else %}
{% set title = 'seo.body_repair.title'|trans({}, 'portal_base') %}
{% endif %}
{% if subCategory.getContentByLocale(app.request.locale).getSeoDescription() is defined and subCategory.getContentByLocale(app.request.locale).getSeoDescription() is not empty %}
{% set description = subCategory.getContentByLocale(app.request.locale).getSeoDescription() %}
{% else %}
{% set description = 'seo.body_repair.description'|trans({}, 'portal_base') %}
{% endif %}
<title>{{ title }}</title>
<meta name="description" content="{{ description }}"/>
{% endblock %}
{% block css %}
<link rel="stylesheet" href="{{ asset('bundles/portal/css/service.css') }}">
<link rel="stylesheet" href="{{ asset('bundles/portal/css/service/body-repair.css') }}">
<link rel='stylesheet' type='text/css' href='{{ asset('bundles/insurance/css/jquery.mCustomScrollbar.css') }}'/>
<link rel='stylesheet' type='text/css' href='{{ asset('bundles/core/css/bootstrap_build/carousel.css') }}'/>
<link rel='stylesheet' type='text/css' href='{{ asset('bundles/core/css/modules/gallery/lightgallery.css') }}'/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.css"
integrity="sha512-wR4oNhLBHf7smjy0K4oqzdWumd+r5/+6QO/vDda76MW5iug4PT7v86FoEkySIJft3XA0Ae6axhIvHrqwm793Nw=="
crossorigin="anonymous" referrerpolicy="no-referrer"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick-theme.css"
integrity="sha512-6lLUdeQ5uheMFbWm3CP271l14RsX1xtx+J5x2yeIDkkiBpeVTNhTqijME7GgRKKi6hCqovwCoBTlRBEC20M8Mg=="
crossorigin="anonymous" referrerpolicy="no-referrer"/>
{% endblock %}
{% block content %}
<section class="breadcrumbs__new">
<div class="container">
<ol class="vidi_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('portal_homepage') }}">
<span class="breadcrumbs__link" itemprop="name">VIDI.UA</span></a>
<meta itemprop="position" content="1"/>
</li>
<div class="arrow-bc"></div>
<li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemprop="item" href="{{ path('portal_service_body_repair') }}">
<span style="color: #ABABAB" class="breadcrumbs__link"
itemprop="name">{{ 'service.all.service'|trans({}, 'portal_base') }}</span></a>
<meta itemprop="position" content="2"/>
</li>
<div class="arrow-bc"></div>
<li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemprop="item" href="{{ path('portal_service_body_repair') }}">
<span style="color: #ABABAB" class="breadcrumbs__link"
itemprop="name">{{ 'service.body_repair.title_body_repair_new'|trans({}, 'portal_base') }}</span></a>
<meta itemprop="position" content="3"/>
</li>
<div class="arrow-bc"></div>
<li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemprop="item"
href="{{ path('portal_service_body_repair_category', { 'category': subCategory.parentCategory.url }) }}">
<span style="color: #ABABAB" class="breadcrumbs__link"
itemprop="name">{{ subCategory.parentCategory.getContentByLocale(app.request.locale).title }}</span></a>
<meta itemprop="position" content="4"/>
</li>
<div class="arrow-bc"></div>
<li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<span style="color: #ABABAB" class="breadcrumbs__link"
itemprop="name">{{ subCategory.getContentByLocale(app.request.locale).title }}</span>
<meta itemprop="position" content="5"/>
</li>
</ol>
</div>
</section>
<section class="section__list__body__repair__services">
<div class="container">
<div class="list__body__repair__services__wrapper">
<div class="list__body__repair__services__title__wrapper">
<h1 class="list__body__repair__services__title">{{ subCategory.getContentByLocale(app.request.locale).title }}</h1>
</div>
</div>
</div>
</section>
{# Калькулятор кузовний ремонт #}
{% include '@Portal/Modules/calc-body-repair.html.twig' %}
<section class="section__body__repair__wrapper">
<div class="container">
<p>{{ subCategory.getContentByLocale(app.request.locale).description|raw }}</p>
</div>
</section>
{# Контакти/Карта #}
{% include '@Portal/Modules/contacts-and-map.html.twig' %}
{# Наші переваги #}
{% include '@Portal/Modules/our-advantages.html.twig' %}
{# Слйдер акційні пропозиції кузовний сервіс #}
{% include '@Portal/Modules/slider-special-body-service.html.twig' %}
<section class="section__recommend__brand">
<div class="container">
<div class="recommend__brand__wrapper">
{% for brand in brands %}
<div class="recommend__brand__content">
<div class="recommend__brand__img"
style="background-image: url('{{ sonata_path(brand.image, 'reference') }}')"></div>
<p>{{ brand.name }}</p>
</div>
{% endfor %}
</div>
</div>
</section>
{% endblock %}
{% block pageJS %}
<!-- Facebook Pixel Code -->
<script>
!function (f, b, e, v, n, t, s) {
if (f.fbq) return;
n = f.fbq = function () {
n.callMethod ?
n.callMethod.apply(n, arguments) : n.queue.push(arguments)
};
if (!f._fbq) f._fbq = n;
n.push = n;
n.loaded = !0;
n.version = '2.0';
n.queue = [];
t = b.createElement(e);
t.async = !0;
t.src = v;
s = b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t, s)
}(window, document, 'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '846867434118875');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=846867434118875&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
<script>
app.onCustomEvent('appInit', function () {
app.loadJs("{{ asset('bundles/insurance/js/jquery.mCustomScrollbar.concat.min.js') }}");
app.loadJs("{{ asset('bundles/core/js/modules/slick/slick.js') }}", function () {
$('.promotional__propositions__slider').slick({
infinite: false,
slidesToShow: 3.5,
prevArrow: ' <img class="slick-prev" src="{{ asset('bundles/portal/img/slider-arrow-left.svg') }}">',
nextArrow: ' <img class="slick-next" src="{{ asset('bundles/portal/img/slider-arrow-right.svg') }}">',
slidesToScroll: 1,
responsive: [
{
breakpoint: 768,
settings: {
centerPadding: '30px',
slidesToShow: 2,
autoplay: true,
autoplaySpeed: 2000
}
},
{
breakpoint: 480,
settings: {
centerPadding: '30px',
slidesToShow: 1,
autoplay: true,
autoplaySpeed: 2000
}
}
]
});
});
app.loadJs("{{ asset('/bundles/core/js/modules/gallery/lightgallery.js') }}", function () {
$('.section-padding-page').lightGallery({
selector: '.body_repair-image'
});
});
app.loadJs("{{ asset('bundles/portal/js/body-repair-calc.js') }}", function () {
initRepairCalc({
initUrl: '{{ path('portal_repair_calc_init') }}',
saveUrl: '{{ path('form_repair_calc') }}',
privacyUrl: '{{ privacyUrl }}',
});
});
$('.js-repair-photo').on('submit', function (e) {
e.preventDefault();
var formData = new FormData(this);
var $form = $(this);
$('#check_privacy', $(this)).remove('error');
if (!$('.js-repair-photo .js-form-privacy input').prop('checked')) {
$('#check_privacy', $(this)).addClass('error');
return false;
}
$.ajax({
url: $form.attr('action'),
type: 'POST',
data: formData,
success: function (data) {
$('#modalSuccessMessagePopup').modal('show');
try {
dataLayer.push({
'event': 'event-to-go',
'eventAction': 'submit',
'eventCategory': 'sto-all',
'eventLabel': 'remont-kyzova'
});
} catch (e) {
console.error('dataLayer event error');
}
},
cache: false,
contentType: false,
processData: false
});
});
var button = $("#repair_photo_files");
function readURL(input) {
if (input.files.length == 0) {
return;
}
$.each(input.files, function () {
var reader = new FileReader();
reader.onload = function (e) {
var imgWr = $("<div class='review-foto-wrap'><div class='review-image'><img src=\"#\" alt=\"load image\" /></div></div>");
$('.review-image img', imgWr).attr('src', e.target.result);
button.after(imgWr);
};
reader.readAsDataURL(this);
});
}
$("#repair_photo_files").change(function () {
$('.review-foto-wrap').replaceWith('');
readURL(this);
});
});
</script>
{% endblock %}
{% block suChatJS %}
{% include '@Portal/Modules/su-chat-widget.html.twig' %}
{% endblock %}