<?php

/**
 * Template Name: Custom Home Page
 */

get_header();

?>
<main id="maincontent" role="main">

<?php do_action('vw_business_consulting_before_banner'); ?>
  <?php if( get_theme_mod( 'vw_business_consulting_banner_hide_show',true) == 1 || get_theme_mod( 'vw_business_consulting_slider_year1', true) != '') { ?>
    <section id="banner" class="wow bounceInDown delay-1000" data-wow-duration="3s">
      <div class="container">
        <div class="row">
          <div class="col-lg-7 col-md-7 col-12 banner-main-text">
            <div class="inner_carousel">
              <?php if(get_theme_mod('vw_business_consulting_banner_small_title') != '') {?>
                <span class="banner-grp-img1"><i class="<?php echo esc_attr(get_theme_mod('vw_business_consulting_banner_small_title_icon', 'fas fa-smile')); ?> me-2"></i><?php echo esc_html(get_theme_mod('vw_business_consulting_banner_small_title')) ?></span>
              <?php }?>
              <?php if(get_theme_mod('vw_business_consulting_tagline_title') != '') {?>
                <h1><?php echo esc_html(get_theme_mod('vw_business_consulting_tagline_title')) ?></h1>
              <?php }?>
              <?php if(get_theme_mod('vw_business_consulting_designation_text') != '') {?>
                <p><?php echo esc_html(get_theme_mod('vw_business_consulting_designation_text')) ?></p>
              <?php }?>
              <?php if(get_theme_file_uri()) {?>
                <span class="banner-grp-img"><img src="<?php echo esc_url(get_theme_file_uri()); ?>/assets/images/banner-shape.png" alt="" /></span>
              <?php }?>
          </div>
          <div class="form-sec-slider">
              <?php if(get_theme_mod( 'vw_business_consulting_banner_form_hide_show', true) == 1) { ?>
                  <?php echo do_shortcode(get_theme_mod('vw_business_consulting_banner_form_shortcode')); ?>
              <?php }?> 
            </div>
          </div>
          <div class="col-lg-5 col-md-5 col-12 align-self-center banner-main-text2">
          <div class="slider-col"> 
            <?php if (get_theme_mod('vw_business_consulting_banner_image_col2') != '') { ?>
              <img class="banner-image" src="<?php echo esc_url(get_theme_mod('vw_business_consulting_banner_image_col2'));?>" alt="Banner Image">
            <?php }?>
            <div class="crative-team-sec">
              <p class="img-text2 mb-2"><?php echo esc_html(get_theme_mod('vw_business_consulting_slider_year1')) ?></p>
              <span class="group-img2"><img src="<?php echo esc_url(get_theme_file_uri()); ?>/assets/images/group1.png" alt="" /></span>
            </div>
            
             <?php if (get_theme_mod('vw_business_consulting_banner_image_col4') != '') { ?>
              <img class="banner-image2" src="<?php echo esc_url(get_theme_mod('vw_business_consulting_banner_image_col4'));?>" alt="Banner Image">
            <?php }?>
          </div>
          </div>
        </div>
      </div>
      <div class="clearfix"></div>
    </section>
  <?php }?>
<?php do_action('vw_business_consulting_after_banner'); ?>

<!-- our services section -->
<?php if( get_theme_mod('vw_business_consulting_about_image_col1') != '' || get_theme_mod('vw_business_consulting_about_image_col2') != ''){ ?>
  <section id="about-us-sec" class="about-us-sec py-5 position-relative">
    <div class="container">
      <div class="row">
        <div class="col-xl-3 col-lg-3 col-md-6 col-6">
          <div class="about-us-img position-relative">
            <?php if (get_theme_mod('vw_business_consulting_about_image_col1')!= '') { ?>
              <img class="about-image" src="<?php echo esc_url(get_theme_mod('vw_business_consulting_about_image_col1'));?>" alt="About Image">
            <?php }?>
            <?php if(get_theme_mod('vw_business_consulting_about_img_text') != '' || get_theme_mod('vw_business_consulting_about_img_year') != '') {?>
              <div class="year-text text-center"> 
                <p class="img-text1 mb-0"><?php echo esc_html(get_theme_mod('vw_business_consulting_about_img_year')) ?></p>
                <p class="img-text mb-0"><?php echo esc_html(get_theme_mod('vw_business_consulting_about_img_text')) ?></p>
              </div>
            <?php }?>
          </div>
        </div>
        <div class="col-xl-3 col-lg-3 col-md-6 col-6 align-self-center">
          <div class="about-us-img2 position-relative">
            <?php if (get_theme_mod('vw_business_consulting_about_image_col2')!= '') { ?>
              <img class="about-image" src="<?php echo esc_url(get_theme_mod('vw_business_consulting_about_image_col2'));?>" alt="About Image">
            <?php }?>
            <?php if(get_theme_mod('vw_business_consulting_about_img_text1') != '' || get_theme_mod('vw_business_consulting_about_img_year1') != '') {?>
              <div class="year-text2"> 
                <i class="<?php echo esc_attr(get_theme_mod('vw_business_consulting_pichart_icon', 'fas fa-chart-bar mb-2')); ?>"></i>
                <p class="img-text2 mb-2"><?php echo esc_html(get_theme_mod('vw_business_consulting_about_img_year1')) ?></p>
                <p class="img-text3 mb-2"><?php echo esc_html(get_theme_mod('vw_business_consulting_about_img_text1')) ?></p>
                <span class="group-img"><img src="<?php echo esc_url(get_theme_file_uri()); ?>/assets/images/group.png" alt="" /></span>
              </div>
            <?php }?>
          </div>
        </div>
        <div class="col-xl-6 col-lg-6 col-md-12 col-12">
          
          <?php if(get_theme_mod('vw_business_consulting_about_us_small_title') != '') {?>
            <span class="group-img1"><img src="<?php echo esc_url(get_theme_file_uri()); ?>/assets/images/circle-shape.png" alt="" /></span>
            <p class="about-text"><?php echo esc_html(get_theme_mod('vw_business_consulting_about_us_small_title')) ?></p>
          <?php }?>
          <?php if(get_theme_mod('vw_business_consulting_about_tagline_title') != '') {?>
            <h2><?php echo esc_html(get_theme_mod('vw_business_consulting_about_tagline_title')) ?></h2>
          <?php }?>
          <?php if(get_theme_mod('vw_business_consulting_about_content_text') != '') {?>
            <p class="about-text1"><?php echo esc_html(get_theme_mod('vw_business_consulting_about_content_text')) ?></p>
          <?php }?>
          <!-- tab -->
          <div class="tab">
            <?php
            $vw_business_consulting_featured_post = get_theme_mod('vw_business_consulting_services_number', '');
            for ($vw_business_consulting_j = 1; $vw_business_consulting_j <= $vw_business_consulting_featured_post; $vw_business_consulting_j++) { ?>
              <div class="icon-tab">
                <button class="tablinks" onclick="vw_business_consulting_services_tab(event, '<?php $vw_business_consulting_main_id = get_theme_mod('vw_business_consulting_services_text' . $vw_business_consulting_j);
                    $tab_id = str_replace(' ', '-', $vw_business_consulting_main_id);
                      echo $tab_id; ?> ')">
                    <span><?php echo esc_html(get_theme_mod('vw_business_consulting_services_text' . $vw_business_consulting_j)); ?></span>
                </button>
              </div>
            <?php } ?>
          </div>
          <?php for ($vw_business_consulting_j = 1; $vw_business_consulting_j <= $vw_business_consulting_featured_post; $vw_business_consulting_j++) { ?>
            <div id="<?php $vw_business_consulting_main_id = get_theme_mod('vw_business_consulting_services_text' . $vw_business_consulting_j);
              $tab_id = str_replace(' ', '-', $vw_business_consulting_main_id);
              echo $tab_id; ?>" class="tabcontent">
                  <div class="services-content">
                    <?php if (get_theme_mod('vw_business_consulting_about_tab_text' .$vw_business_consulting_j) != '') { ?>
                      <p class="about-text3"><?php echo esc_html(get_theme_mod('vw_business_consulting_about_tab_text' .$vw_business_consulting_j)); ?></p>
                    <?php } ?>
                    <div class="row pb-3">
                      <div class="col-xl-4 col-lg-3 col-md-3 align-self-center">
                        <?php if (get_theme_mod('vw_business_consulting_about_tab_text_count' .$vw_business_consulting_j) != '') { ?>
                          <h3><?php echo esc_html(get_theme_mod('vw_business_consulting_about_tab_text_count' .$vw_business_consulting_j)); ?></h3>
                        <?php } ?>
                        <?php if (get_theme_mod('vw_business_consulting_about_tab_team_member' .$vw_business_consulting_j) != '') { ?>
                          <p class="member-count"><?php echo esc_html(get_theme_mod('vw_business_consulting_about_tab_team_member' .$vw_business_consulting_j)); ?></p>
                        <?php } ?>
                      </div>
                      <div class="col-xl-8 col-lg-8 col-md-6 icon-count">
                        <div class="row">
                          <?php for ($vw_business_consulting_i=1; $vw_business_consulting_i <= 6 ; $vw_business_consulting_i++) { ?>
                            <div class="col-xl-6 col-lg-6 col-md-6 col-6 mb-2"> 
                              <span class="list"><i class="<?php echo esc_attr(get_theme_mod('vw_business_consulting_about_list_icon'.$vw_business_consulting_i.$vw_business_consulting_j, 'fas fa-check')); ?>"></i><?php echo esc_html(get_theme_mod('vw_business_consulting_about_page_list'.$vw_business_consulting_i.$vw_business_consulting_j));?></span>
                             </div>
                          <?php }?>
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-xl-4 col-lg-4 col-md-3 align-self-center">
                       <?php if (get_theme_mod('vw_business_consulting_banner_button_our_services_label' .$vw_business_consulting_j, 'More About Us') != '' || get_theme_mod('vw_business_consulting_top_button_our_services_url' .$vw_business_consulting_j) != ''|| get_theme_mod('vw_business_consulting_button_about_icon' .$vw_business_consulting_j) != '') { ?>
                          <div class="read-more-btn mt-0">
                            <a class="" href="<?php echo esc_url(get_theme_mod('vw_business_consulting_top_button_our_services_url' .$vw_business_consulting_j, false)); ?>"><?php echo esc_html(get_theme_mod('vw_business_consulting_banner_button_our_services_label' .$vw_business_consulting_j, 'More About Us')); ?>
                              <span class="screen-reader-text"><?php esc_html_e('More About Us', 'vw-business-consulting'); ?>
                              </span><i class="<?php echo esc_attr(get_theme_mod('vw_business_consulting_button_about_icon'.$vw_business_consulting_j, 'fas fa-arrow-right')); ?>"></i>
                            </a>
                          </div>
                        <?php } ?>
                      </div>
                      <div class="col-xl-6 col-lg-8 col-md-6 align-self-center">
                        <div class="client-section">
                          <div class="row">
                            <div class="col-lg-3 col-xl-3 col-md-3 col-3 align-self-center">
                              <?php if (get_theme_mod('vw_business_consulting_about_image '.$vw_business_consulting_j, true) != '') { ?>
                                <img class="about-image2" src="<?php echo esc_url(get_theme_mod('vw_business_consulting_about_image'.$vw_business_consulting_j));?>" alt="About Image">
                              <?php }?>
                            </div>
                            <div class="col-lg-9 col-xl-9 col-md-8 col-8 align-self-center">
                              <?php if (get_theme_mod('vw_business_consulting_about_client_name'.$vw_business_consulting_j) != '' || get_theme_mod('vw_business_consulting_about_client_designation'.$vw_business_consulting_j) != '' ) { ?>
                                <h3 class="client-head mb-0"><?php echo esc_html(get_theme_mod('vw_business_consulting_about_client_name'.$vw_business_consulting_j));?></h3>
                                <p class="designation mb-0"><?php echo esc_html(get_theme_mod('vw_business_consulting_about_client_designation'.$vw_business_consulting_j));?></p>
                              <?php }?>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div> 
                  </div>
            </div>
          <?php } ?>
        </div>
      </div>
    </div>
  </section>
<?php }?>
  
  <div id="content-vw" class="entry-content py-5">
    <div class="container">
      <?php while (have_posts()) : the_post(); ?>
        <?php the_content(); ?>
      <?php endwhile; // end of the loop. 
      ?>
    </div>
  </div>
  
</main>

<?php get_footer(); ?>