trial_ends_at) ? $subscription->trial_ends_at : $subscription->next_billing_date ); $trialEndLabel = $trialEndDate ? \FluentCart\App\Services\DateTime\DateTime::gmtToTimezone($trialEndDate)->format('M d, Y h:i A') : ''; $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->item_name) . '' ); ?>

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'), ]);