| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') or die; |
| 4 |
|
| 5 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variables in view files |
| 6 |
?> |
| 7 |
<div class="ff_subscription_payments"> |
| 8 |
<table style="width: 100%;border: 1px solid #cbcbcb;margin-top: 0;" class="table ffp_order_items_table ffp_table table_bordered"> |
| 9 |
<thead> |
| 10 |
<tr> |
| 11 |
<th><?php esc_html_e('Amount', 'fluentform'); ?></th> |
| 12 |
<th><?php esc_html_e('Date', 'fluentform'); ?></th> |
| 13 |
<?php if($config['has_view_action']): ?> |
| 14 |
<th><?php esc_html_e('Actions', 'fluentform'); ?></th> |
| 15 |
<?php endif; ?> |
| 16 |
</tr> |
| 17 |
</thead> |
| 18 |
<tbody> |
| 19 |
<?php foreach ($transactions as $transaction): ?> |
| 20 |
<tr> |
| 21 |
<td> |
| 22 |
<span class="table_payment_amount"><?php echo fluentform_sanitize_html($transaction->formatted_amount); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Formatted amount contains decoded currency symbols ?> <?php echo esc_html(strtoupper($transaction->currency)) ?></span> |
| 23 |
<span class="ff_pay_status_badge ff_pay_status_<?php echo esc_attr($transaction->status); ?>"> |
| 24 |
<?php echo esc_html($transaction->status); ?> |
| 25 |
</span> |
| 26 |
</td> |
| 27 |
<td> |
| 28 |
<?php echo esc_html($transaction->formatted_date); ?> |
| 29 |
</td> |
| 30 |
<?php if($transaction->view_url): ?> |
| 31 |
<td> |
| 32 |
<a class="ff_pat_action_view" href="<?php echo esc_url($transaction->view_url) ?>"><?php echo esc_html($config['view_text']); ?></a> |
| 33 |
</td> |
| 34 |
<?php endif; ?> |
| 35 |
</tr> |
| 36 |
<?php endforeach; ?> |
| 37 |
</tbody> |
| 38 |
</table> |
| 39 |
</div> |
| 40 |
|