<?php

if(get_theme_mod('appoi_disable') != 'on' ){ ?>
	<?php 
		if( get_theme_mod('appoinmentsection_toppadding',true) ) {
            $appoinmentsection_toppadding = 'padding-top:'.esc_attr(get_theme_mod('appoinmentsection_toppadding')).';';
        }
        if( get_theme_mod('appoinmentsection_bottompadding',true) ) {
            $appoinmentsection_bottompadding = 'padding-bottom:'.esc_attr(get_theme_mod('appoinmentsection_bottompadding')).';';
        }
        if( get_theme_mod('app_Opacity',true) ) {
	        $app_Opacity = 'opacity:'.esc_attr(get_theme_mod('app_Opacity')).';';
	      }

	    if( get_theme_mod('app_Opacityrhs',true) ) {
	        $app_Opacityrhs = 'opacity:'.esc_attr(get_theme_mod('app_Opacityrhs')).';';
	      }

	?>
	<div id="appointment" style="<?php echo esc_attr($appoinmentsection_toppadding); ?>" "<?php echo esc_attr($appoinmentsection_bottompadding); ?>">	
		<div class="app-g"></div>
		<div class="container">
			<div class="app-inn">	
				<?php
					$ptitle = get_theme_mod('ptitle', 'Phone : ');
					$infphtxt = get_theme_mod('infphtxt', '+000 111 222');
					
					$etitle = get_theme_mod('etitle', 'Email : ');
					$infemiltxt = get_theme_mod('infemiltxt', 'info@yourmail.com');

					$addtitle = get_theme_mod('addtitle', 'Address : ');
					$inftxt = get_theme_mod('inftxt', 'Delanson, New York, 12053');

					$appdbx_title = get_theme_mod('appdbxtitle', 'Empowering Communication, One Conversation at a Time');
				$appdbx_txt = get_theme_mod('appdbxtxt', 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected . humour, or randomised words which do not look .');
					
				?>
				<div class="row mr-0">	
					<div class="col-lg-6 col-md-6 app-form">
						<?php
							$appform_maintitle = get_theme_mod('appform_maintitle', 'Inquiry with us');
							$luzuk_inquiry_shortcode = get_theme_mod('luzuk_inquiry_shortcode', '[Add Form shortcode]');
						?>
						<div class="fm-box" >	
							<div class="ht-inquiry-member-wrap" >
								<?php if($appform_maintitle ){ ?>
									<div class="app-title">
							          <h2><?php echo ($appform_maintitle);  ?></h2> 
							      </div> 
						        <?php }?>
													
								<?php echo do_shortcode($luzuk_inquiry_shortcode);?>
								<div class="fm-img">
									<?php 
										$appfm_image = get_theme_mod('appfm_image');
										if(!empty($appfm_image)){
											echo '<img src="'.esc_url($appfm_image).'" class="img-responsive secondry-bg-img" />';
										}else{
											echo '<img src="'.get_template_directory_uri().'/images/app-form.jpg" class="img-responsive" />';
										}
									?>
								</div>
							</div>
						</div>
						<div class="clearfix"></div>
					</div>
					<div class="col-lg-6 col-md-6 app-detail">
						<div class="app-detailbxinn">
							<div class="textbx">
								<h3><?php echo ($appdbx_title); ?></h3>
								<p><?php echo ($appdbx_txt); ?></p>
							</div>
							<div class="app-dbx">
								<?php if(!empty(  $infphtxt || $ptitle)){ ?>
								<div class="info-txt f-box">
									<div class="row mr-0">
										<div class="col-lg-1 col-1 pd-0 ">
											<div class="icnbx">
												<i class="fa fa-phone"></i>
											</div>

										</div>
										<div class="col-lg-11 col-11 infoinnbx">
											<li><a href="tel:<?php echo $infphtxt;?>"><span> <?php echo ($ptitle);  ?></span><?php echo ($infphtxt);  ?></a></li> 
											
										</div>
										<div class="clearfix"></div>
									</div>
								</div>
								<?php }?> 

								<?php if(!empty($infemiltxt || $etitle  )){ ?>
								<div class="info-txt s-box">
									<div class="row mr-0">
										<div class="col-lg-1 col-1 pd-0 ">
											<div class="icnbx ">
												<i class="fa fa-envelope"></i>
											</div>
										</div>
										<div class="col-lg-11 col-11 infoinnbx">
											<a href="mailto:<?php echo $infemiltxt;?>"><span> <?php echo ($etitle);  ?></span><?php echo $infemiltxt;?></a>	
										</div>
										<div class="clearfix"></div>
									</div>
								</div>
								<?php }?> 

								<?php if(!empty( $inftxt || $addtitle)){ ?>
								<div class="info-txt t-box">
									<div class="row mr-0">
										<div class="col-lg-1 col-1 pd-0">
											<div class="icnbx">
												<i class="fa fa-map-marker"></i>
											</div>
										</div>
										<div class="col-lg-11 col-11 infoinnbx">
											<p><span> <?php echo ($addtitle);  ?></span> <?php echo ($inftxt);  ?></p>
										</div>
										<div class="clearfix"></div>
									</div>
								</div>
								<?php }?> 				    
								<div class="clearfix"></div>
								<?php 
									$soc_title = get_theme_mod('soctitle', 'Follow us');
									$soc_txt = get_theme_mod('soctxt', 'There are many variations of passages of Lorem Ipsum available the majority have suffered ');
									$facebook = get_theme_mod('app_fb', '//facebook.com/');
									$instagram = get_theme_mod('app_insta', 'https://www.instagram.com/');
									$twitter = get_theme_mod('app_tw', '//twitter.com/');
									$youtube = get_theme_mod('app_ytube', 'https://www.youtube.com/');
									
								?>
								<div class="s-media">
									<h4><?php echo ($soc_title); ?></h4>
									<p><?php echo ($soc_txt); ?></p>
									<?php if(!empty($facebook)){ ?>
										<li><a href="<?php echo $facebook ?>" title="Facebook" class="site-button sharp" target="_blank"><i class="fa fa-facebook"></i></a></li>
									<?php }?>

									<?php if(!empty($instagram)){ ?>
										<li><a href="<?php echo $instagram ?>" title="Instagram" class="site-button sharp" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a></li>
									<?php }?>

									<?php if(!empty($twitter)){ ?>
										<li><a href="<?php echo $twitter ?>" title="Twitter" class="site-button sharp" target="_blank"><i class="fa-brands fa-x-twitter"></i></a></li>
									<?php }?>

									<?php if(!empty($youtube)){ ?>
										<li><a href="<?php echo $youtube ?>" title="Youtube" class="site-button sharp" target="_blank"><i class="fa fa-youtube-play"></i></a></li>
									<?php }?>
									<div class="clearfix"></div>
								</div>
							</div>
						</div>
						<div class="clearfix"></div>
						
					</div> 
			
					
					<div class="clearfix"></div>
				</div>
			</div>
		</div> 
		<div class="clearfix"></div>
	</div>
<?php } 