<?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);
?>
<section data-page="leasing_special">
	<div class="container">
		<h1 class="section_title"><?= $arResult['NAME']; ?></h1>
		<?
			$APPLICATION->IncludeComponent(
				"evolution:programs.offers.banners",
				"",
				Array(
					"BANNERS" => $arResult['PROPERTIES']['SPECIAL_OFFERS_BANNERS']['VALUE'], 
					"PAGINATION" => "N",
				)
			);
		?>
	</div>
</section>

<div class="clear"></div>
<? if(count($arResult['PROPERTIES']['OFFERS']['~VALUE']) > 0): ?>
	<section class="gray">
		<div class="container">
			<h2>Лизинговые предложения</h2>
			<div class="leasing_offers_list">
				<? foreach($arResult['PROPERTIES']['OFFERS']['~VALUE'] AS $OFFER): ?>
					<div class="offer_item">
						<?= $OFFER['TEXT']; ?>
					</div>
				<? endforeach; ?>
			</div>
		</div>
	</section>
<? endif; ?>
<? if($arResult['PROPERTIES']['CATALOG']['VALUE_XML_ID'] != ""): ?>
	<?
		$APPLICATION->IncludeComponent(
			"evolution:catalog",
			isset($_REQUEST['ajax']) ? "ajax" : "",
			array(
				"PAGINATION" => "Y",
				"leasing_program" => $arResult['PROPERTIES']['CATALOG']['VALUE_XML_ID'], 
				//"section_code" => $arResult['DETAIL_PAGE_URL'], 
				"top_banners" => false, 
				"FILTER_SMALL" => true, 
				"BRAND" => $_REQUEST['BRAND'], 
				"MODEL" => $_REQUEST['MODEL'], 
				"MODIFICATION" => $_REQUEST['MODIFICATION'], 
				"DRIVE" => $_REQUEST['DRIVE'], 
				"BODY" => $_REQUEST['BODY'], 
				"GEAR" => $_REQUEST['GEAR'], 
				"ENGINE_FUEL" => $_REQUEST['ENGINE_FUEL'], 
				"ENGINE_POWER_FROM" => $_REQUEST['ENGINE_POWER_FROM'], 
				"ENGINE_POWER_TO" => $_REQUEST['ENGINE_POWER_TO'], 
				"ENGINE_VOLUME_FROM" => $_REQUEST['ENGINE_VOLUME_FROM'], 
				"ENGINE_VOLUME_TO" => $_REQUEST['ENGINE_VOLUME_TO'], 
				"SORT" => $_REQUEST['SORT'], 
				"PATH" => $arResult['DETAIL_PAGE_URL'], 
				"PROGRAM" => $arResult['PROPERTIES']['CATALOG']['VALUE_XML_ID'], 
			)
		);
	?>
<? endif; ?>
<?
//	$APPLICATION->IncludeComponent(
//		"evolution:programs.offers",
//		"",
//		Array()
//	);
?>

    