<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Plain Text Template: Service Approved
 *
 * Sent to the freelancer when their service is approved by an admin.
 *
 * @var string   $email_heading
 * @var string   $recipient_name
 * @var string   $service_title
 * @var int      $service_id
 * @var string   $service_link
 * @var string   $freelancer_label
 * @var bool     $sent_to_admin
 * @var bool     $plain_text
 * @var WC_Email $email
 */

echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
echo esc_html( wp_strip_all_tags( $email_heading ) );
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";

/* Greeting */
printf(
	// translators: %s: Recipient name.
	esc_html__( 'Hello %s,', 'gigneo' ),
	esc_html( $recipient_name )
);
echo "\n\n";

/* Introduction */
printf(
	// translators: %s: Service title.
	esc_html__( 'Congratulations! Your service "%s" has been approved and is now live on our marketplace.', 'gigneo' ),
	esc_html( $service_title )
);
echo "\n\n";

/* Section heading */
echo esc_html__( 'Service summary', 'gigneo' );
echo "\n----------\n\n";

/* Service ID */
echo esc_html__( 'Service ID:', 'gigneo' ) . ' ' . esc_html( gigneo_format_id( $service_id, 'service', false ) );
echo "\n";

/* Service Title */
echo esc_html__( 'Service title:', 'gigneo' ) . ' ' . esc_html( $service_title );
echo "\n\n";

/* CTA link */
echo esc_html__( 'View live service:', 'gigneo' ) . ' ' . esc_url( $service_link );
echo "\n\n";

/* Closing note */
echo esc_html__( 'Your service is now visible to potential employers. Good luck with your sales!', 'gigneo' );
echo "\n\n";

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