import_steps
9 months ago
_table_body.php
9 months ago
edit_form.php
1 year ago
import_csv_modal.php
9 months ago
import_load_step.php
3 months ago
index.php
4 months 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
4 months ago
view_customer_log.php
1 year ago
query_for_booking_form.php
31 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | ?> |
| 6 | <?php if($customers){ |
| 7 | foreach($customers as $customer){ ?> |
| 8 | <div class="customer-option" data-os-params="<?php echo esc_attr(OsUtilHelper::build_os_params(['customer_id' => $customer->id])); ?>" |
| 9 | data-os-after-call="latepoint_quick_order_customer_selected" |
| 10 | data-os-output-target=".customer-quick-edit-form-w" |
| 11 | data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('customers', 'inline_edit_form')); ?>"> |
| 12 | <div class="customer-option-avatar" style="background-image: url(<?php echo esc_url(OsCustomerHelper::get_avatar_url($customer)); ?>)"></div> |
| 13 | <div class="customer-option-info"> |
| 14 | <h4 class="customer-option-info-name"><span><?php echo preg_replace("/($query)/i", "<span class='os-query-match'>$1</span>", esc_html($customer->full_name)); ?></span></h4> |
| 15 | <ul> |
| 16 | <li> |
| 17 | <?php esc_html_e('Email: ','latepoint'); ?> |
| 18 | <strong><?php echo preg_replace("/($query)/i", "<span class='os-query-match'>$1</span>", esc_html($customer->email)); ?></strong> |
| 19 | </li> |
| 20 | <li> |
| 21 | <?php esc_html_e('Phone: ','latepoint'); ?> |
| 22 | <strong><?php echo preg_replace("/($query)/i", "<span class='os-query-match'>$1</span>", esc_html($customer->phone)); ?></strong> |
| 23 | </li> |
| 24 | </ul> |
| 25 | </div> |
| 26 | </div> |
| 27 | <?php |
| 28 | } |
| 29 | }else{ |
| 30 | echo '<div class="os-no-matched-customers">'.esc_html__('No matches found.', 'latepoint').'</div>'; |
| 31 | } ?> |