<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
/**
 * HTML Template: Job Posted - Admin Notification
 *
 * Sent to the freelancer when the employer requests a revision.
 *
 * @var string $email_heading
 * @var string $profile_name
 * @var string $job_title
 * @var string $job_link
 * @var string $site_title
 * @var WC_Email $email
 */
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>

	<table role="presentation" cellspacing="0" cellpadding="0"
			style="width: 100%; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;">
		<tr>
			<td style="padding: 40px 20px;">

				<!-- Greeting -->
				<p style="margin: 0 0 20px 0;">
					<?php
					echo esc_html__( 'Hello Admin', 'gigneo' )
					?>
				</p>
				<p style="margin: 0 0 30px 0;">
					<?php
					printf(
					// translators: %s: Profile name
						esc_html__( 'A new job has been posted by %s. The job has been successfully submitted and the job will become visible to eligible users, allowing them to submit proposals and begin the hiring process.', 'gigneo' ),
						'<strong>' . esc_html( $profile_name ) . '</strong>'
					);
					?>
				</p>
				<!-- Section heading -->
				<h3 style="margin: 0 0 15px 0;">
					<?php echo esc_html__( 'Job details', 'gigneo' ); ?>
				</h3>

				<!-- Details table -->
				<table role="presentation" cellspacing="0" cellpadding="0"
						style="width: 100%; background: #F7F7F7; border: 1px solid #f0f0f0; border-radius: 12px; margin: 0 0 30px 0;">
					<tr>
						<td style="padding: 14px 16px; border-bottom: 1px solid #f0f0f0;">
							<?php echo esc_html__( 'Profile name', 'gigneo' ); ?>
						</td>
						<td style="padding: 14px 16px; border-bottom: 1px solid #f0f0f0; text-align: right;">
							<?php echo esc_html( $profile_name ); ?>
						</td>
					</tr>
					<!-- Job Title -->
					<tr>
						<td style="padding: 14px 16px; border-bottom: 1px solid #f0f0f0;">
							<?php echo esc_html__( 'Job title', 'gigneo' ); ?>
						</td>
						<td style="padding: 14px 16px; border-bottom: 1px solid #f0f0f0; text-align: right;">
							<?php echo esc_html( $job_title ); ?>
						</td>
					</tr>

				</table>

				<!-- CTA Button -->
				<table role="presentation" cellspacing="0" cellpadding="0" style="width: 100%; margin: 0 0 30px 0;">
					<tr>
						<td style="text-align: center; padding: 10px 0;">
							<a href="<?php echo esc_url( $job_link ); ?>" target="_blank" rel="noopener">
								<?php echo esc_html__( 'View job', 'gigneo' ); ?> &rarr;
							</a>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>

<?php
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
do_action( 'woocommerce_email_footer', $email );