| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') or die; |
| 4 |
|
| 5 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variables in view files |
| 6 |
?> |
| 7 |
<table style="width: 100%;border: 1px solid #cbcbcb;margin-top: 0; margin-bottom: 15px;" class="table ffp_order_items_table ffp_table table_bordered"> |
| 8 |
<thead> |
| 9 |
<tr> |
| 10 |
<th><?php esc_html_e('Item', 'fluentform'); ?></th> |
| 11 |
<th><?php esc_html_e('Status', 'fluentform'); ?></th> |
| 12 |
</tr> |
| 13 |
</thead> |
| 14 |
<tbody> |
| 15 |
<?php foreach ($subscriptions as $subscription): ?> |
| 16 |
<tr> |
| 17 |
<td> |
| 18 |
<?php echo esc_html($subscription->plan_name . ' (' . $subscription->item_name . ')'); ?> |
| 19 |
<?php if($subscription->original_plan): ?> |
| 20 |
<p style="margin: 5px 0px 0px;font-size: 90%;"><?php echo fluentform_sanitize_html(\FluentForm\App\Modules\Payments\PaymentHelper::getPaymentSummaryText($subscription->original_plan, $subscription->form_id, $submission->currency, false)); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p> |
| 21 |
<?php endif; ?> |
| 22 |
</td> |
| 23 |
<td><span class="ff_trial_badge"><?php echo esc_html(ucfirst($subscription->status)); ?></span></td> |
| 24 |
</tr> |
| 25 |
<?php endforeach; ?> |
| 26 |
</tbody> |
| 27 |
</table> |
| 28 |
|