{% extends '@DcSite/LandRover/template.html.twig' %}
{% block head %}
<title>{{ 'seo.car_in_stock.title'|trans({
'%brand%' : model.model.brand,
'%model%' : model.modelTitle(app.request.locale),
'%equipment%' : model.equipment.title,
'%year%' : model.year,
'%color%' : model.color,
'%volume%' : model.getEngineVolume(app.request.locale),
'%price%' : model.price|price,
'%dealer%' : dealer.nameByLocale(app.request.locale),
}, 'dc_landrover') }}
</title>
<meta name="description" content="{{ 'seo.car_in_stock.description'|trans({ '%brand%' : model.model.brand, '%model%' : model.modelTitle(app.request.locale), '%equipment%' : model.equipment.title, '%fuelType%' : model.fuelTypeName(app.request.locale), '%volume%' : model.getEngineVolume(app.request.locale), '%year%' : model.year, '%color%' : model.color, '%price%' : model.price|price, '%dealer%' : dealer.nameByLocale(app.request.locale), }, 'dc_landrover') }}"/>
{% if model.seoKeywords(app.request.locale) %}
<meta name="keywords" content="{{ model.seoKeywords(app.request.locale) }}"/>
{% endif %}
<link rel="stylesheet" type="text/css" href="/dist/{{ MODE }}/dcsite/landrover/css/landroverInStockCard.css?{{ VERSION }}">
{% endblock %}
{% block ogtagDynamicImage %}
<meta property="og:image" content="{{ absolute_url(media_url(model.preview, 'small_in_stock')) }}"/>
{% endblock %}
{% block ogtagDynamic %}
<meta property="og:title" content="{{ 'seo.car_in_stock.title'|trans({ '%brand%' : model.model.brand, '%model%' : model.modelTitle(app.request.locale), '%equipment%' : model.equipment.title, '%year%' : model.year, '%color%' : model.color, '%volume%' : model.getEngineVolume(app.request.locale), '%price%' : model.price|price, '%dealer%' : dealer.nameByLocale(app.request.locale), }, 'dc_landrover') }}"/>
<meta property="og:description" content="{{ 'seo.car_in_stock.description'|trans({ '%brand%' : model.model.brand, '%model%' : model.modelTitle(app.request.locale), '%equipment%' : model.equipment.title, '%fuelType%' : model.fuelTypeName(app.request.locale), '%volume%' : model.getEngineVolume(app.request.locale), '%year%' : model.year, '%color%' : model.color, '%price%' : model.price|price, '%dealer%' : dealer.nameByLocale(app.request.locale), }, 'dc_landrover') }}"/>
{% endblock %}
{% block socialPreview %}
<img src="{{ absolute_url(media_url(model.preview, 'small_in_stock')) }}" class="d-none">
{% endblock %}
{% block content %}
<section class="breadcrumbs__new">
<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('landrover_homepage') }}">
<span class="breadcrumbs__link" itemprop="name">Land Rover</span>
</a>
<meta itemprop="position" content="1"/>
</li>
<div class="arrow-bcs">
❯
</div>
<li class="marker__none" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a itemprop="item" href="{{ path('landrover_car_stock') }}">
<span class="breadcrumbs__link" itemprop="name">{{ 'car_in_stock_module.base_price_in_stock'|trans({}, 'dc_base') }}</span>
</a>
<meta itemprop="position" content="2"/>
</li>
<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">{{ model.fullName }}</span>
<meta itemprop="position" content="3"/>
</li>
</ol>
</div>
</section>
<main>
{% set data = {tdPath: 'jaguar_service_consultation', priceInDelivery : false} %}
{% include '@DcSite/Modules/car-in-stock/index.html.twig' with {tdPath: 'landrover_service_consultation', newCreditCalc: true} %}
<section class="landing-padding mt-3">
<div class="container">
<div class="justify-content-center row">
<div class="col-md-12">
<p class="text-desc mb-0">
{{ 'catalog.description'|trans({}, 'dc_landrover') }}
</p>
</div>
</div>
</div>
</section>
{% include '@DcSite/Modules/buy-instock-car-popup.html.twig' with {actPath: 'form_buy_in_stock', model: model} %}
</main>
{% include '@DcSite/Modules/call-me-popup.html.twig' with {
'route': path('form_call_me', {'formType': 4}),
} %}
{% include '@DcSite/Modules/sps-popup-credit.html.twig' with {'homePage' : path('landrover_homepage') } %}
{% endblock content %}
{% block script %}
<script src="/dist/{{ MODE }}/dcsite/landrover/js/landroverInStockCard.js?{{ VERSION }}"></script>
<script type="application/ld+json">
{{ structuredCarData|raw }}
</script>
<script>
$(() => {
window.initCredit({
cretidTpl: '{{ path('dc_credit_load_tpl') }}',
initUrl: '{{ path('dc_credit_init') }}',
brandUrl: '{{ path('dc_credit_load_brands') }}',
byDealerUrl: '{{ path('dc_credit_init_by_dealer') }}',
programsUrl: '{{ path('dc_credit_programs') }}',
saveUrl: '{{ path('dc_credit_save') }}',
privacyUrl: '{{ privacyUrl }}',
disableCarChange: true,
dealer: {{ model.vehicle.dealer.id }},
carId: {{ model.vehicle.id }},
variationId: {{ model.vehicleItemId }}
});
window.initTradeIn({
initUrl: '{{ path('dc_ti_init') }}',
dealer: {{ model.vehicle.dealer.id }},
carId: {{ model.vehicle.id }},
variationId: {{ model.vehicleItemId }},
agreementUrl: '{{ privacyUrl }}',
});
window.initCasco({
initUrl : '{{ path('base_casco_init') }}',
initByDealerUrl : '{{ path('base_casco_init_by_dealer') }}',
optionsUrl : '{{ path('base_casco_options') }}',
formUrl : '{{ path('base_casco_save_form') }}',
privacyUrl: '{{ privacyUrl }}',
dealer: {{ model.vehicle.dealer.id }},
carId: {{ model.vehicle.id }},
variationId: {{ model.vehicleItemId }},
disableCarChange: true
});
const obj = new dcsite.landroverInStockCard.CreditInStock();
obj.initCreditCalcInStock({
getVehicleBrandUrl: '{{ path('dc_credit_find_brand') }}',
getVehicleModelUrl: '{{ path('dc_credit_find_model') }}',
getVehicleEquipmentUrl: '{{ path('dc_credit_find_equipment') }}',
getVehicleVariationUrl: '{{ path('dc_credit_find_variation') }}',
getVehicleUrl: '{{ path('dc_credit_get_vehicle') }}',
initCreditCalcUrl: '{{ path('dc_finance_credit_init') }}',
initTradeInUrl: '{{ path('dc_ti_init') }}',
agreementUrl: '{{ path('automarket_personal_data_agreement') }}',
loadListDocumentUrl: '{{ path('dc_credit_load_documents') }}',
schedulePaymentUrl: '{{ path('dc_credit_load_schedule_credit_pdf') }}',
getVehiclesByWalletUrl: '{{ path('dc_finance_credit_by_price') }}',
getVehiclesWithMinPriceUrl: '{{ path('dc_finance_credit_by_price_min') }}',
getCrmUUIDUrl: '{{ path('dc_finance_crm_lead_by_uuid') }}',
getCrmDataUrl: '{{ path('dc_finance_crm_create_lead') }}',
sendLeadUrl: '{{ path('dc_credit_save') }}',
ks: '{{ 'catalog.k_s'|trans({}, 'portal_base') }}',
enginePower: '{{ 'cars.engine'|trans({}, 'portal_base') }}',
translate_month: '{{ 'finance.credit.credit_month_short'|trans({}, 'portal_base') }}',
translate_under: '{{ 'finance.credit.credit_under'|trans({}, 'portal_base') }}',
translate_first_payment: '{{ 'form.first_give'|trans({}, 'portal_base') }}',
translate_uah: ' грн',
translate_not_enough_money: '{{ 'finance.credit.not_enough_money'|trans({}, 'portal_base') }}',
translate_not_estimate_vehicle: '{{ 'finance.credit.not_estimate_vehicle'|trans({}, 'portal_base') }}',
translate_min_first_payment_for_car: '{{ 'finance.credit.min_first_payment_for_car'|trans({}, 'portal_base') }}',
translate_estimate_vehicle_more_1: '{{ 'finance.credit.translate_estimate_vehicle_more_1'|trans({}, 'portal_base') }}',
translate_estimate_vehicle_more_2: '{{ 'finance.credit.translate_estimate_vehicle_more_2'|trans({}, 'portal_base') }}',
translate_unfortunately_not_enough: '{{ 'finance.credit.unfortunately_not_enough'|trans({}, 'portal_base') }}',
translate_price_of_your_car: '{{ 'finance.credit.price_of_your_car'|trans({}, 'portal_base') }}',
translate_min: '{{ 'finance.credit.min'|trans({}, 'portal_base') }}',
translate_min_first_payment: '{{ 'finance.credit.min_first_payment'|trans({}, 'portal_base') }}',
translate_min_month_payment: '{{ 'finance.credit.min_month_payment'|trans({}, 'portal_base') }}',
translate_month_term_credit: '{{ 'finance.credit.month_term_credit'|trans({}, 'portal_base') }}',
continue_first_least: '{{ 'finance.credit.continue_first_least'|trans({}, 'portal_base') }}',
translate_term_months: '{{ 'finance.credit.term_months'|trans({}, 'portal_base') }}',
translate_term_months_short: '{{ 'finance.credit.term_months_short'|trans({}, 'portal_base') }}',
translate_price_from: '{{ 'finance.credit.price_from'|trans({}, 'portal_base') }}',
privacyUrl: '{{ privacyUrl }}',
name: '{{ app.user.name | default(null) }}',
phone: '{{ app.user.phone | default(null) }}',
unsetUsedTypeVehicle: true,
unsetFlow2: true,
newCarUrl: 'landrover_card_car',
usedCarUrl: '',
brand_id: {{model.brand.id }},
dealer_id: {{model.dealer.id}},
model_id: {{ model.model.id }},
inStockId: {{ model.id }},
vehicleItemId: {{ model.vehicleItemId }},
vehicleId: '{{ model.vehicle.id }}'
});
});
</script>
{% endblock %}