Files
wp-multisite-waas/views/payments/tax-details.php
David Stone d88e50df38 Prep Plugin for release on WordPress.org (#23)
* Update translation text domain
* Escape everything that should be escaped.
* Add nonce checks where needed.
* Sanitize all inputs.
* Apply Code style changes across the codebase.
* Correct many deprecation notices.
* Optimize load order of many filters.
* Add Proper Build script
* Use emojii flags
* Fix i18n deprecation  notice for translating too early
* Put all scripts in footer and load async
2025-04-14 11:36:46 -06:00

50 lines
1023 B
PHP

<?php
/**
* Total payments view.
*
* @since 2.0.0
*/
?>
<div id="payments-tax-breakthrough" class="wu-widget-inset">
<table class="wp-list-table widefat striped payments wu-border-0">
<tbody>
<?php if ( ! empty($tax_breakthrough)) : ?>
<?php foreach ($tax_breakthrough as $tax_rate => $tax_total) : ?>
<tr>
<td><?php echo $tax_rate; ?>%</td>
<td><?php echo wu_format_currency($tax_total); ?></td>
</tr>
<?php endforeach; ?>
<?php if ( ! empty($payment)) : ?>
<tr>
<td><span class="wu-font-bold wu-uppercase wu-text-xs wu-text-gray-700"><?php esc_html_e('Total', 'wp-multisite-waas'); ?></span></td>
<td><?php echo wu_format_currency($payment->get_tax_total()); ?></td>
</tr>
<?php endif; ?>
<?php else : ?>
<tr>
<td colspan="2">
<?php esc_html_e('No tax rates.', 'wp-multisite-waas'); ?>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<style>
#wu-line_item_list_table .tablenav.bottom,
#wu-line_item_list_table tfoot {
display: none;
}
</style>