_balance_and_payments.php
1 year ago
_full_summary.php
1 year ago
_price_breakdown.php
1 year ago
_table_body.php
1 year ago
_transaction_box.php
1 year ago
index.php
1 year ago
quick_edit.php
1 year ago
reload_balance_and_payments.php
1 year ago
reload_price_breakdown.php
1 year ago
view_order_log.php
1 year ago
_transaction_box.php
37 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Copyright (c) 2024 LatePoint LLC. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | /* @var $transaction OsTransactionModel */ |
| 7 | |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; // Exit if accessed directly |
| 10 | } |
| 11 | |
| 12 | |
| 13 | ?> |
| 14 | <div class="quick-transaction-info-w" |
| 15 | data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('transactions', 'edit_form')); ?>" |
| 16 | data-os-params="<?php echo esc_attr(OsUtilHelper::build_os_params(['id' => $transaction->id])); ?>" |
| 17 | data-os-after-call="latepoint_init_quick_transaction_form" |
| 18 | data-os-before-after="replace"> |
| 19 | <?php if($transaction->get_refunds()){ ?> |
| 20 | <?php |
| 21 | foreach($transaction->get_refunds() as $refund) { |
| 22 | echo '<div class="quick-transaction-refunds-info">'; |
| 23 | echo sprintf(esc_html__('Refunded %s on %s', 'latepoint'), OsMoneyHelper::format_price($refund->amount, true, false), $refund->readable_created_date()); |
| 24 | echo '</div>'; |
| 25 | } |
| 26 | ?> |
| 27 | <?php } ?> |
| 28 | <div class="quick-transaction-head"> |
| 29 | <div class="quick-transaction-amount"><?php echo esc_html(OsMoneyHelper::format_price($transaction->amount, true, false)); ?></div> |
| 30 | <div class="lp-processor-logo lp-processor-logo-<?php echo esc_attr($transaction->processor); ?>"><?php echo esc_html($transaction->processor); ?></div> |
| 31 | <div class="lp-transaction-status lp-transaction-status-<?php echo esc_attr($transaction->status); ?>"><?php echo esc_html($transaction->status); ?></div> |
| 32 | </div> |
| 33 | <div class="quick-transaction-sub"> |
| 34 | <div><?php echo esc_html($transaction->readable_created_date()); ?></div> |
| 35 | <div><?php echo esc_html($transaction->token); ?></div> |
| 36 | </div> |
| 37 | </div> |