PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.1.3
LatePoint – Calendar Booking Plugin for Appointments and Events v5.1.3
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 / customers / index.php
latepoint / lib / views / customers Last commit date
_table_body.php 1 year ago edit_form.php 1 year ago index.php 1 year ago inline_edit_form.php 1 year ago mini_profile.php 1 year ago new_form.php 1 year ago query_for_booking_form.php 1 year ago quick_edit.php 1 year ago view_customer_log.php 1 year ago
index.php
109 lines
1 <?php
2 /** @var $customers OsCustomerModel[] */
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit; // Exit if accessed directly
6 }
7
8 if($customers){ ?>
9 <div class="table-with-pagination-w has-scrollable-table">
10 <div class="os-pagination-w with-actions">
11 <div class="table-heading-w">
12 <h2 class="table-heading"><?php esc_html_e('Customers', 'latepoint'); ?></h2>
13 <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_customers) . '</span>'; ?></div>
14 </div>
15 <div class="mobile-table-actions-trigger"><i class="latepoint-icon latepoint-icon-more-horizontal"></i></div>
16 <div class="table-actions">
17 <?php if (OsSettingsHelper::can_download_records_as_csv()) { ?>
18 <a href="<?php echo esc_url(OsRouterHelper::build_admin_post_link(OsRouterHelper::build_route_name('customers', '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>
19 <?php } ?>
20 <?php if(OsAuthHelper::wp_users_as_customers()){ ?>
21 <?php $not_connected_count = OsCustomerHelper::count_customers_not_connected_to_wp_users(); ?>
22 <?php if($not_connected_count){ ?>
23 <a href="#" data-os-success-action="reload" data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('customers', 'connect_all_to_wp_users')); ?>" class="latepoint-btn latepoint-btn-outline latepoint-btn-grey"><i class="latepoint-icon latepoint-icon-wordpress"></i><span><?php esc_html_e('Connect to WP Users', 'latepoint'); ?><?php echo ' ['.esc_html($not_connected_count).']'; ?></span></a>
24 <?php } ?>
25 <?php } ?>
26 <a href="#" <?php echo OsCustomerHelper::quick_customer_btn_html(); ?> class="latepoint-btn latepoint-btn-outline latepoint-btn-grey"><i class="latepoint-icon latepoint-icon-plus"></i><span><?php esc_html_e('New Customer', 'latepoint'); ?></span></a>
27 </div>
28 </div>
29 <div class="os-customers-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 OsRouterHelper::build_route_name('customers', 'index'); ?>">
33 <thead>
34 <tr>
35 <th><?php esc_html_e('ID', 'latepoint'); ?></th>
36 <th class="text-left"><?php esc_html_e('Full Name', 'latepoint'); ?></th>
37 <th><?php esc_html_e('Phone', 'latepoint'); ?></th>
38 <th><?php esc_html_e('Email', 'latepoint'); ?></th>
39 <?php if(OsSettingsHelper::is_using_social_login()) echo '<th>'.esc_html__('Social', 'latepoint').'</th>'; ?>
40 <th><?php esc_html_e('Total Apps', 'latepoint'); ?></th>
41 <th><?php esc_html_e('Next App', 'latepoint'); ?></th>
42 <th><?php esc_html_e('Time to Next', 'latepoint'); ?></th>
43 <?php if(OsAuthHelper::wp_users_as_customers()) echo '<th>'.esc_html__('WP User ID', 'latepoint').'</th>'; ?>
44 <th><?php esc_html_e('Registered On', 'latepoint'); ?></th>
45 </tr>
46 <tr>
47 <th><?php echo OsFormHelper::text_field('filter[id]', false, '', ['style' => 'width: 40px;', 'class' => 'os-table-filter', 'placeholder' => __('ID', 'latepoint')]); ?></th>
48 <th><?php echo OsFormHelper::text_field('filter[customer]', false, '', ['class' => 'os-table-filter', 'placeholder' => __('Search by Name', 'latepoint')]); ?></th>
49 <th><?php echo OsFormHelper::text_field('filter[phone]', false, '', ['class' => 'os-table-filter', 'placeholder' => __('Phone...', 'latepoint')]); ?></th>
50 <th><?php echo OsFormHelper::text_field('filter[email]', false, '', ['class' => 'os-table-filter', 'placeholder' => __('Search by Email', 'latepoint')]); ?></th>
51 <th></th>
52 <th></th>
53 <th></th>
54 <?php if(OsSettingsHelper::is_using_social_login()) echo '<th></th>'; ?>
55 <?php if(OsAuthHelper::wp_users_as_customers()) echo '<th></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[registration_date_from]" value=""/>
62 <input type="hidden" class="os-table-filter os-datepicker-date-to" name="filter[registration_date_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 class="text-left"><?php esc_html_e('Full Name', 'latepoint'); ?></th>
75 <th><?php esc_html_e('Phone', 'latepoint'); ?></th>
76 <th><?php esc_html_e('Email', 'latepoint'); ?></th>
77 <?php if(OsSettingsHelper::is_using_social_login()) echo '<th>'.esc_html__('Social', 'latepoint').'</th>'; ?>
78 <th><?php esc_html_e('Total Apps', 'latepoint'); ?></th>
79 <th><?php esc_html_e('Next App', 'latepoint'); ?></th>
80 <th><?php esc_html_e('Time to Next', 'latepoint'); ?></th>
81 <?php if(OsAuthHelper::wp_users_as_customers()) echo '<th>'.esc_html__('WP User ID', 'latepoint').'</th>'; ?>
82 <th><?php esc_html_e('Registered On', 'latepoint'); ?></th>
83 </tr>
84 </tfoot>
85 </table>
86 </div>
87 </div>
88 </div>
89 <div class="os-pagination-w">
90 <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_customers). '</span>'; ?></div>
91 <div class="pagination-page-select-w">
92 <label for="tablePaginationPageSelector"><?php esc_html_e('Page:', 'latepoint'); ?></label>
93 <select id="tablePaginationPageSelector" name="page" class="pagination-page-select">
94 <?php
95 for($i = 1; $i <= $total_pages; $i++){
96 $selected = ($current_page_number == $i) ? 'selected' : '';
97 echo '<option '.esc_html($selected).'>'.esc_html($i).'</option>';
98 } ?>
99 </select>
100 </div>
101 </div>
102 </div>
103 <?php }else{ ?>
104 <div class="no-results-w">
105 <div class="icon-w"><i class="latepoint-icon latepoint-icon-users"></i></div>
106 <h2><?php esc_html_e('No Customers Found', 'latepoint'); ?></h2>
107 <a href="#" <?php echo OsCustomerHelper::quick_customer_btn_html(); ?> class="latepoint-btn"><i class="latepoint-icon latepoint-icon-plus"></i><span><?php esc_html_e('Add Customer', 'latepoint'); ?></span></a>
108 </div>
109 <?php } ?>