_balance_and_payments.php
1 year ago
_full_summary.php
1 year ago
_price_breakdown.php
1 year ago
_table_body.php
3 months ago
_transaction_box.php
1 year ago
index.php
1 year ago
quick_edit.php
9 months ago
reload_balance_and_payments.php
1 year ago
reload_price_breakdown.php
1 year ago
view_order_log.php
1 year ago
_table_body.php
39 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Copyright (c) 2023 LatePoint LLC. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | /* @var $orders OsOrderModel[] */ |
| 7 | /* @var $customer_name_query string */ |
| 8 | |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; // Exit if accessed directly |
| 12 | } |
| 13 | |
| 14 | |
| 15 | if ($orders) { |
| 16 | foreach ($orders as $order) { ?> |
| 17 | <tr class="os-clickable-row" <?php echo OsOrdersHelper::quick_order_btn_html($order->id); ?>> |
| 18 | <td class="text-center os-column-faded"><?php echo esc_html($order->id); ?></td> |
| 19 | <td> |
| 20 | <?php if ($order->customer_id) { ?> |
| 21 | <a class="os-with-avatar" target="_blank" <?php echo OsCustomerHelper::quick_customer_btn_html($order->customer->id); ?> href="#"> |
| 22 | <span class="os-avatar" style="background-image: url(<?php echo esc_url($order->customer->get_avatar_url()); ?>)"></span> |
| 23 | <span class="os-name"><?php echo esc_html($order->customer->full_name); ?></span> |
| 24 | <i class="latepoint-icon latepoint-icon-external-link"></i> |
| 25 | </a> |
| 26 | <?php } else { |
| 27 | echo 'n/a'; |
| 28 | } ?> |
| 29 | </td> |
| 30 | <td><?php echo esc_html(OsMoneyHelper::format_price($order->total, true, false)); ?></td> |
| 31 | <td><span class="lp-order-status lp-order-status-<?php echo esc_attr($order->status); ?>"><?php echo esc_html(OsOrdersHelper::get_nice_order_status_name($order->status)); ?></span> |
| 32 | <td><span class="lp-order-status lp-order-status-<?php echo esc_attr($order->payment_status); ?>"><?php echo esc_html(OsOrdersHelper::get_nice_order_payment_status_name($order->payment_status)); ?></span> |
| 33 | <td><span class="lp-order-status lp-order-status-<?php echo esc_attr($order->fulfillment_status); ?>"><?php echo esc_html(OsOrdersHelper::get_nice_order_fulfillment_status_name($order->fulfillment_status)); ?></span> |
| 34 | <td><?php echo esc_html($order->confirmation_code); ?></td> |
| 35 | <td><?php echo esc_html($order->readable_created_date()); ?></td> |
| 36 | </tr> |
| 37 | <?php |
| 38 | } |
| 39 | } ?> |