<?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);
?>
<? if(count($arResult['ITEMS']) > 0): ?>
	<div class="recom_models">
		<div class="title_wrapper">
			<p class="title">Другие предложения <?= $arParams['BRAND_NAME']; ?> <?= $arParams['MODEL_NAME']; ?></p>
			<?/*<a href="<?= $arResult['LINK']; ?>" class="button button-transparent">Показать все</a>*/?>
		</div>
		<? foreach($arResult['ITEMS'] AS $arItem): ?>
			<div class="other_item">
				<a href="/car/<?= $arItem['CODE']; ?>/">
					<span style="line-height: 28px;"><?= $arItem['PROPERTIES']['BRAND']['RELATED']['NAME']; ?> <?= $arItem['PROPERTIES']['MODEL']['RELATED']['NAME']; ?> <br><small style="color: #8e94a7;"><?= $arItem['PROPERTIES']['MODIFICATION']['RELATED']['PROPERTIES']['TITLE']['VALUE']; ?></small></span>
					<img class="image_recommended" src="<?= ($arItem['PROPERTIES']['IMAGE_URL']['VALUE'] != "") ? $arItem['PROPERTIES']['IMAGE_URL']['VALUE'] : "/images/no_car_photo_380.png"; ?>" alt="<?= $arItem['NAME']; ?>" loading="lazy" />
				</a>
			</div>
		<? endforeach; ?>
		<a class="catalog_show_more_button" href="<?= $arResult['LINK']; ?>" style="margin-bottom: 0px;">
			<span>Показать все</span>
		</a>
	</div>
<? endif; ?>