| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 |
<?php |
| 3 |
/** |
| 4 |
* @var \FluentCart\App\Models\Subscription $subscription |
| 5 |
* @var \FluentCart\App\Models\Order $order |
| 6 |
*/ |
| 7 |
?> |
| 8 |
|
| 9 |
<div class="space_bottom_30"> |
| 10 |
<p><?php echo esc_html__('Hey there,', 'fluent-cart'); ?></p> |
| 11 |
<p> |
| 12 |
<?php |
| 13 |
printf( |
| 14 |
/* translators: 1: customer full name, 2: subscription item name */ |
| 15 |
esc_html__( 'The subscription for %1$s to %2$s has been marked as past due. The renewal order has exceeded the grace period without payment.', 'fluent-cart' ), |
| 16 |
esc_html($subscription->customer->full_name), |
| 17 |
esc_html( $subscription->item_name ) |
| 18 |
); |
| 19 |
?> |
| 20 |
</p> |
| 21 |
</div> |
| 22 |
|
| 23 |
<?php |
| 24 |
|
| 25 |
\FluentCart\App\App::make('view')->render('emails.parts.items_table', [ |
| 26 |
'order' => $order, |
| 27 |
'formattedItems' => $order->order_items, |
| 28 |
'heading' => __('Unpaid Renewal', 'fluent-cart'), |
| 29 |
]); |
| 30 |
|
| 31 |
echo '<hr />'; |
| 32 |
|
| 33 |
\FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [ |
| 34 |
'content' => __('To review this subscription and take action, please check the subscription detail page.', 'fluent-cart'), |
| 35 |
'link' => $order->getViewUrl('admin'), |
| 36 |
'button_text' => __('View Details', 'fluent-cart'), |
| 37 |
]); |
| 38 |
|