| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 |
<?php if ($subscriptions->count() > 0): ?> |
| 3 |
|
| 4 |
<div style="font-size:16px;font-weight:600;color:rgb(44,62,80);margin: 16px 0 0 0;line-height:24px;"> |
| 5 |
<?php echo esc_html__('Subscription Details', 'fluent-cart'); ?> |
| 6 |
</div> |
| 7 |
|
| 8 |
<div style="padding: 6px 0 0 10px; display: flex; flex-direction: column;gap:12px;font-size: 14px;color:#4b5563;"> |
| 9 |
<table role="presentation" |
| 10 |
style="width: 100%;vertical-align: bottom;border-spacing: 0;padding: 0;margin-bottom: 10px;border:none;"> |
| 11 |
<tbody> |
| 12 |
|
| 13 |
|
| 14 |
<?php foreach ($subscriptions as $subs): ?> |
| 15 |
<tr> |
| 16 |
<td style="width: 50%;border:none;padding: 1px 0;vertical-align: middle;"> |
| 17 |
<p style="margin: 0;"> |
| 18 |
<?php echo esc_html($subs->display_item_name); ?> |
| 19 |
</p> |
| 20 |
|
| 21 |
|
| 22 |
</td> |
| 23 |
|
| 24 |
<td style="width: 50%;text-align:right;vertical-align: top;border:none;padding: 1px 0;"> |
| 25 |
<div> |
| 26 |
<?php if (!empty($subs->payment_info)) : ?> |
| 27 |
<span> |
| 28 |
<?php echo $subs->payment_info; // @phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 29 |
</span> |
| 30 |
<?php endif; ?> |
| 31 |
|
| 32 |
<?php if (!empty($subs->next_billing_date)) : ?> |
| 33 |
<p style="font-size:12px;color:rgb(75,85,99);line-height:20px;margin: 3px 0 0 0;"> |
| 34 |
<?php |
| 35 |
printf( |
| 36 |
/* translators: %s is the auto-renewal date and time */ |
| 37 |
esc_html__('- Auto renews on %s', 'fluent-cart'), |
| 38 |
esc_html( |
| 39 |
\FluentCart\App\Services\DateTime\DateTime::gmtToTimezone($subs->next_billing_date)->format('M d, Y h:i A') |
| 40 |
) |
| 41 |
); |
| 42 |
?> |
| 43 |
</p> |
| 44 |
<?php endif; ?> |
| 45 |
</div> |
| 46 |
</td> |
| 47 |
</tr> |
| 48 |
<?php endforeach; ?> |
| 49 |
</tbody> |
| 50 |
</table> |
| 51 |
</div> |
| 52 |
<?php endif; ?> |
| 53 |
|