src/DcSiteBundle/Resources/views/LandRover/Car/in-stock-single.html.twig line 1

Open in your IDE?
  1. {% extends '@DcSite/LandRover/template.html.twig' %}
  2. {% block head %}
  3.     <title>{{ 'seo.car_in_stock.title'|trans({
  4.             '%brand%' : model.model.brand,
  5.             '%model%' : model.modelTitle(app.request.locale),
  6.             '%equipment%' : model.equipment.title,
  7.             '%year%' : model.year,
  8.             '%color%' : model.color,
  9.             '%volume%' : model.getEngineVolume(app.request.locale),
  10.             '%price%' : model.price|price,
  11.             '%dealer%' : dealer.nameByLocale(app.request.locale),
  12.         }, 'dc_landrover') }}
  13.     </title>
  14.     <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') }}"/>
  15.     {% if model.seoKeywords(app.request.locale) %}
  16.         <meta name="keywords" content="{{ model.seoKeywords(app.request.locale) }}"/>
  17.     {% endif %}
  18.     <link rel="stylesheet" type="text/css" href="/dist/{{ MODE }}/dcsite/landrover/css/landroverInStockCard.css?{{ VERSION }}">
  19. {% endblock %}
  20. {% block ogtagDynamicImage %}
  21.     <meta property="og:image" content="{{ absolute_url(media_url(model.preview, 'small_in_stock')) }}"/>
  22. {% endblock %}
  23. {% block ogtagDynamic %}
  24.     <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') }}"/>
  25.     <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') }}"/>
  26. {% endblock %}
  27. {% block socialPreview %}
  28.     <img src="{{ absolute_url(media_url(model.preview, 'small_in_stock')) }}" class="d-none">
  29. {% endblock %}
  30. {% block content %}
  31.     <section class="breadcrumbs__new">
  32.         <div class="container">
  33.             <ol class="global_breadcrumbs__new" itemscope itemtype="https://schema.org/BreadcrumbList">
  34.                 <li class="marker__none" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  35.                     <a itemprop="item" href="{{ path('landrover_homepage') }}">
  36.                         <span class="breadcrumbs__link" itemprop="name">Land Rover</span>
  37.                     </a>
  38.                     <meta itemprop="position" content="1"/>
  39.                 </li>
  40.                 <div class="arrow-bcs">
  41.                     ❯
  42.                 </div>
  43.                 <li class="marker__none" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  44.                     <a itemprop="item" href="{{ path('landrover_car_stock') }}">
  45.                         <span class="breadcrumbs__link" itemprop="name">{{ 'car_in_stock_module.base_price_in_stock'|trans({}, 'dc_base') }}</span>
  46.                     </a>
  47.                     <meta itemprop="position" content="2"/>
  48.                 </li>
  49.                 <div class="arrow-bcs">
  50.                     ❯
  51.                 </div>
  52.                 <li itemprop="item" class="marker__none" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
  53.                     <span style="color: #ABABAB;" class="breadcrumbs__link" itemprop="name">{{ model.fullName }}</span>
  54.                     <meta itemprop="position" content="3"/>
  55.                 </li>
  56.             </ol>
  57.         </div>
  58.     </section>
  59.     <main>
  60.         {% set data = {tdPath: 'jaguar_service_consultation', priceInDelivery : false} %}
  61.         {% include '@DcSite/Modules/car-in-stock/index.html.twig' with {tdPath: 'landrover_service_consultation', newCreditCalc: true} %}
  62.         <section class="landing-padding mt-3">
  63.             <div class="container">
  64.                 <div class="justify-content-center row">
  65.                     <div class="col-md-12">
  66.                         <p class="text-desc mb-0">
  67.                             {{ 'catalog.description'|trans({}, 'dc_landrover') }}
  68.                         </p>
  69.                     </div>
  70.                 </div>
  71.             </div>
  72.         </section>
  73.         {% include '@DcSite/Modules/buy-instock-car-popup.html.twig' with {actPath: 'form_buy_in_stock', model: model}  %}
  74.     </main>
  75.     {% include '@DcSite/Modules/call-me-popup.html.twig' with  {
  76.         'route': path('form_call_me', {'formType': 4}),
  77.     } %}
  78.     {% include '@DcSite/Modules/sps-popup-credit.html.twig'  with  {'homePage' :  path('landrover_homepage') } %}
  79. {% endblock content %}
  80. {% block script %}
  81.     <script src="/dist/{{ MODE }}/dcsite/landrover/js/landroverInStockCard.js?{{ VERSION }}"></script>
  82.     <script type="application/ld+json">
  83.         {{ structuredCarData|raw }}
  84.     </script>
  85.     <script>
  86.         $(() => {
  87.             window.initCredit({
  88.                 cretidTpl: '{{ path('dc_credit_load_tpl')  }}',
  89.                 initUrl: '{{ path('dc_credit_init') }}',
  90.                 brandUrl: '{{ path('dc_credit_load_brands') }}',
  91.                 byDealerUrl: '{{ path('dc_credit_init_by_dealer') }}',
  92.                 programsUrl: '{{ path('dc_credit_programs') }}',
  93.                 saveUrl: '{{ path('dc_credit_save') }}',
  94.                 privacyUrl: '{{ privacyUrl }}',
  95.                 disableCarChange: true,
  96.                 dealer: {{ model.vehicle.dealer.id }},
  97.                 carId: {{ model.vehicle.id }},
  98.                 variationId: {{ model.vehicleItemId }}
  99.             });
  100.             window.initTradeIn({
  101.                 initUrl: '{{ path('dc_ti_init') }}',
  102.                 dealer: {{ model.vehicle.dealer.id }},
  103.                 carId: {{ model.vehicle.id }},
  104.                 variationId: {{ model.vehicleItemId }},
  105.                 agreementUrl: '{{ privacyUrl }}',
  106.             });
  107.             window.initCasco({
  108.                 initUrl : '{{ path('base_casco_init') }}',
  109.                 initByDealerUrl : '{{ path('base_casco_init_by_dealer') }}',
  110.                 optionsUrl : '{{ path('base_casco_options') }}',
  111.                 formUrl : '{{ path('base_casco_save_form') }}',
  112.                 privacyUrl: '{{ privacyUrl }}',
  113.                 dealer: {{ model.vehicle.dealer.id }},
  114.                 carId: {{ model.vehicle.id }},
  115.                 variationId: {{ model.vehicleItemId }},
  116.                 disableCarChange: true
  117.             });
  118.             const obj = new dcsite.landroverInStockCard.CreditInStock();
  119.             obj.initCreditCalcInStock({
  120.                 getVehicleBrandUrl: '{{ path('dc_credit_find_brand') }}',
  121.                 getVehicleModelUrl: '{{ path('dc_credit_find_model') }}',
  122.                 getVehicleEquipmentUrl: '{{ path('dc_credit_find_equipment') }}',
  123.                 getVehicleVariationUrl: '{{ path('dc_credit_find_variation') }}',
  124.                 getVehicleUrl: '{{ path('dc_credit_get_vehicle') }}',
  125.                 initCreditCalcUrl: '{{ path('dc_finance_credit_init') }}',
  126.                 initTradeInUrl: '{{ path('dc_ti_init') }}',
  127.                 agreementUrl: '{{ path('automarket_personal_data_agreement') }}',
  128.                 loadListDocumentUrl: '{{ path('dc_credit_load_documents') }}',
  129.                 schedulePaymentUrl: '{{ path('dc_credit_load_schedule_credit_pdf') }}',
  130.                 getVehiclesByWalletUrl: '{{ path('dc_finance_credit_by_price') }}',
  131.                 getVehiclesWithMinPriceUrl: '{{ path('dc_finance_credit_by_price_min') }}',
  132.                 getCrmUUIDUrl: '{{ path('dc_finance_crm_lead_by_uuid') }}',
  133.                 getCrmDataUrl: '{{ path('dc_finance_crm_create_lead') }}',
  134.                 sendLeadUrl: '{{ path('dc_credit_save') }}',
  135.                 ks: '{{ 'catalog.k_s'|trans({}, 'portal_base') }}',
  136.                 enginePower: '{{ 'cars.engine'|trans({}, 'portal_base') }}',
  137.                 translate_month: '{{ 'finance.credit.credit_month_short'|trans({}, 'portal_base') }}',
  138.                 translate_under: '{{ 'finance.credit.credit_under'|trans({}, 'portal_base') }}',
  139.                 translate_first_payment: '{{ 'form.first_give'|trans({}, 'portal_base') }}',
  140.                 translate_uah: ' грн',
  141.                 translate_not_enough_money: '{{ 'finance.credit.not_enough_money'|trans({}, 'portal_base') }}',
  142.                 translate_not_estimate_vehicle: '{{ 'finance.credit.not_estimate_vehicle'|trans({}, 'portal_base') }}',
  143.                 translate_min_first_payment_for_car: '{{ 'finance.credit.min_first_payment_for_car'|trans({}, 'portal_base') }}',
  144.                 translate_estimate_vehicle_more_1: '{{ 'finance.credit.translate_estimate_vehicle_more_1'|trans({}, 'portal_base') }}',
  145.                 translate_estimate_vehicle_more_2: '{{ 'finance.credit.translate_estimate_vehicle_more_2'|trans({}, 'portal_base') }}',
  146.                 translate_unfortunately_not_enough: '{{ 'finance.credit.unfortunately_not_enough'|trans({}, 'portal_base') }}',
  147.                 translate_price_of_your_car: '{{ 'finance.credit.price_of_your_car'|trans({}, 'portal_base') }}',
  148.                 translate_min: '{{ 'finance.credit.min'|trans({}, 'portal_base') }}',
  149.                 translate_min_first_payment: '{{ 'finance.credit.min_first_payment'|trans({}, 'portal_base') }}',
  150.                 translate_min_month_payment: '{{ 'finance.credit.min_month_payment'|trans({}, 'portal_base') }}',
  151.                 translate_month_term_credit: '{{ 'finance.credit.month_term_credit'|trans({}, 'portal_base') }}',
  152.                 continue_first_least: '{{ 'finance.credit.continue_first_least'|trans({}, 'portal_base') }}',
  153.                 translate_term_months: '{{ 'finance.credit.term_months'|trans({}, 'portal_base') }}',
  154.                 translate_term_months_short: '{{ 'finance.credit.term_months_short'|trans({}, 'portal_base') }}',
  155.                 translate_price_from: '{{ 'finance.credit.price_from'|trans({}, 'portal_base') }}',
  156.                 privacyUrl: '{{ privacyUrl }}',
  157.                 name: '{{ app.user.name | default(null) }}',
  158.                 phone: '{{ app.user.phone | default(null) }}',
  159.                 unsetUsedTypeVehicle: true,
  160.                 unsetFlow2: true,
  161.                 newCarUrl: 'landrover_card_car',
  162.                 usedCarUrl: '',
  163.                 brand_id: {{model.brand.id }},
  164.                 dealer_id: {{model.dealer.id}},
  165.                 model_id: {{ model.model.id }},
  166.                 inStockId: {{ model.id }},
  167.                 vehicleItemId: {{ model.vehicleItemId }},
  168.                 vehicleId: '{{ model.vehicle.id }}'
  169.             });
  170.         });
  171.     </script>
  172. {% endblock %}