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

<?php $event_planning_management_left_args = array(
  'post_type' => 'post',
  'post_status' => 'publish',
  'category_name' =>  get_theme_mod('event_planning_management_services_category'),
  'posts_per_page' => get_theme_mod('event_planning_management_services_number'),
); ?>

	<div id="trending" class="py-5">
		<div class="container">
			<div class="text-center">
				<?php if ( get_theme_mod('event_planning_management_services_short_heading') ) : ?>
	    		<h6 class="mb-3 wow flip"><?php echo esc_html(get_theme_mod('event_planning_management_services_short_heading'));?></h6>
	    	<?php endif; ?>
				<?php if ( get_theme_mod('event_planning_management_services_heading') ) : ?>
	    		<h2 class="mb-0 wow fadeInUp"><?php echo esc_html(get_theme_mod('event_planning_management_services_heading'));?></h2>
	    	<?php endif; ?>
	    </div>
			<div class="row mt-5">
				<?php $event_planning_management_arr_posts = new WP_Query( $event_planning_management_left_args );
			    if ( $event_planning_management_arr_posts->have_posts() ) :
			      while ( $event_planning_management_arr_posts->have_posts() ) :
			        $event_planning_management_arr_posts->the_post(); ?>
			        <div class="col-lg-4 col-md-6 col-sm-6">
			        	<div class="outer-box wow zoomIn">
				        	<div class="box mb-3">
		                <?php
					            if ( has_post_thumbnail() ) :
					              the_post_thumbnail();
					            else:
					              ?>
					              <div class="slider-alternate">
					                <img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/banner.png'; ?>">
					              </div>
					              <?php
					            endif;
					          ?>
		                <div class="box-content">
	                    <h3 class="title"><?php the_title(); ?></h3>
	                    <span class="post"><a href="<?php echo esc_url(get_permalink($post->ID)); ?>"><i class="fas fa-arrow-right"></i></a></span>
		                </div>	                
			            </div>
			            <div class="outer-title">
	                	<h3 class="py-3"><?php the_title(); ?></h3>
	                </div>
								</div>
							</div>
			    <?php
			    endwhile;
			    wp_reset_postdata();
			    endif; ?>
			</div>
		</div>
	</div>
<?php endif; ?>