<?php if ( true == get_theme_mod( 'elite_security_guard_services_on_off', 'off' ) ) : ?>

<?php $services_count = get_theme_mod('elite_security_guard_services_count'); ?>

<section id="home_services" class="pb-5">
	<div class="container">
		<div class="services_main_box wow fadeInUp" data-wow-duration="2s">
			<div class="owl-carousel">
				<?php for ($i=1; $i <= $services_count; $i++) {
					$elite_security_guard_services_image = get_theme_mod('elite_security_guard_services_image'.$i);
					$elite_security_guard_services_heading = get_theme_mod('elite_security_guard_services_heading'.$i);
					$elite_security_guard_services_heading_link = get_theme_mod('elite_security_guard_services_heading_link'.$i); 
					$elite_security_guard_services_text = get_theme_mod('elite_security_guard_services_text'.$i); ?>
					<div class="services_content_box">
						<?php if ( ! empty( $elite_security_guard_services_image ) ) : ?>
							<img src="<?php echo esc_url( $elite_security_guard_services_image ); ?>">
						<?php endif; ?>
						<div class="p-3">
							<?php if ( ! empty( $elite_security_guard_services_heading ) ) : ?>
								<h3><a href="<?php echo esc_url( $elite_security_guard_services_heading_link ); ?>"><?php echo esc_html( $elite_security_guard_services_heading ); ?></a></h3>
							<?php endif; ?>
							<?php if ( ! empty( $elite_security_guard_services_text ) ) : ?>
								<p class="mb-0"><?php echo esc_html( $elite_security_guard_services_text ); ?></p>
							<?php endif; ?>
						</div>
					</div>
				<?php } ?>
			</div>
		</div>
	</div>
</section>

<?php endif; ?>