<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$job_id = $args['p_id'] ?? get_the_ID();

$skill_terms = get_the_terms( $job_id, 'gigneo_skill' );

if ( empty( $skill_terms ) || ! is_array( $skill_terms ) ) {
	return;
}
?>
<div class="gn-section gn-skills-section">
	<div class="gn-head">
		<h3 class="gn-title"><?php echo esc_html__( 'Required skills', 'gigneo' ); ?></h3>
	</div>
	<div class="gn-body">
		<div class="gn-skills">
			<?php foreach ( $skill_terms as $skill_term ) { ?>
				<span class="gn-status-tag"><?php echo esc_html( $skill_term->name ); ?></span>
			<?php } ?>
		</div>
	</div>
</div>
