<?php if ( get_theme_mod('professional_cleaning_company_project_section_enable',false) ) : ?>

<?php $professional_cleaning_company_left_args = array(
  'post_type' => 'post',
  'post_status' => 'publish',
  'category_name' =>  get_theme_mod('professional_cleaning_company_project_left_category'),
  'posts_per_page' => get_theme_mod('professional_cleaning_company_project_left_number'),
  'order' => 'ASC'
); ?>

	<div id="project" class="py-5">
		<div class="container">
			<?php if ( get_theme_mod('professional_cleaning_company_project_short_heading') ) : ?>
    		<h6 class="text-center wow flip"><?php echo esc_html(get_theme_mod('professional_cleaning_company_project_short_heading'));?></h6>
    	<?php endif; ?>
			<?php if ( get_theme_mod('professional_cleaning_company_project_heading') ) : ?>
    		<h2 class="text-center mb-5 wow flip"><?php echo esc_html(get_theme_mod('professional_cleaning_company_project_heading'));?></h2>
    	<?php endif; ?>
			<div class="row">
				<?php $professional_cleaning_company_arr_posts = new WP_Query( $professional_cleaning_company_left_args );
			    if ( $professional_cleaning_company_arr_posts->have_posts() ) :
			      while ( $professional_cleaning_company_arr_posts->have_posts() ) :
			        $professional_cleaning_company_arr_posts->the_post(); ?>
			        <div class="col-lg-4 col-md-6 col-sm-6">
								<div class="services-box mb-4 wow zoomIn">
									<?php
				            if ( has_post_thumbnail() ) :
				              the_post_thumbnail();
				            else:
				              ?>
				              <div class="project-image">
				                <img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/banner.png'; ?>">
				              </div>
				              <?php
				            endif;
				          ?>
									<div class="project-box">
										<div class="row">
											<div class="col-lg-9 col-md-9 col-sm-8 align-self-center">
												<h4><?php the_category(); ?></h4>
												<h3><?php the_title(); ?></h3>
											</div>
											<div class="col-lg-3 col-md-3 col-sm-4 align-self-center">
												<a href="<?php echo esc_url(get_permalink($post->ID)); ?>"><i class="fas fa-arrow-right"></i></a>
											</div>
										</div>
									</div>
            		</div>
							</div>
			    <?php
			    endwhile;
			    wp_reset_postdata();
			    endif; ?>
			</div>
		</div>
	</div>
<?php endif; ?>
