<?php if ( get_theme_mod('influencer_marketing_slider_box_enable', true) == true ) : ?>
<div id="slider">
  <div class="slider">
    <?php
    $influencer_marketing_slider_image = get_theme_mod('influencer_marketing_slider_counter','');
    for ( $influencer_marketing_i = 1; $influencer_marketing_i <= $influencer_marketing_slider_image; $influencer_marketing_i++ ){ ?>
      <div class="slider-image-box" data-dot-img="<?php echo esc_url(get_theme_mod('influencer_marketing_slider_image'.$influencer_marketing_i)); ?>">
        <img src="<?php echo esc_url(get_theme_mod('influencer_marketing_slider_outer_image'.$influencer_marketing_i)); ?>" class="slide-outer-image"/>
        <div class="slider-content">
          <div class="row">
            <div class="col-lg-5 col-md-5 col-sm-5 align-self-center wow fadeInLeft">
              <img src="<?php echo esc_url(get_theme_mod('influencer_marketing_slider_image'.$influencer_marketing_i)); ?>" class="slide-image"/>
            </div>
            <div class="col-lg-1 col-md-1 col-sm-1">
            </div>
            <div class="col-lg-6 col-md-6 col-sm-6 wow fadeInRight">
              <h2><?php echo esc_html(get_theme_mod('influencer_marketing_slider_sub_heading'.$influencer_marketing_i));?></h2>
              <h1 class="mt-md-3"><?php echo esc_html(get_theme_mod('influencer_marketing_slider_main_heading'.$influencer_marketing_i));?></h1>
              <?php if ( get_theme_mod('influencer_marketing_search_box_enable', true) == true ) : ?>
                <div class="header-search text-center">
                  <form method="get" id="searchform" class="searchform" action="<?php echo esc_url(home_url('/')); ?>">
                    <input placeholder="<?php esc_attr_e('Search Here....',  'influencer-marketing'); ?>" type="text" name="s" id="search" value="<?php the_search_query(); ?>" />
                    <button type="submit" value="" class="search-button"><i class="fas fa-search"></i></button>
                  </form>
                </div>
              <?php endif; ?>
              <?php $influencer_marketing_slider_populer_search_count = get_theme_mod('influencer_marketing_slider_populer_search',''); { ?>
                <div class="populer_search">
                  <span class="search_one"><?php esc_html_e('POPULER SEARCH','influencer-marketing'); ?></span>
                  <?php for ( $influencer_marketing_m = 1; $influencer_marketing_m <= $influencer_marketing_slider_populer_search_count; $influencer_marketing_m++ ){ ?>
                    <span><?php echo esc_html(get_theme_mod('influencer_marketing_slider_populer_search_text'.$influencer_marketing_m));?></span>
                  <?php }?>
                </div>
              <?php }?>
            </div>
          </div>
        </div>
      </div>
    <?php }?>
  </div>
</div>
<?php endif; ?>
