<?php if ( true == get_theme_mod( 'podcast_streaming_why_join_us_on_off', 'on' ) ) : ?>
<?php

$podcast_streaming_courses_count = get_theme_mod('podcast_streaming_courses_count');
$podcast_streaming_why_join_us_short_heading = get_theme_mod('podcast_streaming_why_join_us_short_heading');
$podcast_streaming_industry_why_join_us_heading = get_theme_mod('podcast_streaming_industry_why_join_us_heading');

?>
<section id="home_our_cases" class="py-5">
  <div class="container">
    <div class="course-heading text-center pb-4 wow fadeInDown" data-wow-duration="2s">
      <?php if ( ! empty( $podcast_streaming_why_join_us_short_heading ) ) : ?>
          <h5 class="mb-0"><?php echo esc_html( $podcast_streaming_why_join_us_short_heading ); ?></h5>
        <?php endif; ?>
        <?php if ( ! empty( $podcast_streaming_industry_why_join_us_heading ) ): ?>
          <h4 class="text-left mb-2"><?php echo esc_html( $podcast_streaming_industry_why_join_us_heading ); ?></h4>
        <?php endif; ?>
    </div>
    <div class="owl-carousel">
      <?php for ($i=1; $i <= $podcast_streaming_courses_count; $i++) {
        $podcast_streaming_show_image = get_theme_mod('podcast_streaming_show_image'.$i);
        $podcast_streaming_couses_heading = get_theme_mod('podcast_streaming_couses_heading'.$i);
        $podcast_streaming_show_time = get_theme_mod('podcast_streaming_show_time'.$i);
        $podcast_streaming_show_date = get_theme_mod('podcast_streaming_show_date'.$i);
        $podcast_streaming_show_podcaster_name = get_theme_mod('podcast_streaming_show_podcaster_name'.$i);
        ?>
        <?php if ( ! empty( $podcast_streaming_show_image) ) : ?>
          <div class="courses_main_box wow fadeInUp" data-wow-duration="2s">
            <?php if ( ! empty( $podcast_streaming_show_image) ) : ?>
              <img class="course-image" src="<?php echo esc_url( $podcast_streaming_show_image ); ?>">
            <?php endif; ?>
            <div class="row mt-2">
              <?php if ( ! empty( $podcast_streaming_show_time ) ) : ?>
                <div class="col-lg-6 col-md-6 col-sm-6 col-6 couses-lesson">
                  <i class="fas fa-history"></i><?php echo esc_html( $podcast_streaming_show_time ); ?>
                </div>
              <?php endif; ?>
              <?php if ( ! empty( $podcast_streaming_show_date ) ) : ?>
                  <div class="col-lg-6 col-md-6 col-sm-6 col-6 couses-lesson">
                    <?php echo esc_html( $podcast_streaming_show_date ); ?>
                  </div>
              <?php endif; ?>
            </div>
            <?php if (! empty( $podcast_streaming_couses_heading ) ): ?>
              <h2 class="mb-1"><?php echo esc_html( $podcast_streaming_couses_heading ); ?></h2>
            <?php endif; ?>
            <?php if ( ! empty( $podcast_streaming_show_podcaster_name ) ) : ?>
              <p class="m-0"><?php echo esc_html( podcast_streaming_limit_words( $podcast_streaming_show_podcaster_name, 5 ) ); ?></p>
            <?php endif; ?>
          </div>
        <?php endif; ?>
      <?php } ?>
    </div>
  </div>
</section>
<?php endif; ?>
