PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.2.11
LatePoint – Calendar Booking Plugin for Appointments and Events v5.2.11
5.6.7 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 / pending_approval.php
latepoint / lib / views / bookings Last commit date
_booking_data.php 1 year ago _full_summary.php 1 year ago _table_body.php 1 year ago customize_table.php 4 months ago grouped_bookings_quick_view.php 1 year ago index.php 1 year ago pending_approval.php 1 year ago quick_availability.php 1 year ago view_booking_log.php 1 year ago
pending_approval.php
103 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5 ?>
6 <?php if ( $bookings ) { ?>
7 <div class="latepoints-list">
8 <?php
9 foreach ( $bookings as $booking ): ?>
10 <div class="appointment-box-large status-<?php echo esc_attr( $booking->status ); ?>"
11 data-booking-id="<?php echo esc_attr( $booking->id ); ?>" <?php echo OsBookingHelper::quick_booking_btn_html( $booking->id ); ?>>
12 <div class="appointment-info">
13 <div class="appointment-color-elem" style="background-color: <?php echo esc_attr( $booking->service->bg_color ); ?>"></div>
14 <div class="appointment-service-name"><?php echo esc_html( $booking->service->name ); ?></div>
15 <div class="appointment-time">
16 <div class="at-date"><?php echo esc_html( $booking->nice_start_date ); ?></div>
17 <div class="at-time"><?php echo esc_html( implode( ' - ', array( $booking->nice_start_time, $booking->nice_end_time ) ) ); ?></div>
18 </div>
19 <div class="appointment-status-selector" data-booking-id="<?php echo esc_attr( $booking->id ); ?>"
20 data-wp-nonce="<?php echo esc_attr( wp_create_nonce( 'change_status_booking_' . $booking->id ) ); ?>"
21 data-route="<?php echo esc_attr( OsRouterHelper::build_route_name( 'bookings', 'change_status' ) ) ?>">
22 <?php echo OsFormHelper::select_field( 'booking[status]', __( 'Status:', 'latepoint' ), OsBookingHelper::get_statuses_list(), $booking->status, [ 'id' => 'booking_status_' . $booking->id ] ); ?>
23 </div>
24 </div>
25 <div class="account-info-w">
26 <div class="account-info-head">
27 <div class="avatar-w" style="background-image: url(<?php echo esc_url( $booking->agent->get_avatar_url() ); ?>);"></div>
28 <div class="account-name-w">
29 <div class="account-info-label"><?php esc_html_e( 'Agent', 'latepoint' ); ?></div>
30 <div class="account-name"><?php echo esc_html( $booking->agent->full_name ); ?></div>
31 </div>
32 </div>
33 <div class="account-info">
34 <div class="account-property">
35 <span class="label"><?php esc_html_e( 'Phone: ', 'latepoint' ); ?></span>
36 <span class="value"><?php echo esc_html( $booking->agent->phone ); ?></span>
37 </div>
38 <div class="account-property">
39 <span class="label"><?php esc_html_e( 'Email: ', 'latepoint' ); ?></span>
40 <span class="value"><?php echo esc_html( $booking->agent->email ); ?></span>
41 </div>
42 </div>
43 </div>
44 <div class="account-info-w">
45 <div class="account-info-head">
46 <div class="avatar-w" style="background-image: url(<?php echo esc_url( $booking->customer->get_avatar_url() ); ?>);"></div>
47 <div class="account-name-w">
48 <div class="account-info-label"><?php esc_html_e( 'Customer', 'latepoint' ); ?></div>
49 <div class="account-name"><?php echo esc_html( $booking->customer->full_name ); ?></div>
50 </div>
51 </div>
52 <div class="account-info">
53 <div class="account-property">
54 <span class="label"><?php esc_html_e( 'Phone: ', 'latepoint' ); ?></span>
55 <span class="value"><?php echo esc_html( $booking->customer->phone ); ?></span>
56 </div>
57 <div class="account-property">
58 <span class="label"><?php esc_html_e( 'Email: ', 'latepoint' ); ?></span>
59 <span class="value"><?php echo esc_html( $booking->customer->email ); ?></span>
60 </div>
61 </div>
62 </div>
63 <div class="appointment-box-actions">
64 <div class="aba-button-w aba-approve" data-status="<?php echo esc_attr( LATEPOINT_BOOKING_STATUS_APPROVED ); ?>">
65 <i class="latepoint-icon latepoint-icon-check"></i><span><?php esc_html_e( 'Approve', 'latepoint' ); ?></span>
66 </div>
67 <div class="aba-button-w aba-reject" data-status="<?php echo esc_attr( LATEPOINT_BOOKING_STATUS_CANCELLED ); ?>">
68 <i class="latepoint-icon latepoint-icon-x"></i><span><?php esc_html_e( 'Reject', 'latepoint' ); ?></span>
69 </div>
70 </div>
71 </div>
72 <?php
73 endforeach; ?>
74
75 <div class="os-pagination-w">
76 <div class="pagination-info">
77 <?php
78 // translators: %1$d start of pagination
79 // translators: %2$d end of pagination
80 // translators: %3$d total pages
81 echo esc_html( sprintf( __( 'Showing appointments %1$d to %2$d of %3$d total', 'latepoint' ), $showing_from, $showing_to, $total_bookings ) ); ?>
82 </div>
83 <ul>
84 <?php
85 for ( $i = 1; $i <= $total_pages; $i ++ ) {
86 echo '<li>';
87 if ( $current_page_number == $i ) {
88 echo '<span>' . esc_html( $i ) . '</span>';
89 } else {
90 echo '<a href="' . esc_url( OsRouterHelper::build_link( [ 'bookings', 'pending_approval' ], [ 'page_number' => $i ] ) ) . '">' . esc_html( $i ) . '</a>';
91 }
92 echo '</li>';
93 } ?>
94 </ul>
95 </div>
96 </div>
97 <?php } else { ?>
98 <div class="no-results-w">
99 <div class="icon-w"><i class="latepoint-icon latepoint-icon-grid"></i></div>
100 <h2><?php esc_html_e( 'No Pending Appointments Found', 'latepoint' ); ?></h2>
101 <a href="#" <?php echo OsOrdersHelper::quick_order_btn_html(); ?> class="latepoint-btn"><?php esc_html_e( 'Create Appointment', 'latepoint' ); ?></a>
102 </div>
103 <?php } ?>