<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
	/**
		 * Fires before the overview widget content.
		 *
		 * @since 3.0.0
		 *
		 * @param string $widget_id Overview widget ID.
		 */
		do_action( 'before_awsm_jobs_overview_widget_content', $widget_id );
?>
<div class="awsm-jobs-overview-col-content">
	<div class="<?php echo esc_attr( "awsm-jobs-overview-widget-wrapper awsm-jobs-overview-{$widget_id}-widget-wrapper" ); ?>">
		<?php
		$analytics_data = AWSM_Job_Openings_Overview::get_applications_analytics_data();
		if ( ! empty( $analytics_data ) ) :
			?>
			<div class="awsm-jobs-overview-chart-wrapper">
				<canvas id="awsm-jobs-overview-applications-analytics-chart"></canvas>
			</div>
		
		<?php else : ?>
			<div class="awsm-jobs-overview-empty-wrapper">
				<img src="<?php echo esc_url( AWSM_JOBS_PLUGIN_URL . '/assets/img/applications-analytics-chart.png' ); ?>">
				<p><img src="<?php echo esc_url( AWSM_JOBS_PLUGIN_URL . '/assets/img/icon-3.svg' ); ?>" align="Icon"> <?php esc_html_e( 'Awaiting applications', 'wp-job-openings' ); ?></p>
			</div>
			<?php
			endif;

			/**
			 * Fires after the overview widget content.
			 *
			 * @since 3.0.0
			 *
			 * @param string $widget_id Overview widget ID.
			 */
			do_action( 'after_awsm_jobs_overview_widget_content', $widget_id );
		?>
	</div>
</div>
