<?php
/**
 * Banner Section
 * 
 * @package travel_planning
 */
$travel_planning_slider = get_theme_mod( 'travel_planning_slider_setting',false );
?>
<?php if ( $travel_planning_slider ){?>
    <div class="banner wow fadeInDown" data-wow-duration="1.5s">
      <div class="banner_box">
        <div class="container">

          <div class="row mt-4 mb-3 align-items-center">
            <div class="col-lg-8 col-md-12 align-self-center banner-info">
              <?php 
                $travel_planning_heading = get_theme_mod('travel_planning_slider_heading');
                if ( $travel_planning_heading ) : ?>
                  <h2>
                    <?php echo esc_html($travel_planning_heading); ?>
                  </h2>
              <?php endif; ?>
                <?php if ( get_theme_mod('travel_planning_slider_content') ) : ?>
                    <p class="slide-extra-content"><?php echo esc_html(get_theme_mod('travel_planning_slider_content')); ?></p>
                <?php endif; ?>
            </div>
            <div class="col-lg-4 col-md-12 align-self-end review-info">
              <div class="review-box">
                <?php if ( get_theme_mod('travel_planning_right_image_box_3_text') != '' || get_theme_mod('travel_planning_right_image_box_3_count') != '' ) { ?>
                    <div class="image-box">
                      <div class="review-content">
                              <p class="mb-0 count"><?php echo esc_html(get_theme_mod('travel_planning_right_image_box_3_count', '')); ?><span><img src="<?php echo esc_url(get_template_directory_uri() . '/images/star.png'); ?>"></span></p>
                              <p class="mb-0 mt-0 text"><?php echo esc_html(get_theme_mod('travel_planning_right_image_box_3_text', '')); ?></p>
                      </div>
                      <div class="image-team">
                          <?php if ( get_theme_mod( 'travel_planning_slider_team_image_1' ) ) { ?>
                              <img class="team-img-small-1" src="<?php echo esc_url( get_theme_mod( 'travel_planning_slider_team_image_1' ) ); ?>">
                          <?php } ?>
                          <?php if ( get_theme_mod( 'travel_planning_slider_team_image_2' ) ) { ?>
                              <img class="team-img-small-2" src="<?php echo esc_url( get_theme_mod( 'travel_planning_slider_team_image_2' ) ); ?>">
                          <?php } ?>
                          <?php if ( get_theme_mod( 'travel_planning_slider_team_image_3' ) ) { ?>
                              <img class="team-img-small-3" src="<?php echo esc_url( get_theme_mod( 'travel_planning_slider_team_image_3' ) ); ?>">
                          <?php } ?>
                          <?php if ( get_theme_mod( 'travel_planning_slider_team_image_4' ) ) { ?>
                              <img class="team-img-small-4" src="<?php echo esc_url( get_theme_mod( 'travel_planning_slider_team_image_4' ) ); ?>">
                          <?php } ?>
                      </div>
                    </div>
                <?php } ?>
              </div>
            </div>
          </div>
          <div class="banner-img wow zoomIn" data-wow-duration="1.5s">
              <?php if ( get_theme_mod( 'travel_planning_slider_image' ) ) : ?>
                  <img src="<?php echo esc_url( get_theme_mod( 'travel_planning_slider_image' ) ); ?>">
              <?php else : ?>
                  <img src="<?php echo esc_url( get_stylesheet_directory_uri() . '/images/default.png' ); ?>">
              <?php endif; ?>
          </div>
          <div class="search-form">
              <?php
              if ( shortcode_exists( 'WP_TRAVEL_SEARCH' ) ) {
                  echo do_shortcode( '[WP_TRAVEL_SEARCH]' );
              }
              ?>
          </div>
        </div>
      </div>
    </div>
  </div>
<?php } ?>