PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / trunk
LatePoint – Calendar Booking Plugin for Appointments and Events vtrunk
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 / orders / index.php
latepoint / lib / views / orders Last commit date
_balance_and_payments.php 1 month ago _full_summary.php 1 month 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
index.php
119 lines
1 <?php
2 /*
3 * Copyright (c) 2024 LatePoint LLC. All rights reserved.
4 */
5
6 /* @var $orders OsOrderModel[] */
7 /* @var $showing_from int */
8 /* @var $showing_to int */
9 /* @var $total_orders int */
10 /* @var $per_page int */
11 /* @var $total_pages int */
12 /* @var $current_page_number int */
13
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit; // Exit if accessed directly
16 }
17
18
19 ?>
20 <?php if ($orders) { ?>
21 <div class="table-with-pagination-w has-scrollable-table">
22 <div class="os-pagination-w with-actions">
23 <div class="table-heading-w">
24 <h2 class="table-heading"><?php esc_html_e('Orders', 'latepoint'); ?></h2>
25 <div
26 class="pagination-info"><?php echo esc_html__('Showing', 'latepoint') . ' <span class="os-pagination-from">' . esc_html($showing_from) . '</span>-<span class="os-pagination-to">' . esc_html($showing_to) . '</span> ' . esc_html__('of', 'latepoint') . ' <span class="os-pagination-total">' . esc_html($total_orders) . '</span>'; ?></div>
27 </div>
28 <div class="mobile-table-actions-trigger"><i class="latepoint-icon latepoint-icon-more-horizontal"></i></div>
29 <div class="table-actions">
30 <?php if (OsSettingsHelper::can_download_records_as_csv()) { ?>
31 <a href="<?php echo esc_url(OsRouterHelper::build_admin_post_link(['orders', 'index'])); ?>" target="_blank"
32 class="latepoint-btn latepoint-btn-outline latepoint-btn-grey download-csv-with-filters"><i
33 class="latepoint-icon latepoint-icon-download"></i><span><?php esc_html_e('Download .csv', 'latepoint'); ?></span></a>
34 <?php } ?>
35
36 </div>
37 </div>
38 <div class="os-orders-list">
39 <div class="os-scrollable-table-w">
40 <div class="os-table-w os-table-compact">
41 <table class="os-table os-reload-on-booking-update os-scrollable-table"
42 data-route="<?php echo esc_attr(OsRouterHelper::build_route_name('orders', 'index')); ?>">
43 <thead>
44 <tr>
45 <th><?php esc_html_e('ID', 'latepoint'); ?></th>
46 <th><?php esc_html_e('Customer', 'latepoint'); ?></th>
47 <th><?php esc_html_e('Total', 'latepoint'); ?></th>
48 <th><?php esc_html_e('Status', 'latepoint'); ?></th>
49 <th><?php esc_html_e('Payment Status', 'latepoint'); ?></th>
50 <th><?php esc_html_e('Fulfillment Status', 'latepoint'); ?></th>
51 <th><?php esc_html_e('Confirmation', 'latepoint'); ?></th>
52 <th><?php esc_html_e('Date', 'latepoint'); ?></th>
53 </tr>
54 <tr>
55 <th><?php echo OsFormHelper::text_field('filter[id]', false, '', ['placeholder' => __('ID', 'latepoint'), 'class' => 'os-table-filter', 'style' => 'width: 60px;']); ?></th>
56 <th><?php echo OsFormHelper::text_field('filter[customer][full_name]', false, '', ['placeholder' => __('Customer Name', 'latepoint'), 'class' => 'os-table-filter']); ?></th>
57 <th><?php echo OsFormHelper::text_field('filter[total]', false, '', ['placeholder' => __('Total', 'latepoint'), 'class' => 'os-table-filter']); ?></th>
58 <th><?php echo OsFormHelper::select_field('filter[status]', false, OsOrdersHelper::get_order_statuses_list(), '', ['placeholder' => __('Show All', 'latepoint'), 'class' => 'os-table-filter']); ?></th>
59 <th><?php echo OsFormHelper::select_field('filter[payment_status]', false, OsOrdersHelper::get_order_payment_statuses_list(), '', ['placeholder' => __('Show All', 'latepoint'), 'class' => 'os-table-filter']); ?></th>
60 <th><?php echo OsFormHelper::select_field('filter[fulfillment_status]', false, OsOrdersHelper::get_fulfillment_statuses_list(), '', ['placeholder' => __('Show All', 'latepoint'), 'class' => 'os-table-filter']); ?></th>
61 <th><?php echo OsFormHelper::text_field('filter[confirmation_code]', false, '', ['placeholder' => __('Confirmation', 'latepoint'), 'class' => 'os-table-filter']); ?></th>
62 <th>
63 <div class="os-form-group">
64 <div class="os-date-range-picker os-table-filter-datepicker" data-can-be-cleared="yes"
65 data-no-value-label="<?php esc_attr_e('Filter By Date', 'latepoint'); ?>"
66 data-clear-btn-label="<?php esc_attr_e('Reset Date Filtering', 'latepoint'); ?>">
67 <span class="range-picker-value"><?php esc_html_e('Filter By Date', 'latepoint'); ?></span>
68 <i class="latepoint-icon latepoint-icon-chevron-down"></i>
69 <input type="hidden" class="os-table-filter os-datepicker-date-from" name="filter[created_at_from]"
70 value=""/>
71 <input type="hidden" class="os-table-filter os-datepicker-date-to" name="filter[created_at_to]"
72 value=""/>
73 </div>
74 </div>
75 </th>
76 </tr>
77 </thead>
78 <tbody>
79 <?php include '_table_body.php'; ?>
80 </tbody>
81 <tfoot>
82 <tr>
83 <th><?php esc_html_e('ID', 'latepoint'); ?></th>
84 <th><?php esc_html_e('Customer', 'latepoint'); ?></th>
85 <th><?php esc_html_e('Total', 'latepoint'); ?></th>
86 <th><?php esc_html_e('Status', 'latepoint'); ?></th>
87 <th><?php esc_html_e('Payment Status', 'latepoint'); ?></th>
88 <th><?php esc_html_e('Fulfillment Status', 'latepoint'); ?></th>
89 <th><?php esc_html_e('Confirmation', 'latepoint'); ?></th>
90 <th><?php esc_html_e('Date', 'latepoint'); ?></th>
91 </tr>
92 </tfoot>
93 </table>
94 </div>
95 </div>
96 <div class="os-pagination-w">
97 <div
98 class="pagination-info"><?php echo esc_html__('Showing', 'latepoint') . ' <span class="os-pagination-from">' . esc_html($showing_from) . '</span>-<span class="os-pagination-to">' . esc_html($showing_to) . '</span> ' . esc_html__('of', 'latepoint') . ' <span class="os-pagination-total">' . esc_html($total_orders) . '</span>'; ?></div>
99 <div class="pagination-page-select-w">
100 <label for="tablePaginationPageSelector"><?php esc_html_e('Page:', 'latepoint'); ?></label>
101 <select id="tablePaginationPageSelector" name="page" class="pagination-page-select">
102 <?php
103 for ($i = 1; $i <= $total_pages; $i++) {
104 $selected = ($current_page_number == $i) ? 'selected' : '';
105 echo '<option ' . esc_attr($selected) . '>' . esc_html($i) . '</option>';
106 } ?>
107 </select>
108 </div>
109 </div>
110 </div>
111
112 </div>
113 <?php } else { ?>
114 <div class="no-results-w">
115 <div class="icon-w"><i class="latepoint-icon latepoint-icon-credit-card"></i></div>
116 <h2><?php esc_html_e('No Orders Found', 'latepoint'); ?></h2>
117 <a href="#" <?php echo OsOrdersHelper::quick_order_btn_html(); ?> class="latepoint-btn"><i class="latepoint-icon latepoint-icon-plus"></i><span><?php esc_html_e('Create an Order', 'latepoint'); ?></span></a>
118 </div>
119 <?php } ?>