<?php
/**
 * Template Name: Custom Home
 */
get_header(); ?>
 
<main id="skip-content" role="main">

	<?php do_action( 'luzuk_moneymind_finance_advisor_above_banner' ); ?>

	<section id="banner">	  
		<div class="container">
			<div class="bannerinn">
				<div class="content-box">
					<div class="row mr-0">
						<?php
						
						$bann_fm_shortcode = get_theme_mod('bann_fm_shortcode', 'Add form shortcode');
						?>	
						<div class="content-boxinn">
							<h2>
								<?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_bannerheading', 'Trusted Financial Solutions For Lasting Success.')); ?>
							</h2>
							<div class="bnfm_bx">	
								<?php if (is_plugin_active('contact-form-7/wp-contact-form-7.php')) { ?>
									<div class="bann-forminn ">  
										<div class="bann-form "> 
											<?php if($bann_fm_shortcode){ ?> 
												<div class="bnfm">
													<?php echo do_shortcode($bann_fm_shortcode);?>
												</div>
											<?php } else {
												echo '<p class="shortcerror">Add Form Shortcode from customizer.</p>';
											} ?> 
										</div>
									</div>
								<?php } else { 
									echo '<p class="error">Please install and activate the <a href="https://wordpress.org/plugins/contact-form-7/" target="_blank">Contact Form 7 plugin</a> to use the form functionality.</p>';
								} ?>
							</div>
							<p><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_bannerdescription', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae lacus sit amet felis ullamcorper eleifend vitae vitae est. Quisque sem nibh, bibendum vel ultrices pretium, molestie sed nisi.')); ?></p>
							<div class="box">
								<div class="num 2x">
									<div class="row mr-0">
										<h2><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_2x', "2X")); ?></h2>
										<p><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_2x_text', "Faster Than Any Other Insurance Services")); ?></p>
									</div>
								</div>
								<div class="num 1m">
									<div class="row mr-0">
										<h2><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_1m', "1M")); ?></h2>
										<p><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_1m_text', "There Are Many Variations The Majority Have Suffered Believable.")); ?></p>
									</div>
								</div>
							</div>
						</div>
						<div class="img-box">
							<div class="profileimg">
								<?php 
									$luzuk_moneymind_finance_advisor_banner_topgraphimg = get_theme_mod('luzuk_moneymind_finance_advisor_banner_topgraphimg');

									if(!empty($luzuk_moneymind_finance_advisor_banner_topgraphimg)){
										echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($luzuk_moneymind_finance_advisor_banner_topgraphimg).'" class="img-responsive secondry-bg-img" />';
									}else{
										echo '<img alt="luzuk_moneymind_finance_advisor_banner_topgraphimg" src="'.get_template_directory_uri().'/assets/images/grapf.png" class="img-responsive" />';
									}
								?>
							</div>
							<div class="profile-box">
								<div class="plneimg">
									<?php 
										echo '<img alt="luzuk_moneymind_plane_img" src="'.get_template_directory_uri().'/assets/images/plane.png" class="img-responsive" />';
									?>
								</div>
								<div class="cirimg">
									<div class="cir1">
										<?php 
											echo '<img alt="luzuk_moneymind_cir1_img" src="'.get_template_directory_uri().'/assets/images/sm.png" class="img-responsive" />';
										?>
									</div>
									<div class="cir2">
										<?php 
											echo '<img alt="luzuk_moneymind_cir1_img" src="'.get_template_directory_uri().'/assets/images/sm.png" class="img-responsive" />';
										?>
									</div>
									<div class="cir3">
										<?php 
											echo '<img alt="luzuk_moneymind_cir1_img" src="'.get_template_directory_uri().'/assets/images/sm.png" class="img-responsive" />';
										?>		
									</div>
								</div>
								<?php 
									$luzuk_moneymind_finance_advisor_banner_profileimg = get_theme_mod('luzuk_moneymind_finance_advisor_banner_profileimg');

									if(!empty($luzuk_moneymind_finance_advisor_banner_profileimg)){
										echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($luzuk_moneymind_finance_advisor_banner_profileimg).'" class="img-responsive secondry-bg-img" />';
									}else{
										echo '<img alt="luzuk_moneymind_finance_advisor_banner_profileimg" src="'.get_template_directory_uri().'/assets/images/bannm.png" class="img-responsive" />';
									}
								?>	
								<div class="profiletext1">
									<i class="fa fa-check" ></i> <?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_banner_profileimageheading1', "Smarter Finance.")); ?>
								</div> 
								<div class="profiletext2">
									<i class="fa fa-check" ></i> <?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_banner_profileimageheading2', "Stronger Future")); ?>
								</div>
							</div>
						</div>
			
					</div>
				</div>
			</div>
		</div>
	</section>
	
	<?php do_action('luzuk_moneymind_finance_advisor_below_banner'); ?>

	<section id="trustedbycompanies-section">
		<div class="container">
			<div class="row">
				<div class="col-lg-4 col-md-5 col-sm-12">
					<h2><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_trustedbycompanies_heading','Trusted By The Top 100+ Companies Worldwide')); ?></h2>		
				</div>
				<div class="col-lg-8 col-md-7 col-sm-12">
					<div class="companieslogo row">
						<div class="col-lg-3 col-md-6 col-sm-6 col-12">
							<div class="logo">
								<?php 
									$luzuk_moneymind_finance_advisor_trustedbycompanies_logo1 = get_theme_mod('luzuk_moneymind_finance_advisor_trustedbycompanies_logo1');

									if(!empty($luzuk_moneymind_finance_advisor_trustedbycompanies_logo1)){
										echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($luzuk_moneymind_finance_advisor_trustedbycompanies_logo1).'" class="img-responsive secondry-bg-img" />';
									}else{
										echo '<img alt="luzuk_moneymind_finance_advisor_trustedbycompanies_logo1" src="'.get_template_directory_uri().'/assets/images/cl1.png" class="img-responsive" />';
									}
								?>
							</div>
						</div>
						<div class="col-lg-3 col-md-6 col-sm-6 col-12">
							<div class="logo">
								<?php 
									$luzuk_moneymind_finance_advisor_trustedbycompanies_logo2 = get_theme_mod('luzuk_moneymind_finance_advisor_trustedbycompanies_logo2');

									if(!empty($luzuk_moneymind_finance_advisor_trustedbycompanies_logo2)){
										echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($luzuk_moneymind_finance_advisor_trustedbycompanies_logo2).'" class="img-responsive secondry-bg-img" />';
									}else{
										echo '<img alt="luzuk_moneymind_finance_advisor_trustedbycompanies_logo2" src="'.get_template_directory_uri().'/assets/images/cl1.png" class="img-responsive" />';
									}
								?>
							</div>
						</div>
						<div class="col-lg-3 col-md-6 col-sm-6 col-12">
							<div class="logo">
								<?php 
									$luzuk_moneymind_finance_advisor_trustedbycompanies_logo3 = get_theme_mod('luzuk_moneymind_finance_advisor_trustedbycompanies_logo3');

									if(!empty($luzuk_moneymind_finance_advisor_trustedbycompanies_logo3)){
										echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($luzuk_moneymind_finance_advisor_trustedbycompanies_logo3).'" class="img-responsive secondry-bg-img" />';
									}else{
										echo '<img alt="luzuk_moneymind_finance_advisor_trustedbycompanies_logo3" src="'.get_template_directory_uri().'/assets/images/cl1.png" class="img-responsive" />';
									}
								?>
							</div>
						</div>
						<div class="col-lg-3 col-md-6 col-sm-6 col-12">
							<div class="logo">
								<?php 
									$luzuk_moneymind_finance_advisor_trustedbycompanies_logo4 = get_theme_mod('luzuk_moneymind_finance_advisor_trustedbycompanies_logo4');

									if(!empty($luzuk_moneymind_finance_advisor_trustedbycompanies_logo4)){
										echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($luzuk_moneymind_finance_advisor_trustedbycompanies_logo4).'" class="img-responsive secondry-bg-img" />';
									}else{
										echo '<img alt="luzuk_moneymind_finance_advisor_trustedbycompanies_logo4" src="'.get_template_directory_uri().'/assets/images/cl1.png" class="img-responsive" />';
									}
								?>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>

	<?php do_action('luzuk_moneymind_finance_advisor_below_trustedbycompanies_section'); ?>

	<section id="aboutus-section">
		<div class="container">
			<div class="row mr-0">
				<div class="detailbx">				
					<div class="titleimg">
						<?php 
							$luzuk_moneymind_finance_advisor_aboutus_titimg = get_theme_mod('luzuk_moneymind_finance_advisor_aboutus_titimg');

							if(!empty($luzuk_moneymind_finance_advisor_aboutus_titimg)){
								echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($luzuk_moneymind_finance_advisor_aboutus_titimg).'" class="img-responsive secondry-bg-img" />';
							}else{
								echo '<img alt="luzuk_moneymind_finance_advisor_aboutus_titimg" src="'.get_template_directory_uri().'/assets/images/abtilebg.png" class="img-responsive" />';
							}
						?>
					</div>	
					<h5><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_aboutusheading', 'Expert CPA Tax Services: Maximizing Savings, Minimizing Stress.')); ?></h5>
					<p><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_aboutusdescription', 'Taxation is the cornerstone of a functioning society, enabling governments to fund essential services such as healthcare, education, infrastructure, and public safety.')); ?></p>
					<div class="row mr-0">
						<div class="col-lg-5 col-md-5 col-sm-6 col-12">
							<div class="bttn">
								<a href="<?php echo esc_url(get_theme_mod('luzuk_moneymind_finance_advisor_aboutusbtnlink', '#')); ?>">
									<?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_aboutusbtntext', 'About Us')); ?>
								</a>
							</div>
						</div>
						 <div class="col-lg-7 col-md-7 col-sm-6 col-12">
							<div class="contactagent">
								<div class="aboutus-profileimg">
									<?php 
										$luzuk_moneymind_finance_advisor_aboutus_profileimg = get_theme_mod('luzuk_moneymind_finance_advisor_aboutus_profileimg');

										if(!empty($luzuk_moneymind_finance_advisor_aboutus_profileimg)){
											echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($luzuk_moneymind_finance_advisor_aboutus_profileimg).'" class="img-responsive secondry-bg-img" />';
										}else{
											echo '<img alt="luzuk_moneymind_finance_advisor_aboutus_profileimg" src="'.get_template_directory_uri().'/assets/images/abtph.jpg" class="img-responsive" />';
										}
									?>	
								</div>
								<div class="aboutus-profileimgnumber">
									<h2><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_aboutus_phonenumber_heading', 'Contact Agent')); ?></h2>
									<span><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_aboutus_phonenumber', '(+021) 117 871')); ?></span>
								</div>
							</div>
						</div>
					</div>
				</div>	
				<div class="abtimgbx">
					<?php 
						$luzuk_moneymind_finance_advisor_aboutus_img = get_theme_mod('luzuk_moneymind_finance_advisor_aboutus_img');

						if(!empty($luzuk_moneymind_finance_advisor_aboutus_img)){
							echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($luzuk_moneymind_finance_advisor_aboutus_img).'" class="img-responsive secondry-bg-img" />';
						}else{
							echo '<img alt="luzuk_moneymind_finance_advisor_aboutus_img" src="'.get_template_directory_uri().'/assets/images/about.jpg" class="img-responsive" />';
						}
					?>
				</div> 	
			</div>
			<div class="counter">
		          <div class="row mr-0"> 
		              <div class="c-box1">
		                  <div class="row mr-0"> 
		                      <div class="c-boxinn">
		                          <div class="c-bxn">
		                             <h2> <?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_aboutus_completedprojects_number','200')); ?><i class="fa fa-plus" ></i></h2>               
		                              <p><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_aboutus_completedprojects_text','COMPLETED PROJECTS')); ?></p>
		                          </div>
		                      </div>
		                      <div class="c-boxinn ">
		                          <div class="c-bxn">
		                            <h2><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_aboutus_completedprojects_number','95')); ?><i class="fa fa-percent"></i></h2>               
		                            <p><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_aboutus_completedprojects_text','COMPLETED PROJECTS')); ?></p>
		                          </div>
		                      </div>
		                  </div>
		              </div>
		              <div class="c-box2">
		                  <div class="cimg-bx ">
		                      <div class="row ">
		                          <h4><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_aboutusyearofexperiencenum','28')); ?></h4>
		                          <h5><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_aboutusyearofexperiencetext','YEAR EXPERIENCE')); ?></h5>
		                      </div>
		                  </div>
		              </div>
		          </div>
		      </div>	
		</div>
	</section>

	<?php do_action('luzuk_moneymind_finance_advisor_below_aboutus_section'); ?>
	<section id="services-section">
		<div class="container"> 
			<div class="headbx">
				<div class="head">
					<h3 class="subheading"><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_servicessubheading','Popular Services')); ?></h3>		
					<h2 class="heading"><?php echo esc_html(get_theme_mod('luzuk_moneymind_finance_advisor_servicesheading','FINANCE SERVICES')); ?></h2>		
				</div>			
				<div class="row mr-0">
					<?php
					// Check if any page is selected from customizer
					$pages_selected = false;
					for ($i = 1; $i <= 2; $i++) {
						$selected_page_id = get_theme_mod('luzuk_moneymind_finance_advisor_page_setting_' . $i);
						if ($selected_page_id) {
							$pages_selected = true;
							break;
						}
					}

					// Display pages in slider if selected, otherwise show a message
					if ($pages_selected) {
						// Loop through each selected page and display in the slider
						for ($i = 1; $i <= 3; $i++) {
							$selected_page_id = get_theme_mod('luzuk_moneymind_finance_advisor_page_setting_' . $i);
							if ($selected_page_id) {
								$page = get_post($selected_page_id);
								?>
								<div class="col-lg-4 col-md-6 col-sm-12 serbx">
									<!-- <div class="serbx"> -->
										<div class="serbxinn">
											<a href="<?php echo get_permalink($page->ID); ?>">
												<?php echo get_the_post_thumbnail($page->ID, 'medium'); ?>
											</a>
											<div class="sconbx">
												<div class="Numrical">
													<h5>0<?php echo $i; ?></h5>
												</div>	
												<a href="<?php echo get_permalink($page->ID); ?>">
													<h4><?php echo $page->post_title; ?></h4>
												</a>
												<p><?php echo get_the_excerpt($page->ID); ?></p>
												<div class="ser-btn">							
													<a href="<?php echo get_permalink($page->ID); ?>">
														<?php _e('Read More', 'moneymind-finance-advisor'); ?>

														<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg">
							                              <g transform="scale(-1, 1)" transform-origin="center">
							                                <path d="M 2.5 8 L 0 10.5 L 2.5 13 L 4 13 L 2 11 L 19 11 L 19 10 L 2 10 L 4 8 L 2.5 8 z" style="fill-opacity:1; stroke:none; stroke-width:0px;"></path>
							                              </g>
							                            </svg>
													</a>			
												</div>
											</div>
										</div>
									<!-- </div> -->
								</div>
							<?php }
						}
					} else {

					}
					?>
				</div>
			
			
			
			</div>
		</div>
	</section>

	<?php do_action('luzuk_moneymind_finance_advisor_below_services_section'); ?>

	<div class="container">
	  	<?php while ( have_posts() ) : the_post(); ?>
	  		<div class="lz-content">
	        	<?php the_content(); ?>
	        </div>
	    <?php endwhile; // end of the loop. ?>
	</div>
</main>

<?php get_footer(); ?>