trial_ends_at) ? $subscription->trial_ends_at : $subscription->next_billing_date ); $trialEndLabel = \FluentCart\App\Services\DateTime\DateFormatter::format($trialEndDate, true, $order); $stage = \FluentCart\Framework\Support\Arr::get($reminder, 'stage', ''); $daysBefore = preg_replace('/[^0-9]/', '', $stage); $daysText = !empty($daysBefore) ? sprintf(__('%d days', 'fluent-cart'), $daysBefore) : ''; $renewalAmount = $subscription->recurring_total ?? 0; $billingInterval = $subscription->billing_interval ?? ''; ?>

customer->full_name) ); ?>

' . esc_html($subscription->display_item_name) . '' ); ?>

display_item_name); ?>
()

render('emails.parts.call_to_action_box', [ 'content' => __('Manage your subscription settings, update payment method, or cancel before the trial ends from your account dashboard.', 'fluent-cart'), 'link' => $subscription->getViewUrl('customer'), 'button_text' => __('Manage Subscription', 'fluent-cart'), ]);