array( 'blueprint' => $aieo_qr_bp, 'days' => $aieo_qr_days, 'since' => $aieo_qr_since, 'min_n' => $aieo_qr_min, ), ); list( $aieo_qr_open, $aieo_qr_close ) = AIEO_DMM_UI::card( array( 'anchor' => 'questionnaire-results-filters', 'icon' => 'list-filter', 'title' => __( 'Filters', 'ai-eshop-optimizer' ), 'description' => __( 'Choose the survey, the recent period and how many answers a change needs before the tables show it.', 'ai-eshop-optimizer' ), ) ); echo $aieo_qr_open; $aieo_qr_lib = class_exists( '\Rooster\Admin\Ui' ); $aieo_qr_filter = static function ( $label, $control, $id ) use ( $aieo_qr_lib ) { return $aieo_qr_lib ? \Rooster\Admin\Ui::filter( (string) $label, $control, $id ) : ''; }; $aieo_qr_select = static function ( $id, $name, array $options, $current ) { $out = ''; }; $aieo_qr_periods = array(); foreach ( array( 7, 30, 90, 180, 365 ) as $aieo_qr_d ) { $aieo_qr_periods[ $aieo_qr_d ] = sprintf( __( 'last %d days', 'ai-eshop-optimizer' ), $aieo_qr_d ); } $aieo_qr_mins = array(); foreach ( array( 0, 10, 20, 50 ) as $aieo_qr_m ) { $aieo_qr_mins[ $aieo_qr_m ] = (string) $aieo_qr_m; } $aieo_qr_hint = __( 'Leave the date empty to use the recent period. Set it to the day you made the change, and everything before it becomes the baseline.', 'ai-eshop-optimizer' ); ?>
', 'aieo-qr-f-since' ); $aieo_qr_bar .= $aieo_qr_filter( __( 'Minimum answers for a change', 'ai-eshop-optimizer' ), $aieo_qr_select( 'aieo-qr-f-min', 'qr_min', $aieo_qr_mins, $aieo_qr_min ), 'aieo-qr-f-min' ); $aieo_qr_bar .= $aieo_qr_filter( __( 'Responses to show', 'ai-eshop-optimizer' ), $aieo_qr_select( 'aieo-qr-f-wrote', 'qr_wrote', array( 'all' => __( 'Everyone who answered', 'ai-eshop-optimizer' ), 'written' => __( 'Only those who wrote something', 'ai-eshop-optimizer' ), ), $aieo_qr_wrote ), 'aieo-qr-f-wrote' ); echo $aieo_qr_bar; ?>
'aieo-qr-f-since-help' ) ); } else { echo '

' . esc_html( $aieo_qr_hint ) . '

'; } $aieo_qr_reports = class_exists( 'AIEO_Report_Render' ); if ( ! $aieo_qr_reports && class_exists( '\Rooster\Admin\States' ) ) { echo \Rooster\Admin\States::state( 'not-set-up', array( 'title' => __( 'The reporting layer is not loaded.', 'ai-eshop-optimizer' ) ) ); } elseif ( ! $aieo_qr_reports ) { echo '

' . esc_html__( 'The reporting layer is not loaded.', 'ai-eshop-optimizer' ) . '

'; } echo $aieo_qr_close; ?> 'questionnaire-results-every-question', 'heading' => 'h2', 'icon' => 'list', 'title' => __( 'Every question, and whether it moved', 'ai-eshop-optimizer' ), 'description' => __( 'How many people answered each question, what they said on average, and the same figures for everything answered before the date you chose. A green line improved, a red line got worse.', 'ai-eshop-optimizer' ), ), $aieo_qr_scope ); AIEO_Report_Render::card( 'questionnaire_answers', array( 'anchor' => 'questionnaire-results-what-people-chose', 'heading' => 'h2', 'icon' => 'circle-check', 'title' => __( 'What people actually chose', 'ai-eshop-optimizer' ), 'description' => __( 'One row per answer option. This is the half of a survey that has no average: a yes/no, a pick-as-many-as-apply, and a ranking, where what matters is how many people put an option first.', 'ai-eshop-optimizer' ), ), $aieo_qr_scope ); AIEO_Report_Render::card( 'questionnaire_responses', array( 'anchor' => 'questionnaire-results-every-response', 'heading' => 'h2', 'icon' => 'users', 'title' => __( 'Every response, one per person', 'ai-eshop-optimizer' ), 'description' => __( 'One row per survey somebody filled in, newest first, with anything they wrote in their own words. Opens on the people who wrote something; the order number links to the order and the customer to their account.', 'ai-eshop-optimizer' ), ), array( 'params' => array( 'blueprint' => $aieo_qr_bp, 'limit' => 5000, 'written_only' => $aieo_qr_wrote, 'wrote' => 'written', ) ) ); ?>

', array( 'wide' => true, 'confirm' => '', 'cancel' => __( 'Close', 'ai-eshop-optimizer' ), ) ); ?>