$data): $is_last = $index === $currency_count - 1; // Get currency code from the data array or use a fallback $currency_code = isset($data['currency_code']) ? $data['currency_code'] : 'USD'; ?>

$0.00

0): ?>
Showing to of results
1): ?>
Page of add_query_arg('paged', '%#%'), 'format' => '', 'current' => $current_page, 'total' => $total_pages, 'prev_text' => '‹ Previous', 'next_text' => 'Next ›', 'type' => 'array', 'end_size' => 1, 'mid_size' => 2, 'add_args' => array( 'page' => 'easy-invoice-clients' ) ); $top_pagination_links = paginate_links($top_pagination_args); if ($top_pagination_links) { echo '
'; foreach ($top_pagination_links as $link) { // Add null check to prevent passing null to easy_invoice_str_replace if ($link === null) { continue; } // Convert WordPress pagination to our styling $link = easy_invoice_str_replace('page-numbers', 'px-3 py-2 text-sm font-medium border border-gray-300 rounded-md', $link); $link = easy_invoice_str_replace('current', 'bg-indigo-50 border-indigo-500 text-indigo-600', $link); $link = easy_invoice_str_replace('prev', 'bg-white text-gray-500 hover:bg-gray-50', $link); $link = easy_invoice_str_replace('next', 'bg-white text-gray-500 hover:bg-gray-50', $link); $link = easy_invoice_str_replace('dots', 'bg-white text-gray-700', $link); // Add default styling for regular page numbers if ($link && strpos($link, 'bg-indigo-50') === false && strpos($link, 'bg-white') === false) { $link = easy_invoice_str_replace('border-gray-300', 'border-gray-300 bg-white text-gray-500 hover:bg-gray-50', $link); } echo wp_kses_post($link); } echo '
'; } ?>
getBusinessClientName(); // Get contact name (first + last name) $contactName = trim($client->getFirstName() . ' ' . $client->getLastName()); if(empty($contactName)) { $contactName = $client->getUsername(); } $clientId = $client->getId(); // Get client role $user = get_user_by('ID', $clientId); $client_role = $user ? $user->roles[0] ?? 'client' : 'client'; // Role styling $role_class = 'bg-blue-100 text-blue-800'; $role_icon = 'fas fa-user'; switch ($client_role) { case 'administrator': $role_class = 'bg-red-100 text-red-800'; $role_icon = 'fas fa-crown'; break; case 'editor': $role_class = 'bg-purple-100 text-purple-800'; $role_icon = 'fas fa-user-edit'; break; case 'author': $role_class = 'bg-green-100 text-green-800'; $role_icon = 'fas fa-user-edit'; break; case 'contributor': $role_class = 'bg-yellow-100 text-yellow-800'; $role_icon = 'fas fa-user-plus'; break; case 'subscriber': $role_class = 'bg-gray-100 text-gray-800'; $role_icon = 'fas fa-user'; break; default: $role_class = 'bg-blue-100 text-blue-800'; $role_icon = 'fas fa-user'; } ?>
Actions
No clients found
getEmail()); ?>
getPhone()); ?>
getUsername()); ?>
View Edit
0): ?>
Showing to of results
1): ?>
Page of add_query_arg('paged', '%#%'), 'format' => '', 'current' => $current_page, 'total' => $total_pages, 'prev_text' => '‹ Previous', 'next_text' => 'Next ›', 'type' => 'array', 'end_size' => 1, 'mid_size' => 2, 'add_args' => array( 'page' => 'easy-invoice-clients' ) ); $bottom_pagination_links = paginate_links($bottom_pagination_args); if ($bottom_pagination_links) { echo '
'; foreach ($bottom_pagination_links as $link) { // Add null check to prevent passing null to easy_invoice_str_replace if ($link === null) { continue; } // Convert WordPress pagination to our styling $link = easy_invoice_str_replace('page-numbers', 'px-3 py-2 text-sm font-medium border border-gray-300 rounded-md', $link); $link = easy_invoice_str_replace('current', 'bg-indigo-50 border-indigo-500 text-indigo-600', $link); $link = easy_invoice_str_replace('prev', 'bg-white text-gray-500 hover:bg-gray-50', $link); $link = easy_invoice_str_replace('next', 'bg-white text-gray-500 hover:bg-gray-50', $link); $link = easy_invoice_str_replace('dots', 'bg-white text-gray-700', $link); // Add default styling for regular page numbers if ($link && strpos($link, 'bg-indigo-50') === false && strpos($link, 'bg-white') === false) { $link = easy_invoice_str_replace('border-gray-300', 'border-gray-300 bg-white text-gray-500 hover:bg-gray-50', $link); } echo wp_kses_post($link); } echo '
'; } ?>