PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.5.2
LatePoint – Calendar Booking Plugin for Appointments and Events v5.5.2
5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / lib / views / invoices / summary_before_payment.php
latepoint / lib / views / invoices Last commit date
payment_form 1 year ago edit_data.php 4 months ago email_form.php 1 year ago new_form.php 4 months ago payment_form.php 1 year ago summary_before_payment.php 1 year ago view.php 1 year ago view_by_key.php 1 year ago
summary_before_payment.php
62 lines
1 <?php
2 /*
3 * Copyright (c) 2024 LatePoint LLC. All rights reserved.
4 */
5
6 /* @var $in_lightbox bool */
7 /* @var $order OsOrderModel */
8 /* @var $invoice OsInvoiceModel */
9 /* @var $order_item OsOrderItemModel */
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit; // Exit if accessed directly
13 }
14 ?>
15 <?php if(!$in_lightbox){ ?><form class="clean-layout-content-wrapper invoice-payment-summary-wrapper latepoint-transaction-payment-form"><?php } ?>
16 <?php if($in_lightbox) echo '<div class="latepoint-lightbox-heading"><h2>'.esc_html__('Balance Details', 'latepoint').'</h2></div>'; ?>
17 <div class=" <?php echo $in_lightbox ? 'latepoint-lightbox-content invoice-payment-summary-wrapper' : 'clean-layout-content-body is-dotted'; ?>">
18 <div class="invoice-due-amount-wrapper">
19 <div class="invoice-due-amount-inner">
20 <div class="id-amount"><?php echo OsMoneyHelper::format_price($invoice->charge_amount, true, false); ?></div>
21 <div class="id-sub-info">
22 <?php esc_html_e('Order:', 'latepoint'); ?>
23 <a href="<?php echo $order->manage_by_key_url('customer') ?>" target="_blank"><span><?php echo $order->confirmation_code; ?></span><i class="latepoint-icon latepoint-icon-external-link"></i></a>
24
25 <?php if ( $invoice->status == LATEPOINT_INVOICE_STATUS_PAID || $invoice->get_successful_payments() ) { ?>
26 <a target="_blank" href="<?php echo OsOrdersHelper::generate_direct_manage_order_url( $invoice->get_order(), 'customer', 'list_payments' ) ?>"><span><?php esc_html_e( 'Payments', 'latepoint' ); ?></span><i class="latepoint-icon latepoint-icon-external-link"></i></a>
27 <?php } ?>
28 </div>
29 </div>
30 <?php if($invoice->status == LATEPOINT_INVOICE_STATUS_OPEN){ ?>
31 <a href="#"
32 data-os-params="<?php echo esc_attr( http_build_query( [ 'key' => $invoice->access_key, 'in_lightbox' => ($in_lightbox ? 'yes' : 'no') ] ) ); ?>"
33 data-os-action="<?php echo esc_attr( OsRouterHelper::build_route_name( 'invoices', 'payment_form' ) ); ?>"
34 data-os-after-call="latepoint_init_transaction_payment_form"
35 data-os-output-target="<?php echo $in_lightbox ? 'lightbox' : '.clean-layout-content-wrapper'; ?>"
36 data-os-lightbox-no-close-button="yes"
37 data-os-lightbox-inner-tag="form"
38 data-os-lightbox-inner-classes="latepoint-transaction-payment-form"
39 data-os-lightbox-classes="width-500"
40 class="latepoint-btn invoice-make-payment-btn">
41 <span><?php echo sprintf( __( 'Pay Now', 'latepoint' ), OsMoneyHelper::format_price( $order->get_total_balance_due(), true, false ) ); ?></span>
42 <i class="latepoint-icon latepoint-icon-arrow-right1"></i>
43 </a>
44 <?php }else{
45 echo '<span class="invoice-status-label invoice-status-label-'.esc_attr($invoice->status).'">'.esc_html(OsInvoicesHelper::readable_status($invoice->status)).'</span>';
46 } ?>
47 </div>
48 <div class="full-summary-info-w">
49 <div class="summary-price-breakdown-wrapper">
50 <div class="pb-heading">
51 <div class="pbh-label"><?php esc_html_e( 'Order Breakdown', 'latepoint' ); ?></div>
52 <div class="pbh-line"></div>
53 </div>
54 <?php
55 $price_breakdown_rows = $order->generate_price_breakdown_rows();
56 OsPriceBreakdownHelper::output_price_breakdown( $price_breakdown_rows );
57 ?>
58 </div>
59 </div>
60 </div>
61 <?php if(!$in_lightbox){ ?></form><?php } ?>
62