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

$business_solutions_slider = get_theme_mod('business_solutions_slider_setting', false);
$business_solutions_banner_btn_text     = get_theme_mod( 'business_solutions_banner_btn_text' );
$business_solutions_banner_btn_url     = get_theme_mod( 'business_solutions_banner_btn_url' );
?>

<?php if ($business_solutions_slider) : ?>
  <div class="slider-back">
    <div class="banner-main">
      <?php if (get_theme_mod('business_solutions_slider_background_image')) : ?>
        <img class="inner-banner" src="<?php echo esc_url(get_theme_mod('business_solutions_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 container">
          <div class="slider-image-box">
            <div class="slider-content">
              <div class="container">
                <div class="row">
                  <div class="col-lg-4 col-md-4 col-sm-4 align-self-center">
                    <?php if ( get_theme_mod('business_solutions_slider_text_extra') ) : ?>
                      <h5><?php echo esc_html(get_theme_mod('business_solutions_slider_text_extra'));?></h5>
                    <?php endif; ?>
                    <?php if ( get_theme_mod('business_solutions_slider_heading') ) : ?>
                      <h3><?php echo esc_html(get_theme_mod('business_solutions_slider_heading'));?></h3>
                    <?php endif; ?>
                    <?php if ( get_theme_mod('business_solutions_slider_content') ) : ?>
                      <p><?php echo esc_html(get_theme_mod('business_solutions_slider_content'));?></p>
                    <?php endif; ?>
                      <?php if ( $business_solutions_banner_btn_text ){?>
                          <div class="sign-in-area">
                              <a href="<?php echo esc_url($business_solutions_banner_btn_url);?>"><i class="fas fa-chevron-right"></i><?php echo esc_html($business_solutions_banner_btn_text);?></a>
                          </div>
                      <?php } ?>
                  </div>
                  <div class="col-lg-5 col-md-5 col-sm-5 align-self-center">
                    <img src="<?php echo esc_url(get_theme_mod('business_solutions_slider_image')); ?>" class="slide-image wow zoomInUp" data-wow-duration="2s" />
                    <?php if ( get_theme_mod('business_solutions_right_image_box_3_text') != '' && get_theme_mod('business_solutions_right_image_box_3_count') != '' ) { ?>
                        <div class="image-box mt-4 wow bounceInDown" data-wow-duration="2s">
                          <div class="review-content">
                                  <p class="mb-0 count"><?php echo esc_html(get_theme_mod('business_solutions_right_image_box_3_count', '')); ?></p>
                                  <p class="mb-0 mt-0"><?php echo esc_html(get_theme_mod('business_solutions_right_image_box_3_text', '')); ?></p>
                          </div>
                          <div class="image-team">
                              <?php if ( get_theme_mod( 'business_solutions_slider_team_image_1' ) ) { ?>
                                  <img class="team-img-small-1" src="<?php echo esc_url( get_theme_mod( 'business_solutions_slider_team_image_1' ) ); ?>">
                              <?php } ?>
                              <?php if ( get_theme_mod( 'business_solutions_slider_team_image_2' ) ) { ?>
                                  <img class="team-img-small-2" src="<?php echo esc_url( get_theme_mod( 'business_solutions_slider_team_image_2' ) ); ?>">
                              <?php } ?>
                              <?php if ( get_theme_mod( 'business_solutions_slider_team_image_3' ) ) { ?>
                                  <img class="team-img-small-3" src="<?php echo esc_url( get_theme_mod( 'business_solutions_slider_team_image_3' ) ); ?>">
                              <?php } ?>
                              <?php if ( get_theme_mod( 'business_solutions_slider_team_image_4' ) ) { ?>
                                  <img class="team-img-small-4" src="<?php echo esc_url( get_theme_mod( 'business_solutions_slider_team_image_4' ) ); ?>">
                              <?php } ?>
                          </div>
                        </div>
                    <?php } ?>
                  </div>
                  <div class="col-lg-3 col-md-3 col-sm-3 align-self-center">
                        <div class="sliderbox-sec">
                            <?php if (get_theme_mod('business_solutions_total_no_satisfied_customer') != '') { ?>
                                <div class="customer-counter my-lg-5 my-4">
                                    <div class="row">
                                        <div class="col-lg-3 col-md-4 col-12 align-self-center counter-icon">
                                            <i class="fas fa-smile"></i>
                                        </div>
                                        <div class="col-lg-9 col-md-8 col-12 align-self-center">
                                            <div class="customer-no"><?php echo esc_html(get_theme_mod('business_solutions_total_no_satisfied_customer', '')); ?></div>
                                            <div class="centers-text"><?php esc_html_e('Satisfied Customer', 'business-solutions'); ?></div>
                                        </div>
                                    </div>
                                </div>
                            <?php } ?>
                            <?php if (get_theme_mod('business_solutions_total_no_award_win') != '') { ?>
                                <div class="customer-counter my-lg-5 my-4">
                                    <div class="row">
                                        <div class="col-lg-3 col-md-4 col-12 align-self-center counter-icon">
                                            <i class="fas fa-trophy"></i>
                                        </div>
                                        <div class="col-lg-9 col-md-8 col-12 align-self-center">
                                            <div class="customer-no"><?php echo esc_html(get_theme_mod('business_solutions_total_no_award_win', '')); ?></div>
                                            <div class="centers-text"><?php esc_html_e('Award Win', 'business-solutions'); ?></div>
                                        </div>
                                    </div>
                                </div>
                            <?php } ?>
                            <?php if (get_theme_mod('business_solutions_total_no_successfull_projects') != '') { ?>
                                <div class="customer-counter my-lg-5 my-4">
                                    <div class="row">
                                        <div class="col-lg-3 col-md-4 col-12 align-self-center counter-icon">
                                            <i class="far fa-edit"></i>
                                        </div>
                                        <div class="col-lg-9 col-md-8 col-12 align-self-center">
                                            <div class="customer-no"><?php echo esc_html(get_theme_mod('business_solutions_total_no_successfull_projects', '')); ?></div>
                                            <div class="centers-text"><?php esc_html_e('Successful Project', 'business-solutions'); ?></div>
                                        </div>
                                    </div>
                                </div>
                            <?php } ?>
                            <?php if (get_theme_mod('business_solutions_total_year_experience') != '') { ?>
                                <div class="customer-counter my-lg-5 my-4">
                                    <div class="row">
                                        <div class="col-lg-3 col-md-4 col-12 align-self-center counter-icon">
                                            <i class="fas fa-star"></i>
                                        </div>
                                        <div class="col-lg-9 col-md-8 col-12 align-self-center">
                                            <div class="customer-no"><?php echo esc_html(get_theme_mod('business_solutions_total_year_experience', '')); ?></div>
                                            <div class="centers-text"><?php esc_html_e('Year Of Experience', 'business-solutions'); ?></div>
                                        </div>
                                    </div>
                                </div>
                            <?php } ?>
                        </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
      </div>
    </div>
    <?php endif; ?>
  </div>