customer_repo = new CustomerRepository(); $this->booking_repo = new BookingRepository(); } public function render(): void { // phpcs:disable WordPress.Security.NonceVerification.Recommended -- Read-only admin table filters. $search_term = sanitize_text_field( wp_unslash( $_GET['s'] ?? '' ) ); $paged = max( 1, absint( $_GET['paged'] ?? 1 ) ); // phpcs:enable WordPress.Security.NonceVerification.Recommended $per_page = 20; $result = $this->customer_repo->query( [ 'search' => $search_term, 'page' => $paged, 'per_page' => $per_page, ] ); $customers = $result['items']; $total_items = $result['total']; $total_pages = ceil( $total_items / $per_page ); ?>

1 ) : ?>