<?php
/**
 * Paid Referral Email Content Template
 *
 * Displays paid referral confirmation to affiliates.
 *
 * @since 2.15.0
 * @package wc-affiliate
 * @var string $greeting Greeting HTML
 * @var string $highlight Highlight HTML
 * @var string $stats Stats HTML
 * @var string $message Paid referral message
 * @var string $referral_id Referral ID
 * @var string $order_id Order ID
 * @var string $amount Paid amount
 * @var string $currency Currency symbol
 * @var string $order_date Order date
 * @var string $dashboard_url Dashboard URL
 * @var string $button Button HTML
 * @var string $signature Signature HTML
 */

?>

<?php echo $greeting; ?>

<?php echo $highlight; ?>

<p><?php echo nl2br( esc_html( $message ) ); ?></p>

<?php echo $stats; ?>

<p>Great news! One of your referrals has been successfully paid out. The commission has been credited to your account balance.</p>

<p><strong>Referral Payment Details:</strong></p>
<ul>
	<li><strong>Referral ID:</strong> #<?php echo esc_html( $referral_id ); ?></li>
	<li><strong>Order ID:</strong> #<?php echo esc_html( $order_id ); ?></li>
	<li><strong>Commission Earned:</strong> <span style="color: #059669; font-weight: bold;"><?php echo esc_html( $currency . number_format( $amount, 2 ) ); ?></span></li>
	<li><strong>Order Date:</strong> <?php echo esc_html( $order_date ); ?></li>
</ul>

<p>This commission has been added to your available balance and can be requested for payout at any time. Keep up the excellent work promoting our products!</p>

<p><strong>Next Steps:</strong></p>
<ul>
	<li>Continue sharing your affiliate links</li>
	<li>Monitor your performance in the dashboard</li>
	<li>Request a payout when ready (minimum threshold applies)</li>
</ul>

<?php echo $button; ?>

<p>Thank you for being a valued member of our affiliate program. Your efforts are making a real difference!</p>

<?php echo $signature; ?>
