<?php
/**
 * Banner Section
 * 
 * @package seo_consultant
 */

$seo_consultant_slider = get_theme_mod( 'seo_consultant_slider_setting',false );
$seo_consultant_banner_btn_text     = get_theme_mod( 'seo_consultant_banner_btn_text' );
$seo_consultant_banner_btn_url     = get_theme_mod( 'seo_consultant_banner_btn_url' );  ?>

<?php if ( $seo_consultant_slider ){?>
<div class="slider-back">
  <div class="banner-main">
    <?php if ( get_theme_mod('seo_consultant_slider_background_image') ) : ?>
      <img class="inner-banner" src="<?php echo esc_url(get_theme_mod('seo_consultant_slider_background_image'));?>">
    <?php else: ?>
      <div class="inner-banner">
        <img src="<?php echo get_stylesheet_directory_uri() . '/images/slide.png'; ?>">
      </div>
    <?php endif; ?>
    <div class="test">
            <div class="banner_inner_box">
              <div class="container">
                <div class="row">
                <div class="col-lg-7 col-md-12 col-12 align-self-center wow bounceInDown" data-wow-duration="2s">
                    <div class="banner_box">
                        <?php if ( get_theme_mod('seo_consultant_slider_text_extra') ) : ?>
                          <h5><?php echo esc_html(get_theme_mod('seo_consultant_slider_text_extra'));?></h5>
                        <?php endif; ?>
                        <?php if ( get_theme_mod('seo_consultant_slider_heading') ) : ?>
                          <h3><?php echo esc_html(get_theme_mod('seo_consultant_slider_heading'));?></h3>
                        <?php endif; ?>
                        <?php if ( $seo_consultant_banner_btn_text ){?>
                            <div class="btn-green">
                                <a href="<?php echo esc_url($seo_consultant_banner_btn_url);?>"> <?php echo esc_html($seo_consultant_banner_btn_text);?></a>
                            </div>
                        <?php } ?>

                    </div>
                </div>
                <div class="col-lg-5 col-md-12 col-12 align-self-center banner_inner_box_img ss position-relative p-0 text-center wow zoomIn" data-wow-duration="2s">
                    <?php if ( get_theme_mod('seo_consultant_banner_img_1') ) : ?>
                        <img class="img-1" src="<?php echo esc_url(get_theme_mod('seo_consultant_banner_img_1')); ?>">
                    <?php endif; ?>
                    <?php if ( get_theme_mod('seo_consultant_banner_img_2') ) : ?>
                        <img class="img-2" src="<?php echo esc_url(get_theme_mod('seo_consultant_banner_img_2')); ?>">
                    <?php endif; ?>
                        <?php if (get_theme_mod('seo_consultant_satisfied_number') != "") { ?>
                          <div class="slider-users">
                            <div class="row">
                              <div class="col-lg-4 col-md-3 col-3 align-self-center">
                                <i class="fas fa-heart"></i>
                              </div>
                              <div class="col-lg-8 col-md-9 col-9 align-self-center ps-3">
                                <p class="top-text m-0"><?php echo esc_html(get_theme_mod('seo_consultant_satisfied_number', '')); ?></p>
                                <p class="user-content m-0"><?php esc_html_e('Satisfied Users', 'seo-consultant'); ?></p>
                              </div>
                            </div>
                          </div>
                        <?php } ?> 
                </div>
              </div>
              </div>
            </div>
    </div>
  </div>
</div>
<?php } ?>