<?php 
$about_section = get_theme_mod( 'advance_education_pro_radio_take_a_tour_enable' );
if ( 'Disable' == $about_section ) {
  return;
}
/*Take a Tour Section*/
if( get_theme_mod('advance_education_pro_take_a_tour_bgcolor') ) {
  $about_backg = 'background-color:'.esc_attr(get_theme_mod('advance_education_pro_take_a_tour_bgcolor')).';';
}elseif( get_theme_mod('advance_education_pro_take_a_tour_bgimage') ){
  $about_backg = 'background-image:url(\''.esc_url(get_theme_mod('advance_education_pro_take_a_tour_bgimage')).'\')';
}else{
  $about_backg = '';
}
  $att_style="";
  $image_att = get_theme_mod( 'advance_education_pro_take_a_tour_bgimage_attachment',true );
  if ( 'Scroll' == $image_att ) {
    $att_style="section_bg_scroll";
  }else{
    $att_style="section_bg_fixed";
  } 
?>
<section id="take_a_tour" style="<?php echo esc_attr($about_backg); ?>" class="<?php echo esc_attr($att_style);?>">
  <div class="container">
    <div class="row">
      <div class="col-lg-6 col-md-6 col-sm-12 col-12">
        <div class="records_inner">   
          <div class="container">  
            <div class="row">
              <?php
                $number = get_theme_mod('advance_education_pro_our_records_number');
                for ($i=1,$j=1; $i<=$number; $i++,$j++) {
                  if($j==4){ $j=1; }
                    if ( get_theme_mod('advance_education_pro_our_records_number',true) != "" ) { ?>
                    <div class="client_inner col-lg-6 col-md-6 col-sm-6 col-6" id="client<?php echo esc_attr($i); ?>">
                      <?php if( get_theme_mod('advance_education_pro_our_records_image'.$i, true) != ''){ ?>
                          <img class="feature-img mt-3 mb-3" src="<?php echo esc_url(get_theme_mod('advance_education_pro_our_records_image'.$i)); ?>" alt="Image"/>
                      <?php } ?>
                      <?php if( get_theme_mod('advance_education_pro_our_records_title'.$i, true) != ''){ ?>
                          <p class="records_title"><?php echo esc_html(get_theme_mod('advance_education_pro_our_records_title'.$i)); ?></p>
                      <?php } ?>
                      <?php if( get_theme_mod('advance_education_pro_our_records_subtitle'.$i, true) != ''){ ?>
                        <p class="records_subtitle"><?php echo esc_html(get_theme_mod('advance_education_pro_our_records_subtitle'.$i)); ?></p>
                      <?php } ?>
                    </div>
                  <?php }
                } ?> 
            </div>
          </div>
        </div>
     </div>
     <div class="col-lg-6 col-md-6 col-sm-12 col-12">
      <div class="tour_inner">
        <div class="container">
          <div class="box row">
            <div class="white-box col-lg-6 col-md-6 col-sm-6 col-12">
              <div class="video-play">
                <a href="#popup" id="videolink"><i class="fas fa-play" data-popup-open="popup-1"></i></a>
                 <div class="popup" data-popup="popup-1">
                    <div class="popup-inner">
                       <?php if( get_theme_mod('advance_education_pro_video_link', true) != ''){ ?>
                          <div class="video">
                            <embed height="400px" width="100%" src="<?php echo esc_attr(get_theme_mod('advance_education_pro_video_link')); ?>" allowfullscreen></embed>
                          </div>
                          <a class="popup-close" data-popup-close="popup-1" href="#"><span class="video-popup-close"><i class="fas fa-times"></i></span></a>
                       <?php } ?>
                    </div>
                 </div>
              </div>
            </div>
            <div class="red-box col-lg-6 col-md-6 col-sm-6 col-12">
              <?php if( get_theme_mod('advance_education_pro_take_a_tour_title', true) != ''){ ?>
                <p class="tour_title"><?php echo esc_html(get_theme_mod('advance_education_pro_take_a_tour_title')); ?></p>
              <?php } ?>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>