2024-05-14 20:42:24 +03:00

229 lines
7.4 KiB
PHP

<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<?
$title = $arResult['NAME'];
$rules_title = "Условия лизинга ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])."";
if($arResult['BRAND'] !== null)
{
if($arResult['TYPE'] !== null)
{
$title = "<mark>".$arResult['NAME']."</mark> в лизинг для юридических лиц и ИП";
$rules_title = "Условия лизинга ".mb_strtolower($arResult['TYPE_GENITIVE'])." ".$arResult['BRAND_NAME'];
}
else
{
$title = $arParams['SHORT_TITLE']." <mark>".$arResult['NAME']."</mark> в лизинг для юридических лиц и ИП";
$rules_title = "Условия лизинга ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." ".mb_strtolower($arResult['TYPE_GENITIVE']);
}
}
elseif($arResult['TYPE'] !== null)
{
$title = "<mark>".$arResult['NAME']."</mark> в лизинг для юридических лиц и ИП";
$rules_title = "Условия лизинга ".mb_strtolower($arResult['TYPE_GENITIVE']);
}
else
{
$title = "<mark>".$arResult['NAME']."</mark> ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." для юридических лиц и ИП";
$rules_title = "Условия лизинга ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE']);
}
?>
<section data-page="services">
<div class="container">
<div class="content_header">
<div>
<h1 class="section_title"><?= $title; ?></h1>
</div>
<img src="<?= $arResult['BANNER']; ?>" alt="<?= strip_tags($title); ?>">
</div>
</div>
</section>
<? if(is_array($arResult['PROPERTIES']['BENEFITS']['~VALUE']) && count($arResult['PROPERTIES']['BENEFITS']['~VALUE']) > 0): ?>
<section class="gray">
<div class="container">
<div class="leasing_offers_list leasing_offers_list--no_margin">
<? foreach($arResult['PROPERTIES']['BENEFITS']['~VALUE'] AS $benefits): ?>
<div class="offer_item no_padding">
<?= $benefits['TEXT']; ?>
</div>
<? endforeach; ?>
</div>
</div>
</section>
<? endif; ?>
<section class="blue">
<div class="container">
<div class="leasing_offers_list leasing_offers_list--white">
<? if(is_array($arResult['PROPERTIES']['POSSIBILITIES']['~VALUE']) && count($arResult['PROPERTIES']['POSSIBILITIES']['~VALUE']) > 0): ?>
<? foreach($arResult['PROPERTIES']['POSSIBILITIES']['~VALUE'] AS $possibilities): ?>
<div class="offer_item no_padding">
<?= $possibilities['TEXT']; ?>
</div>
<? endforeach; ?>
<? endif; ?>
<div class="offer_item no_padding">
<a href="#order" class="button">Отправить заявку</a>
</div>
</div>
</div>
</section>
<? if(!empty($arResult['DETAIL_TEXT'])): ?>
<? if(isset($arResult['TYPE']) && isset(($arResult['BRAND']))): ?>
<section>
<div class="container">
<h2 class="h2">Преимущества <?= mb_strtolower($arResult['TYPE_GENITIVE']); ?> <?= $arResult['BRAND_NAME']; ?></h2>
<div class="content_columns">
<div class="column">
<?= $arResult['DETAIL_TEXT']; ?>
</div>
<div class="column">
<img src="<?= $arResult['DETAIL_PICTURE']; ?>" alt="<?= $arResult['NAME']; ?>"/>
</div>
</div>
</div>
</section>
<? endif; ?>
<? endif; ?>
<section data-page="aggregation">
<?
$APPLICATION->IncludeComponent(
"evolution:programs.aggregations.offers.list",
"",
[
"IDS" => $arResult['PROPERTIES']['OFFERS']['VALUE'],
]
);
?>
<? if(isset($arResult['BRAND']) && !isset($arResult['TYPE'])): ?>
<?
$APPLICATION->IncludeComponent(
"evolution:programs.aggregations.types",
"",
[
"IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'],
"TITLE" => "Виды ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." ".$arResult['BRAND_NAME']." в лизинг",
"IBLOCK_ID_RULES" => $arParams['IBLOCK_ID_RULES'],
"BRAND" => $arResult['BRAND'],
"BRAND_SLUG" => $arResult['BRAND_SLUG'],
"PATH" => "/programs/".$arParams['PATH']."/",
]
);
?>
<? endif; ?>
<? if(is_array($arResult['PROPERTIES']['RULES']['~VALUE']) && count($arResult['PROPERTIES']['RULES']['~VALUE']) > 0): ?>
<div class="container">
<h2 class="h2"><?= $rules_title; ?></h2>
<div class="info_list">
<? foreach($arResult['PROPERTIES']['RULES']['~VALUE'] AS $rules): ?>
<?= $rules['TEXT']; ?>
<? endforeach; ?>
</div>
</div>
<? endif; ?>
<?
$APPLICATION->IncludeComponent(
"evolution:programs.aggregations.types",
"",
[
"IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION'],
"TITLE" => "Виды ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." в лизинг",
"PATH" => "/programs/".$arParams['PATH']."/",
]
);
?>
<?
$APPLICATION->IncludeComponent(
"evolution:programs.aggregations.brands.list",
"",
[
"IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION_BRANDS'],
"TITLE" => isset($arResult['TYPE'])
? (isset($arResult['BRAND']) ? "Рекомендуем производителей ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." в лизинг" : "Выберите производителя для просмотра каталога ".mb_strtolower($arResult['TYPE_GENITIVE']))
: "Бренды ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." в лизинг",
"TYPE" => isset($arResult['BRAND']) ? null : $arResult['TYPE'],
"PATH" => "/programs/".$arParams['PATH']."/",
]
);
?>
<? $APPLICATION->IncludeComponent(
"evolution:calculator",
"",
Array(
"car_price" => 2500000,
"initial_payment" => 20,
"lease_period" => 36,
"redemption_payment" => 5,
"CAR_PRICE_MIN" => 500000,
"CAR_PRICE_MAX" => 30000000,
"INITIAL_PAYMENT_MIN" => 5,
"INITIAL_PAYMENT_MAX" => 50,
"LEASE_PERIOD_MIN" => 13,
"LEASE_PERIOD_MAX" => 60,
"REDEMPTION_PAYMENT_MIN" => 1,
"REDEMPTION_PAYMENT_MAX" => 5,
"TITLE" =>
isset($arResult['TYPE']) && isset($arResult['BRAND'])
? "Калькулятор лизинга ".mb_strtolower($arResult['TYPE_GENITIVE'])." ".$arResult['BRAND_NAME']
: (isset($arResult['BRAND'])
? "Калькулятор лизинга ".mb_strtolower($arParams['SHORT_TITLE_GENITIVE'])." ".$arResult['BRAND_NAME']
: "Калькулятор расчета лизинга"
),
)
); ?>
<? if(!empty($arResult['DETAIL_TEXT'])): ?>
<? if(!isset($arResult['TYPE']) || !isset(($arResult['BRAND']))): ?>
<section>
<div class="container">
<?/*
<h2 class="h2">Преимущества <?= mb_strtolower($arResult['TYPE_GENITIVE']); ?> <?= $arResult['BRAND_NAME']; ?></h2>
*/?>
<h2 class="h2"><?= $arResult['PROPERTIES']['MARKETING_TEXT_TITLE']['VALUE']; ?></h2>
<div class="content_columns">
<div class="column">
<?= $arResult['DETAIL_TEXT']; ?>
</div>
<? if(!empty($arResult['DETAIL_PICTURE'])): ?>
<div class="column">
<img src="<?= $arResult['DETAIL_PICTURE']; ?>" alt="<?= $arResult['NAME']; ?>"/>
</div>
<? endif; ?>
</div>
</div>
</section>
<? endif; ?>
<? endif; ?>
<?
$APPLICATION->IncludeComponent(
"evolution:form.leasing",
"",
[],
);
?>