<?php if ( get_theme_mod('auto_parts_supplier_products_section_enable', true) == true ) : ?>
<div id="hot_products" class="py-5">
	<div class="container">
    <div class="row">
      <div class="col-lg-9 col-md-9 text-center text-md-start">
        <?php if ( get_theme_mod('auto_parts_supplier_products_main_heading') ) : ?>
          <h3><?php echo esc_html(get_theme_mod('auto_parts_supplier_products_main_heading'));?></h3>
        <?php endif; ?>
      </div>
      <div class="col-lg-3 col-md-4 text-center text-md-end">
        <?php if ( get_theme_mod('auto_parts_supplier_products_brand_button_text') || get_theme_mod('auto_parts_supplier_products_brand_button_url') ) : ?>
          <p class="brand-button"><a href="<?php echo esc_html(get_theme_mod('auto_parts_supplier_products_brand_button_url'));?>"><?php echo esc_html(get_theme_mod('auto_parts_supplier_products_brand_button_text'));?><i class="fas fa-chevron-right ms-2"></i></a></p>
        <?php endif; ?>
      </div>
    </div>
    <div class="row mb-4 pb-2">
      <div class="col-lg-3 col-md-4 align-self-center">
        <div class="left-post">
          <div class="post-image">
            <?php if ( get_theme_mod('auto_parts_supplier_brand_left_post_image') ) : ?>
              <img class="inner-banner" src="<?php echo esc_url(get_theme_mod('auto_parts_supplier_brand_left_post_image'));?>">
            <?php else: ?>
              <div class="brand-alternate">
                <img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/brand-left.png'; ?>">
              </div>
            <?php endif; ?>
            <div class="left-post-content">
              <?php if ( get_theme_mod('auto_parts_supplier_brand_short_heading') ) : ?>
                <h4 class="mb-2"><?php echo esc_html(get_theme_mod('auto_parts_supplier_brand_short_heading'));?></h4>
              <?php endif; ?>
              <?php if ( get_theme_mod('auto_parts_supplier_brand_heading') ) : ?>
                <h3 class="mb-2"><?php echo esc_html(get_theme_mod('auto_parts_supplier_brand_heading'));?></h3>
              <?php endif; ?>
              <?php if ( get_theme_mod('auto_parts_supplier_brand_content') ) : ?>
                <p class="mb-3"><?php echo esc_html(get_theme_mod('auto_parts_supplier_brand_content'));?></p>
              <?php endif; ?>
              <?php if ( get_theme_mod('auto_parts_supplier_products_brand_post_button_text') || get_theme_mod('auto_parts_supplier_products_brand_post_button_url') ) : ?>
                <p class="post-button"><a href="<?php echo esc_html(get_theme_mod('auto_parts_supplier_products_brand_post_button_url'));?>"><?php echo esc_html(get_theme_mod('auto_parts_supplier_products_brand_post_button_text'));?></a></p>
              <?php endif; ?>
            </div>
          </div>
        </div>
      </div>
      <div class="col-lg-9 col-md-9 align-self-center brand-main">
        <div class="row"> 
          <?php for ($i=1; $i <=8 ; $i++) { ?>
            <div class="col-lg-3 col-md-4 col-sm-6 col-6 brands-logos">
              <?php if ( get_theme_mod('auto_parts_supplier_brands_logos_image' .$i) ) : ?>
                <img class="inner-banner" src="<?php echo esc_url(get_theme_mod('auto_parts_supplier_brands_logos_image'.$i));?>">
              <?php endif; ?>
            </div>
          <?php } ?>
        </div>
      </div>
    </div>
    <div class="barnd-banner">
      <div class="brand-image">
        <?php if ( get_theme_mod('auto_parts_supplier_brand_banner_image') ) : ?>
          <img class="brand-inner-banner" src="<?php echo esc_url(get_theme_mod('auto_parts_supplier_brand_banner_image'));?>">
        <?php else: ?>
          <div class="brand-banner-alternate">
            <img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/brand-banner.png'; ?>">
          </div>
        <?php endif; ?>
        <div class="brand-post-content">
          <?php if ( get_theme_mod('auto_parts_supplier_brand_banner_short_heading') ) : ?>
            <h4 class="mb-2"><?php echo esc_html(get_theme_mod('auto_parts_supplier_brand_banner_short_heading'));?></h4>
          <?php endif; ?>
          <?php if ( get_theme_mod('auto_parts_supplier_brand_banner_heading') ) : ?>
            <h3 class="mb-2"><?php echo esc_html(get_theme_mod('auto_parts_supplier_brand_banner_heading'));?></h3>
          <?php endif; ?>
          <?php if ( get_theme_mod('auto_parts_supplier_brand_banner_content') ) : ?>
            <p class="m-0"><?php echo esc_html(get_theme_mod('auto_parts_supplier_brand_banner_content'));?></p>
          <?php endif; ?>
        </div>
    </div>
	</div>
</div>
<?php endif; ?>
