get_module( 'web-push' ) : null; } public function render_subtab() { global $wpdb; $tbl_ci = $wpdb->prefix . 'aieo_customer_intelligence'; $push = $this->push_module(); if ( ! $push || ! method_exists( $push, 'cohort_rollup' ) ) { list( $open, $close ) = AIEO_DMM_UI::card( array( 'anchor' => 'web-push-overview', 'icon' => 'layout-dashboard', 'title' => __( 'CDP key figures', 'ai-eshop-optimizer' ), ) ); echo $open; if ( class_exists( '\Rooster\Admin\States' ) ) { echo \Rooster\Admin\States::state( 'not-set-up', array( 'title' => __( 'Customer intelligence is unavailable in this build.', 'ai-eshop-optimizer' ) ) ); } else { echo '

' . esc_html__( 'Customer intelligence is unavailable in this build.', 'ai-eshop-optimizer' ) . '

'; } echo $close; return; } if ( method_exists( $push, 'render_overview_card' ) ) { $push->render_overview_card( $tbl_ci, __( 'Who your customers are, independent of how you reach them: how many you know, how they group behaviourally, how many have gone quiet and which of those are worth winning back. Every channel reads from this — push, email, automations and ad audiences — so the numbers here are the ones those campaigns will target.', 'ai-eshop-optimizer' ) ); } $rollup = $push->cohort_rollup( $tbl_ci ); $push->render_segments_card( $tbl_ci ); $push->render_reactivation_card( $tbl_ci, $rollup ); $push->render_lost_cohort_playbook_card( $tbl_ci, $rollup ); $push->render_top_customers_card( $tbl_ci ); } }