<?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($arResult['ELEMENT']){?>
    <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['ELEMENT']['NAME'];?>
                    </div>
                    <?if(isset($arResult['ELEMENT']['PICTURES'])){?>
                        <div class="installment-block__logos">
                            <?foreach ($arResult['ELEMENT']['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($arResult['ELEMENT']['PREVIEW_PICTURE']){?>
                            <div class="installment-block__image">
                                <img src="<?= $arResult['ELEMENT']['PREVIEW_PICTURE']['SRC'] ?>" alt="<?= $arResult['ELEMENT']['NAME']?>" loading="lazy">
                            </div>
                        <?}?>
                        <?if(isset($arResult['ELEMENT']['SOCIAL_NETWORKS'])){?>
                            <div class="installment-block__info">
                                <span>Оставить заявку:</span>
                                <div class="installment-block__social">
                                    <?foreach ($arResult['ELEMENT']['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>
<?}?>