| @@ -9,9 +9,9 @@ | ||
| 9 | 9 | $reminder = (isset($reminder) && is_array($reminder)) ? $reminder : []; |
| 10 | 10 | $trialEndDate = \FluentCart\Framework\Support\Arr::get($reminder, 'trial_end_date', |
| 11 | 11 | !empty($subscription->trial_ends_at) ? $subscription->trial_ends_at : $subscription->next_billing_date |
| 12 | 12 | ); |
| 13 | -$trialEndLabel = $trialEndDate ? \FluentCart\App\Services\DateTime\DateTime::gmtToTimezone($trialEndDate)->format('M d, Y h:i A') : ''; | |
| 13 | +$trialEndLabel = \FluentCart\App\Services\DateTime\DateFormatter::format($trialEndDate, true, $order); | |
| 14 | 14 | $stage = \FluentCart\Framework\Support\Arr::get($reminder, 'stage', ''); |
| 15 | 15 | $daysBefore = preg_replace('/[^0-9]/', '', $stage); |
| 16 | 16 | $daysText = !empty($daysBefore) ? sprintf(__('%d days', 'fluent-cart'), $daysBefore) : ''; |
| 17 | 17 | $renewalAmount = $subscription->recurring_total ?? 0; |
| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;"><?php echo esc_html($subscription->customer->full_name); ?></td> |
| 28 | 28 | </tr> |
| 29 | 29 | <tr> |
| 30 | 30 | <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Subscription', 'fluent-cart'); ?></td> |
| 31 | - <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;"><?php echo esc_html($subscription->item_name); ?></td> | |
| 31 | + <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;"><?php echo esc_html($subscription->display_item_name); ?></td> | |
| 32 | 32 | </tr> |
| 33 | 33 | <?php if ($daysText): ?> |
| 34 | 34 | <tr> |
| 35 | 35 | <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Trial Ends In', 'fluent-cart'); ?></td> |