<?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);
?>
<pre><?//print_r($arResult);?></pre>
<pre><?//print_r($arParams);?></pre>
<?if ($arParams["guid"] & $arParams["name"]) {?>
<section class="gray">
				<div class="container">
					<h2><span style="color: #1c01a9;"><?=$arParams["name"]?> <?=$arParams["family"]?></span></h2>
					<p><b><?=$arParams["post"]?></b></p>
					<p><?=$arParams["dept"]?></p>
					<div class="leasing_offers_list">
					<div class="offer_item_boston">		
						<?if($arParams["image"]){?>
								<img src="data:image/jpeg;base64,<?=$arParams["image"]?>" alt="" />
						<?}else{?>
								<img src="/vizitka/img/facelogo.png" alt="" />
						<?}?>
					</div>				
					<div class="offer_item">
						
								<p>
								<b>Свяжитесь со мной</b>
								</p>
								
									<p>
										<?if($arParams["mob"]){?><a href="tel:+<?=$arParams["mobcl"];?>"><?=$arParams["mob"];?>  </a><?}?>
										<?if(($arParams["whatsapp"]=true) && ($arParams["mob"])){?><a href="https://wa.me/<?=$arParams["mobcl"];?>" target="_blank"><img class="messenger" src="./img/WhatsApp.svg" /></a><?}?>
										<?if($arParams["telegram"]){?><a href="https://t.me/<?=$arParams["telegram"];?>" target="_blank"><img class="messenger" src="./img/Telegram.svg" /></a><?}?>
									</p>
									<?if($arParams["tel"]){?><p><a href="tel:+<?=$arParams["telcl"];?>"><?=$arParams["tel"];?></a> <?if($arParams["teladd"]){?>доб. <?=$arParams["teladd"];?></p><?}}?>
									<?if($arParams["mail"]){?><p><a href="mailto:<?=$arParams["mail"];?>"><?=$arParams["mail"];?></a></p><?}?>
									<?if($arParams["address"]){?><p><?=$arParams["address"];?></p><?}?>
									
									<a href=<?=$arParams["vcffile"]?>>
										<p class="vcfbutton">Скачать визитку на телефон .vcf</p>
									</a>
									<a href=<?=$arParams["vcffilewin"]?>>
										<p class="vcfbutton">Скачать визитку на компьютер .vcf</p>
									</a>
							</div>
							<div class="offer_item">
								<p>
								<b>Сохраните контакт на телефон</b>
								</p>
								<img class="qrimage" src="./tmp/<?=$arParams["guid"]?>.png" />
							</div>
		</div></div>
			</section>
	<?} else {?>
		<section class="gray">
				<div class="container">
					<div class="leasing_offers_list">
							<div class="offer_item">
								<p style="font-size: 2rem; line-height: 2rem;">
									<b>Упс! Такой<br />визитки<br />не существует</b>
								</p>
							</div>
							<div class="offer_item">
								<p style="font-size: 2rem; line-height: 2rem;">
									<b>Просто позвоните<br />по номеру<br /><a href="tel:88003337575">8&nbsp;800&nbsp;333&nbsp;75&nbsp;75</a></b>
								</p>
							</div>
							<div class="offer_item">
								<p style="font-size: 2rem; line-height: 2rem;">
									<b>или отправьте<br />заявку на лизинг<br />из формы ниже</b>
								</p>
							</div>
					</div>
				</div>
		</section>
	
	<?}?>