rest_url( 'waitlistize/v1/admin/' ), 'nonce' => wp_create_nonce( 'wp_rest' ), ) ); } public function overview(): void { if ( ! current_user_can( 'manage_options' ) ) { return; } echo '

' . esc_html__( 'Overview', 'waitlistize' ) . '

'; $this->diagnostics(); echo '

' . esc_html__( 'Settings', 'waitlistize' ) . '

'; } public function diagnostics(): void { echo '

' . esc_html__( 'Connection diagnostics', 'waitlistize' ) . '

'; foreach ( array( 'connection' => __( 'Connection status', 'waitlistize' ), 'account' => __( 'Approved account', 'waitlistize' ), 'api' => __( 'API connection', 'waitlistize' ), 'success' => __( 'Last successful connection', 'waitlistize' ), 'plan' => __( 'Subscription plan', 'waitlistize' ), 'single' => __( 'Active single services', 'waitlistize' ), 'group' => __( 'Active group services', 'waitlistize' ), ) as $key => $label ) { echo '
' . esc_html( $label ) . '
—
'; } echo '
' . esc_html__( 'Plugin version', 'waitlistize' ) . '
' . esc_html( WAITLISTIZE_VERSION ) . '
WordPress / PHP
' . esc_html( get_bloginfo( 'version' ) . ' / ' . PHP_VERSION ) . '

' . esc_html__( 'Service information is read fresh without a persistent service cache. Counts cover the public service catalog. Subscription details and inactive services are not supplied by this API.', 'waitlistize' ) . '

'; } public function bookings(): void { if ( ! current_user_can( 'manage_options' ) ) { return; } ?>