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 / transactions / index.php
latepoint / lib / views / transactions Last commit date
_table_body.php 3 months ago edit_form.php 1 year ago index.php 1 year ago view_receipt_by_key.php 1 year ago
index.php
111 lines
1 <?php
2 /* @var $transactions OsTransactionModel[] */
3 /* @var $showing_from int */
4 /* @var $showing_to int */
5 /* @var $total_transactions int */
6 /* @var $per_page int */
7 /* @var $total_pages int */
8 /* @var $current_page_number int */
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit; // Exit if accessed directly
12 }
13
14
15 if ($transactions) { ?>
16 <div class="table-with-pagination-w has-scrollable-table">
17 <div class="os-pagination-w with-actions">
18 <div class="table-heading-w">
19 <h2 class="table-heading"><?php esc_html_e('Payments', 'latepoint'); ?></h2>
20 <div 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_transactions). '</span>'; ?></div>
21 </div>
22 <div class="mobile-table-actions-trigger"><i class="latepoint-icon latepoint-icon-more-horizontal"></i></div>
23 <div class="table-actions">
24 <?php if (OsSettingsHelper::can_download_records_as_csv()) { ?>
25 <a href="<?php echo esc_url(OsRouterHelper::build_admin_post_link(['transactions', 'index'] )); ?>" target="_blank" class="latepoint-btn latepoint-btn-outline latepoint-btn-grey download-csv-with-filters"><i class="latepoint-icon latepoint-icon-download"></i><span><?php esc_html_e('Download .csv', 'latepoint'); ?></span></a>
26 <?php } ?>
27 </div>
28 </div>
29 <div class="os-transactions-list">
30 <div class="os-scrollable-table-w">
31 <div class="os-table-w os-table-compact">
32 <table class="os-table os-reload-on-booking-update os-scrollable-table" data-route="<?php echo esc_attr(OsRouterHelper::build_route_name('transactions', 'index')); ?>">
33 <thead>
34 <tr>
35 <th><?php esc_html_e('ID', 'latepoint'); ?></th>
36 <th><?php esc_html_e('Token', 'latepoint'); ?></th>
37 <th><?php esc_html_e('Order ID', 'latepoint'); ?></th>
38 <th><?php esc_html_e('Customer', 'latepoint'); ?></th>
39 <th><?php esc_html_e('Processor', 'latepoint'); ?></th>
40 <th><?php esc_html_e('Method', 'latepoint'); ?></th>
41 <th><?php esc_html_e('Amount', 'latepoint'); ?></th>
42 <th><?php esc_html_e('Status', 'latepoint'); ?></th>
43 <th><?php esc_html_e('Type', 'latepoint'); ?></th>
44 <th><?php esc_html_e('Date', 'latepoint'); ?></th>
45 </tr>
46 <tr>
47 <th><?php echo OsFormHelper::text_field('filter[id]', false, '', ['placeholder' => __('ID', 'latepoint'), 'class' => 'os-table-filter', 'style' => 'width: 60px;']); ?></th>
48 <th><?php echo OsFormHelper::text_field('filter[token]', false, '', ['placeholder' => __('Token', 'latepoint'), 'class' => 'os-table-filter']); ?></th>
49 <th><?php echo OsFormHelper::text_field('filter[booking_id]', false, '', ['placeholder' => __('Order ID', 'latepoint'), 'class' => 'os-table-filter']); ?></th>
50 <th><?php echo OsFormHelper::text_field('filter[customer][full_name]', false, '', ['placeholder' => __('Customer Name', 'latepoint'), 'class' => 'os-table-filter']); ?></th>
51 <th><?php echo OsFormHelper::select_field('filter[processor]', false, OsPaymentsHelper::get_payment_processors_for_select(), '', ['placeholder' => __('Show All', 'latepoint'),'class' => 'os-table-filter']); ?></th>
52 <th><?php echo OsFormHelper::select_field('filter[payment_method]', false, OsPaymentsHelper::get_all_payment_methods_for_select(), '', ['placeholder' => __('Show All', 'latepoint'),'class' => 'os-table-filter']); ?></th>
53 <th><?php echo OsFormHelper::text_field('filter[amount]', false, '', ['placeholder' => __('Amount', 'latepoint'), 'class' => 'os-table-filter']); ?></th>
54 <th><?php echo OsFormHelper::select_field('filter[status]', false, OsPaymentsHelper::get_transaction_statuses_list(), '', ['placeholder' => __('Show All', 'latepoint'),'class' => 'os-table-filter']); ?></th>
55 <th><?php echo OsFormHelper::select_field('filter[kind]', false, OsPaymentsHelper::get_list_of_transaction_kinds(), '', ['placeholder' => __('Show All', 'latepoint'),'class' => 'os-table-filter']); ?></th>
56 <th>
57 <div class="os-form-group">
58 <div class="os-date-range-picker os-table-filter-datepicker" data-can-be-cleared="yes" data-no-value-label="<?php esc_attr_e('Filter By Date', 'latepoint'); ?>" data-clear-btn-label="<?php esc_attr_e('Reset Date Filtering', 'latepoint'); ?>">
59 <span class="range-picker-value"><?php esc_html_e('Filter By Date', 'latepoint'); ?></span>
60 <i class="latepoint-icon latepoint-icon-chevron-down"></i>
61 <input type="hidden" class="os-table-filter os-datepicker-date-from" name="filter[created_at_from]" value=""/>
62 <input type="hidden" class="os-table-filter os-datepicker-date-to" name="filter[created_at_to]" value=""/>
63 </div>
64 </div>
65 </th>
66 </tr>
67 </thead>
68 <tbody>
69 <?php include '_table_body.php'; ?>
70 </tbody>
71 <tfoot>
72 <tr>
73 <th><?php esc_html_e('ID', 'latepoint'); ?></th>
74 <th><?php esc_html_e('Token', 'latepoint'); ?></th>
75 <th><?php esc_html_e('Order ID', 'latepoint'); ?></th>
76 <th><?php esc_html_e('Customer', 'latepoint'); ?></th>
77 <th><?php esc_html_e('Processor', 'latepoint'); ?></th>
78 <th><?php esc_html_e('Method', 'latepoint'); ?></th>
79 <th><?php esc_html_e('Amount', 'latepoint'); ?></th>
80 <th><?php esc_html_e('Status', 'latepoint'); ?></th>
81 <th><?php esc_html_e('Type', 'latepoint'); ?></th>
82 <th><?php esc_html_e('Date', 'latepoint'); ?></th>
83 </tr>
84 </tfoot>
85 </table>
86 </div>
87 </div>
88 <div class="os-pagination-w">
89 <div 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_transactions). '</span>'; ?></div>
90 <div class="pagination-page-select-w">
91 <label for="tablePaginationPageSelector"><?php esc_html_e('Page:', 'latepoint'); ?></label>
92 <select id="tablePaginationPageSelector" name="page" class="pagination-page-select">
93 <?php
94 for($i = 1; $i <= $total_pages; $i++){
95 $selected = ($current_page_number == $i) ? 'selected' : '';
96 echo '<option '.esc_attr($selected).'>'.esc_html($i).'</option>';
97 } ?>
98 </select>
99 </div>
100 </div>
101 </div>
102
103 </div>
104 <?php } else { ?>
105 <div class="no-results-w highlighted">
106 <div class="icon-w"><i class="latepoint-icon latepoint-icon-credit-card"></i></div>
107 <h2 class="no-results-heading"><?php esc_html_e('Accept Payments and Minimize No-Shows', 'latepoint'); ?></h2>
108 <div class="no-results-sub"><?php esc_html_e('By enabling payments for appointments, clients are more likely to commit, reducing last-minute cancellations and no-shows.', 'latepoint'); ?></div>
109 <a href="<?php echo OsRouterHelper::build_link(['settings', 'payments']); ?>" class="latepoint-btn"><span><?php esc_html_e('Enable Payments', 'latepoint'); ?></span><i class="latepoint-icon latepoint-icon-arrow-right"></i></a>
110 </div>
111 <?php } ?>