<?php
$item = $this->item;
?>
<tr class="wrapper-customer-item btn-edit-wbcustomer" data-wbcustomer_id="<?php esc_html_e($item->id); ?>">
    <td class="nowrap">
        <div class="selected" style="display: none"><i class="fas fa-check-circle"></i></div>
        <input type="checkbox" class="delete-wbcustomer" name="list_delete_wbcustomer_id[]" value="<?php esc_html_e($item->id); ?>" />
    </td>
    <td class="name nowrap">
        <h4><label class="name"><?php esc_html_e($item->full_name); ?></label></h4>
        <p><label class="name"><?php esc_html_e($item->email); ?></label></p>
    </td>
    <td class="wp_id nowrap">
		<?php
		$opensource_user_id = $item->opensource_user_id;
		$name = "";
		if ($opensource_user_id) {
			$user = get_user_by('id', $item->opensource_user_id);
			$name = $user ? $user->get('user_login') : '';
		}
		?>
		<?php esc_html_e($name); ?></td>
    <td class="mobile nowrap"><?php esc_html_e($item->mobile); ?></td>
    <td class="note"><h6><?php esc_html_e($item->note_internal); ?></h6></td>
    <td class="birthday nowrap"><?php esc_html_e($item->birth_day); ?></td>
    <td class="nowrap">
        <button class="btn btn-primary btn-customer-edit" data-id="<?php esc_html_e($item->id); ?>">
            <i class="fas fa-edit"></i><span><?php esc_attr_e('Edit','wpbookingpro') ?> </span>
        </button>
    </td>
</tr>
