<?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>
	<div class="container">
		<div class="special_detail">

			<div class="leasing_offer">
					<div id="leasing_slider">
						<div class="leasing_list swiped" style="flex-wrap: wrap;">
							<? if(is_array($arResult)): ?>
								<? for($i = 0; $i < count($arResult); $i++): ?>
									<? $car = $arResult[$i]; ?>
									<div class="leasing_item" id="special_offers_car_banner_<?= $car['ID']; ?>">
										<a class="item_wrapper car_top_card" data-id="<?= $i; ?>" style="cursor: pointer;">
											<img src="<?= $car['PREVIEW_PICTURE']; ?>" alt="<?= $car['NAME']; ?>" />
											<span class="leasing_model"><?= $car['NAME']; ?></span>
											<span class="leasing_desc"><?= $car['PROPERTIES']['TAGLINE']['VALUE']; ?></span>
											<? if(!isset($_GET['advertise']) && $car['PROPERTIES']['ADVERTISING_ERIR']['VALUE']): ?>
												<div class="advblock adv_button_news">Реклама
													<div class="adv_content">ООО "ЛК Эволюция"</div>
													<div class="adv_content">ИНН 9724016636</div>
													<div class="adv_content">erid: <?= $car['PROPERTIES']['ADVERTISING_ERIR']['VALUE']; ?></div>
												</div>
											<? endif; ?>
										</a>
									</div>
								<? endfor; ?>
							<? endif; ?>
						</div>
					</div>
			</div>
		</div>
	</div>
</section>
