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 / mini_profile.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
mini_profile.php
56 lines
1 <?php
2 /** @var $customer OsCustomerModel */
3 /** @var $upcoming_booking OsBookingModel */
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit; // Exit if accessed directly
7 }
8 ?>
9 <div class="os-mini-customer-profile-w">
10 <a href="#" class="os-floating-popup-close"><i class="latepoint-icon latepoint-icon-x"></i></a>
11 <div class="os-mc-info-w">
12 <div class="os-mc-avatar" style="background-image: url(<?php echo esc_url($customer->get_avatar_url()); ?>)"></div>
13 <div class="os-mc-info">
14 <div class="mc-name"><?php echo esc_html($customer->full_name); ?><a target="_blank" <?php echo OsCustomerHelper::quick_customer_btn_html($customer->id); ?> href="#"><i class="latepoint-icon latepoint-icon-external-link"></i></a></div>
15 <?php if (!empty($customer->email)) { ?><div class="mc-info-list-item"><span><?php esc_html_e('email:', 'latepoint'); ?></span><strong><?php echo esc_html($customer->email); ?></strong></div><?php } ?>
16 <?php if (!empty($customer->phone)) { ?><div class="mc-info-list-item"><span><?php esc_html_e('phone:', 'latepoint'); ?></span><strong><?php echo esc_html($customer->phone); ?></strong></div><?php } ?>
17 </div>
18 </div>
19 <div class="os-mc-sub-info">
20 <div class="os-mc-chart">
21 <?php if(isset($pie_chart_data) && !empty($pie_chart_data['values'])){ ?>
22 <div class="os-mc-heading"><?php esc_html_e('Total', 'latepoint'); ?></div>
23 <div class="os-mc-chart-i">
24 <div class="os-mc-totals"><?php echo esc_html($customer->get_total_bookings_count(true)); ?></div>
25 <canvas class="os-customer-donut-chart" width="90" height="90"
26 data-chart-labels="<?php echo esc_attr(implode(',', $pie_chart_data['labels'])); ?>"
27 data-chart-colors="<?php echo esc_attr(implode(',', $pie_chart_data['colors'])); ?>"
28 data-chart-values="<?php echo esc_attr(implode(',', $pie_chart_data['values'])); ?>"></canvas>
29 </div>
30 <?php } ?>
31 </div>
32 <div class="os-mc-upcoming-appointments-w">
33 <div class="os-mc-heading"><?php esc_html_e('Next Appointment', 'latepoint'); ?></div>
34 <div class="os-mc-upcoming-appointments">
35 <?php if($upcoming_booking){ ?>
36 <div class="os-upcoming-appointment" <?php echo OsBookingHelper::quick_booking_btn_html($upcoming_booking->id); ?>>
37 <div class="appointment-color-elem" style="background-color: <?php echo esc_attr($upcoming_booking->service->bg_color); ?>"></div>
38 <div class="appointment-service-name"><?php echo esc_html($upcoming_booking->service->name); ?></div>
39 <div class="appointment-date-w">
40 <div class="appointment-date-i">
41 <div class="appointment-date"><?php echo esc_html($upcoming_booking->nice_start_date); ?></div>
42 <div class="appointment-time"><?php echo esc_html(implode('-', array($upcoming_booking->nice_start_time, $upcoming_booking->nice_end_time))); ?></div>
43 </div>
44 <div class="avatar-w" style="background-image: url(<?php echo esc_url($upcoming_booking->agent->get_avatar_url()); ?>);">
45 <div class="agent-info-tooltip"><?php echo esc_html($upcoming_booking->agent->full_name); ?></div>
46 </div>
47 </div>
48 </div>
49 <?php
50 }else{
51 echo '<div class="os-nothing">'.esc_html__('No Upcoming Appointments', 'latepoint').'</div>';
52 } ?>
53 </div>
54 </div>
55 </div>
56 </div>