<?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);
?>
<div class="brand_catalogue_list">
	<h2 class="brand_catalogue_title"><?= $arParams['TITLE']; ?></h2>
	<? foreach($arResult['BRANDS'] AS $brand): ?>
		<div class="brand_catalogue_item">
			<a href="<?= $arParams['PATH']; ?><?= $brand['CODE']; ?>/<?= $arParams['QUERY_STRING']?>">
				<span><?= $brand['NAME']; ?></span>
				<img src="<?= ($brand['PREVIEW_PICTURE'] != "") ? $brand['PREVIEW_PICTURE'] : "/images/no_car_photo_380.png"; ?>" alt="<?= $brand['NAME']; ?>" loading="lazy" />
			</a>
		</div>
	<? endforeach; ?>
</div>