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 / bookings / index.php
latepoint / lib / views / bookings Last commit date
_booking_data.php 1 year ago _full_summary.php 1 year ago _table_body.php 2 months ago customize_table.php 2 months ago grouped_bookings_quick_view.php 1 year ago index.php 2 months ago pending_approval.php 1 year ago quick_availability.php 1 year ago view_booking_log.php 1 year ago
index.php
104 lines
1 <?php
2 /*
3 * Copyright (c) 2022 LatePoint LLC. All rights reserved.
4 */
5 ?>
6 <?php
7 /* @var $bookings OsBookingModel[] */
8 /* @var $showing_from int */
9 /* @var $showing_to int */
10 /* @var $total_records int */
11 /* @var $per_page int */
12 /* @var $total_pages int */
13 /* @var $current_page_number int */
14 /* @var $records_ordered_by_key string */
15 /* @var $records_ordered_by_direction string */
16 /* @var $agents_list array */
17 /* @var $services_list array */
18 /* @var $locations_list array */
19 /* @var $selected_columns array */
20 /* @var $ordered_columns array */
21
22 if ( ! defined( 'ABSPATH' ) ) {
23 exit; // Exit if accessed directly
24 }
25 ?>
26 <?php if($bookings){ ?>
27 <div class="table-with-pagination-w has-scrollable-table">
28 <div class="os-pagination-w with-actions">
29 <div class="table-heading-w">
30 <h2 class="table-heading"><?php esc_html_e('Appointments', 'latepoint'); ?></h2>
31 <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_records). '</span>'; ?></div>
32 </div>
33 <div class="mobile-table-actions-trigger"><i class="latepoint-icon latepoint-icon-more-horizontal"></i></div>
34 <div class="table-actions">
35 <a data-os-lightbox-classes="width-700" data-os-after-call="latepoint_init_column_reordering" data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('bookings', 'customize_table')); ?>" href="#" data-os-output-target="lightbox" class="latepoint-btn latepoint-btn-grey latepoint-btn-outline download-csv-with-filters"><i class="latepoint-icon latepoint-icon-sliders"></i><span><?php esc_html_e('Table Settings', 'latepoint'); ?></span></a>
36 <?php if (OsSettingsHelper::can_download_records_as_csv()) { ?>
37 <a href="<?php echo esc_url(OsRouterHelper::build_admin_post_link(['bookings', 'index'])); ?>" target="_blank" class="latepoint-btn latepoint-btn-grey latepoint-btn-outline download-csv-with-filters"><i class="latepoint-icon latepoint-icon-download"></i><span><?php esc_html_e('Download .csv', 'latepoint'); ?></span></a>
38 <?php } ?>
39 </div>
40 </div>
41 <div class="os-bookings-list">
42 <div class="os-scrollable-table-w">
43 <div class="os-table-w os-table-compact">
44 <table class="os-table os-reload-on-booking-update os-scrollable-table" data-route="<?php echo esc_attr(OsRouterHelper::build_route_name('bookings', 'index')); ?>">
45 <?php echo OsFormHelper::hidden_field('filter[records_ordered_by_key]', $records_ordered_by_key, ['class' => 'records-ordered-by-key os-table-filter']); ?>
46 <?php echo OsFormHelper::hidden_field('filter[records_ordered_by_direction]', $records_ordered_by_direction, ['class' => 'records-ordered-by-direction os-table-filter']); ?>
47 <thead>
48 <tr>
49 <?php
50 foreach ( $ordered_columns as $col_key => $col_def ) {
51 if ( ! OsSettingsHelper::is_bookings_column_visible( $col_def, $selected_columns, count( $services_list ), count( $agents_list ), count( $locations_list ) ) ) continue;
52 echo OsBookingHelper::render_table_header_cell( $col_key, $col_def, $records_ordered_by_key, $records_ordered_by_direction );
53 }
54 ?>
55 </tr>
56 <tr>
57 <?php
58 foreach ( $ordered_columns as $col_key => $col_def ) {
59 if ( ! OsSettingsHelper::is_bookings_column_visible( $col_def, $selected_columns, count( $services_list ), count( $agents_list ), count( $locations_list ) ) ) continue;
60 echo OsBookingHelper::render_table_filter_cell( $col_key, $col_def, $services_list, $agents_list, $locations_list );
61 }
62 ?>
63 </tr>
64 </thead>
65 <tbody>
66 <?php include('_table_body.php'); ?>
67 </tbody>
68 <tfoot>
69 <tr>
70 <?php
71 foreach ( $ordered_columns as $col_key => $col_def ) {
72 if ( ! OsSettingsHelper::is_bookings_column_visible( $col_def, $selected_columns, count( $services_list ), count( $agents_list ), count( $locations_list ) ) ) continue;
73 echo '<th>' . esc_html( $col_def['label'] ) . '</th>';
74 }
75 ?>
76 </tr>
77 </tfoot>
78 </table>
79 </div>
80 </div>
81 </div>
82 <div class="os-pagination-w">
83 <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_records). '</span>'; ?></div>
84 <div class="pagination-page-select-w">
85 <label for="tablePaginationPageSelector"><?php esc_html_e('Page:', 'latepoint'); ?></label>
86 <select id="tablePaginationPageSelector" name="page" class="pagination-page-select">
87 <?php
88 for($i = 1; $i <= $total_pages; $i++){
89 $selected = ($current_page_number == $i) ? 'selected' : '';
90 echo '<option '.$selected.'>'.esc_html($i).'</option>';
91 } ?>
92 </select>
93 </div>
94 </div>
95 </div>
96
97 <?php }else{ ?>
98 <div class="no-results-w">
99 <div class="icon-w"><i class="latepoint-icon latepoint-icon-book"></i></div>
100 <h2><?php esc_html_e('No Existing Appointments Found', 'latepoint'); ?></h2>
101 <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('Add First Appointment', 'latepoint'); ?></span></a>
102 </div>
103 <?php } ?>
104