_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> |