<?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 class="welcome-block block installment-block">
	<div class="installment-block__container container">
		<div class="row">
			<div class="col-12 col-xl-6">
				<div class="block__title">
					<?=$arResult["NAME"]?>
				</div>
				<?if(isset($arResult['PICTURES'])){?>
					<div class="installment-block__logos">
						<?foreach ($arResult['PICTURES'] as $picture){?>
							<div class="installment-block__logo">
								<img src="<?= $picture['SRC'];?>" alt="Партнер" loading="lazy">
							</div>
						<?}?>
					</div>
				<?}?>
			</div>
			<div class="col-12 col-xl-6">
				<div class="installment-block__links">
					<?if(is_array($arResult["DETAIL_PICTURE"])){?>
						<div class="installment-block__image">
							<img src="<?=$arResult["DETAIL_PICTURE"]["SRC"]?>" alt="<?=$arResult["DETAIL_PICTURE"]["ALT"]?>" loading="lazy">
						</div>
					<?}?>
					<?if(isset($arResult['SOCIAL_NETWORKS'])){?>
						<div class="installment-block__info">
							<span>Оставить заявку:</span>
							<div class="installment-block__social">
								<?foreach ($arResult['SOCIAL_NETWORKS'] as $network){?>
									<a href="<?= $network['LINK_NETWORK']?>" target="_blank" class="installment-block__link">
										<?if($network['ICON_SVG']){?>
											<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
												<use xlink:href="<?= $network['ICON_SVG']['SRC']?>"></use>
											</svg>
										<?}?>
									</a>
								<?}?>
							</div>
						</div>
					<?}?>
				</div>
			</div>
		</div>
	</div>
</section>