<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$proposal_id  = $args['p_id'] ?? '';
$cover_letter = gigneo_post_meta( $proposal_id, '_gigneo_pm_cover_letter' );
$allowed_tags = gigneo_allowed_html_tags();

if ( empty( $cover_letter ) ) {
	return;
}
?>
<div class="gn-section gn-cover-letter-section">
	<div class="gn-head">
		<h3 class="gn-title"><?php echo esc_html__( 'Cover letter', 'gigneo' ); ?></h3>
	</div>
	<div class="gn-body">
		<div class="gn-editor-content">
			<pre class="gn-pre"><?php echo wp_kses( $cover_letter, $allowed_tags ); ?></pre>
		</div>
	</div>
</div>