<div class="st-tour-feature">
	<div class="row">
		<div class="col-xs-6 col-lg-3">
			<div class="item">
				<div class="icon">
				<?php echo htmlspecialchars_decode( $icon_duration_single_activity ); ?>
				</div>
				<div class="info">
					<div class="name"><?php echo __( 'Duration', 'traveler' ); ?></div>
					<p class="value">
					<?php
						$duration = get_post_meta( get_the_ID(), 'duration', true );
						echo esc_html( $duration );
					?>
					</p>
				</div>
			</div>
		</div>
		<div class="col-xs-6 col-lg-3">
			<div class="item">
				<div class="icon">
					<?php echo htmlspecialchars_decode( $icon_cancel_single_activity ); ?>
				</div>
				<div class="info">
					<div class="name"><?php echo __( 'Cancellation', 'traveler' ); ?></div>
					<p class="value">
						<?php
						$cancellation     = get_post_meta( get_the_ID(), 'st_allow_cancel', true );
						$cancellation_day = (int) get_post_meta( get_the_ID(), 'st_cancel_number_days', true );
						if ( $cancellation == 'on' ) {
							echo sprintf( _n( 'Up to %s day', 'Up to %s days', $cancellation_day, 'traveler' ), $cancellation_day );
						} else {
							echo __( 'No Cancellation', 'traveler' );
						}
						?>
					</p>
				</div>
			</div>
		</div>
		<div class="col-xs-6 col-lg-3">
			<div class="item">
				<div class="icon">
					<?php echo htmlspecialchars_decode( $icon_groupsize_single_activity ); ?>
				</div>
				<div class="info">
					<div class="name"><?php echo __( 'Group Size', 'traveler' ); ?></div>
					<p class="value">
						<?php
						$max_people = get_post_meta( get_the_ID(), 'max_people', true );
						if ( empty( $max_people ) || $max_people == 0 || $max_people < 0 ) {
							echo __( 'Unlimited', 'traveler' );
						} else {
							echo sprintf( __( '%s people', 'traveler' ), $max_people );
						}
						?>
					</p>
				</div>
			</div>
		</div>
		<div class="col-xs-6 col-lg-3">
			<div class="item">
				<div class="icon">
					<?php echo htmlspecialchars_decode( $icon_language_single_activity ); ?>
				</div>
				<div class="info">
					<div class="name"><?php echo __( 'Languages', 'traveler' ); ?></div>
					<p class="value">
						<?php
						$term_list    = wp_get_post_terms( get_the_ID(), 'languages' );
						$str_term_arr = [];
						if ( ! is_wp_error( $term_list ) && ! empty( $term_list ) ) {
							foreach ( $term_list as $k => $v ) {
								array_push( $str_term_arr, $v->name );
							}

							echo implode( ', ', $str_term_arr );
						} else {
							echo '___';
						}
						?>
					</p>
				</div>
			</div>
		</div>
	</div>
	</div>
