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