PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.5.4
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.5.4
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
fluent-cart / app / Views / emails / subscription / canceled / admin.php

admin.php in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler 1.5.4, at app/Views/emails/subscription/canceled/admin.php

62 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2 <?php
3 /**
4 * @var \FluentCart\App\Models\Subscription $subscription
5 * @var \FluentCart\App\Models\Order $order
6 * @var string $reason
7 */
8
9 $renewalAmount = $subscription->recurring_total ?? 0;
10 $billingInterval = $subscription->billing_interval ?? '';
11 $accessUntilLabel = !empty($subscription->next_billing_date)
12 ? \FluentCart\App\Services\DateTime\DateTime::gmtToTimezone($subscription->next_billing_date)->format('M d, Y')
13 : '';
14 ?>
15
16 <div class="space_bottom_30">
17 <p><?php esc_html_e('A subscription has been canceled.', 'fluent-cart'); ?></p>
18 <table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="border:1px solid #e5e7eb;border-radius:8px;padding:14px 16px;margin:12px 0 0;">
19 <tbody>
20 <tr>
21 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Customer', 'fluent-cart'); ?></td>
22 <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>
23 </tr>
24 <tr>
25 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Subscription', 'fluent-cart'); ?></td>
26 <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>
27 </tr>
28 <?php if ($renewalAmount): ?>
29 <tr>
30 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Amount', 'fluent-cart'); ?></td>
31 <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;">
32 <?php echo esc_html(\FluentCart\Api\CurrencySettings::getFormattedPrice($renewalAmount, null, false, true, true)); ?>
33 <?php if ($billingInterval): ?>
34 <span style="font-size:12px;font-weight:400;color:#6b7280;">(<?php echo esc_html($billingInterval); ?>)</span>
35 <?php endif; ?>
36 </td>
37 </tr>
38 <?php endif; ?>
39 <?php if (!empty($reason)): ?>
40 <tr>
41 <td style="font-size:13px;color:#6b7280;padding:0 0 6px;"><?php esc_html_e('Reason', 'fluent-cart'); ?></td>
42 <td style="font-size:13px;color:#111827;font-weight:600;padding:0 0 6px;text-align:right;"><?php echo esc_html($reason); ?></td>
43 </tr>
44 <?php endif; ?>
45 <?php if ($accessUntilLabel): ?>
46 <tr>
47 <td style="font-size:13px;color:#6b7280;padding:0;"><?php esc_html_e('Access Until', 'fluent-cart'); ?></td>
48 <td style="font-size:13px;color:#111827;font-weight:600;padding:0;text-align:right;"><?php echo esc_html($accessUntilLabel); ?></td>
49 </tr>
50 <?php endif; ?>
51 </tbody>
52 </table>
53 </div>
54
55 <?php
56 \FluentCart\App\App::make('view')->render('emails.parts.call_to_action_box', [
57 'content' => esc_html__('You can review subscription details and take action if needed from the admin dashboard.', 'fluent-cart'),
58 'link' => $subscription->getViewUrl('admin'),
59 'button_text' => __('View Subscription', 'fluent-cart'),
60 ]);
61 ?>
62