| @@ -7,8 +7,9 @@ | ||
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | $renewalAmount = $subscription->recurring_total ?? 0; |
| 10 | 10 | $billingInterval = $subscription->billing_interval ?? ''; |
| 11 | +$accessUntilLabel = \FluentCart\App\Services\DateTime\DateFormatter::format($subscription->next_billing_date, false, $order); | |
| 11 | 12 | ?> |
| 12 | 13 | |
| 13 | 14 | <div class="space_bottom_30"> |
| 14 | 15 | <p><?php esc_html_e('A subscription has been canceled.', 'fluent-cart'); ?></p> |
| @@ -19,9 +20,9 @@ | ||
| 19 | 20 | <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> |
| 20 | 21 | </tr> |
| 21 | 22 | <tr> |
| 22 | 23 | <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Subscription', 'fluent-cart'); ?></td> |
| 23 | - <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> | |
| 24 | + <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> | |
| 24 | 25 | </tr> |
| 25 | 26 | <?php if ($renewalAmount): ?> |
| 26 | 27 | <tr> |
| 27 | 28 | <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Amount', 'fluent-cart'); ?></td> |
| @@ -34,10 +35,16 @@ | ||
| 34 | 35 | </tr> |
| 35 | 36 | <?php endif; ?> |
| 36 | 37 | <?php if (!empty($reason)): ?> |
| 37 | 38 | <tr> |
| 38 | - <td style="font-size:13px;color:#6b7280;padding:0;"><?php esc_html_e('Reason', 'fluent-cart'); ?></td> | |
| 39 | - <td style="font-size:13px;color:#111827;font-weight:600;padding:0;text-align:right;"><?php echo esc_html($reason); ?></td> | |
| 39 | + <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Reason', 'fluent-cart'); ?></td> | |
| 40 | + <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;"><?php echo esc_html($reason); ?></td> | |
| 41 | + </tr> | |
| 42 | + <?php endif; ?> | |
| 43 | + <?php if ($accessUntilLabel): ?> | |
| 44 | + <tr> | |
| 45 | + <td style="font-size:13px;color:#6b7280;padding:0;"><?php esc_html_e('Access Until', 'fluent-cart'); ?></td> | |
| 46 | + <td style="font-size:13px;color:#111827;font-weight:600;padding:0;text-align:right;"><?php echo esc_html($accessUntilLabel); ?></td> | |
| 40 | 47 | </tr> |
| 41 | 48 | <?php endif; ?> |
| 42 | 49 | </tbody> |
| 43 | 50 | </table> |