<?php
$bg_img = ( $bg_img ) ? $bg_img : get_template_directory_uri() . '/assets/images/resource/image-4.jpg';
?>
<!--Full Width Section-->
<section class="full-width-section">
	<div class="outer-box clearfix">
		<div class="content-column" style="background-image:url(<?php echo esc_url( $bg_img ); ?>);">
			<div class="content">
				<div class="sec-title light">
					<h2><?php echo wp_kses_post( $title );  ?></h2>
				</div>
				<div class="text"><?php echo wp_kses_post( $text );  ?></div>
				<!--Fact Counter-->
				<div class="fact-counter">
					<div class="row clearfix">
							
						<?php  if ( $portfolios ) :  ?>

							<?php foreach( $portfolios as $portfolio ) :   ?>

								<!--Column-->
								<div class="column counter-column col-md-6 col-sm-6 col-xs-12">
									<div class="inner">
										<div class="count-outer count-box">
											<span class="icon <?php echo esc_attr( $portfolio->portfolio_icon ); ?>"></span>
											<span class="count-text" data-speed="3000" data-stop="<?php echo esc_attr( $portfolio->portfolio_no ); ?>">0</span>
											<?php if ( $portfolio->portfolio_plus ) : ?>
												<span class="plus-icon">+</span>
											<?php endif; ?>
										</div>
										<h4 class="counter-title"><?php echo wp_kses_post( $portfolio->portfolio_title ); ?></h4>
									</div>
								</div>

							<?php endforeach; ?>
							
						<?php endif; ?>
						
					</div>

				</div>
			</div>
		</div>
		<div class="form-column">
			<div class="form-inner">

				<!-- Default Form -->
				<div class="default-form style-three">
					<!--Comment Form-->
					<?php if ( $quote_form ) : ?>

						<?php echo do_shortcode( '[contact-form-7 id="'.$quote_form.'"]' ); ?>

					<?php endif; ?>

				</div>
				<!--End Default Form -->
			</div>
		</div>
	</div>
</section>