'mhs-gap_excludes',
'label' => __('Exclude by name / SKU pattern', 'ai-eshop-optimizer'),
'help' => __('One per line. Any product whose name OR SKU contains the text is removed from the list AND the totals — now and for future imports (e.g. recurring offers, coupons, gift vouchers, catch-all accounting SKUs).', 'ai-eshop-optimizer'),
'control' => \Rooster\Admin\Ui::textarea('gap_name_excludes', implode("\n", $gap_excludes), array('id' => 'mhs-gap_excludes', 'rows' => 4, 'code' => true, 'placeholder' => "Προσφορά\nΔωροεπιταγή\nΔΙΑΦΟΡΑ ΕΙΔΗ\n9.99.")),
));
echo $aieo_mhs_row;
?>
';
echo \Rooster\Admin\Ui::table(
array(
array('key' => 'name', 'label' => __('Product', 'ai-eshop-optimizer'), 'type' => 'text'),
array('key' => 'sku', 'label' => __('SKU', 'ai-eshop-optimizer'), 'type' => 'code'),
array('key' => 'actions', 'label' => __('Actions', 'ai-eshop-optimizer'), 'type' => 'actions'),
),
$aieo_mhs_dismissed,
array(
'id' => 'aieo-mhs-dismissed',
'caption' => $aieo_mhs_caption,
'dense' => true,
)
);
?>
(bool) $n_excl,
'meta' => $n_excl ? ' (' . esc_html(number_format_i18n($n_excl)) . ')' : '',
)
);
?>
'missing-hot-sellers-in-store-sales-we-are-missing-online',
'icon' => 'building-2',
'title' => __('In-store sales missing online', 'ai-eshop-optimizer'),
'description' => __('Net in-store revenue over the window for SKUs that are not live online, plus an estimate of what publishing them would recover.', 'ai-eshop-optimizer'),
'footnote' => sprintf(__('Net physical-store revenue (ex-VAT) in the last %1$d days, for SKUs not live in the eshop yet — the sales we are missing by not having these products online. The recoverable estimate applies the eshop\'s channel share (%2$d%%) to that in-store demand.', 'ai-eshop-optimizer'), $gap_win, $ch_pct),
'col' => 2,
));
echo $aieo_mhs_open;
?>
0) {
$aieo_mhs_recov = \Rooster\Admin\Ui::stat(
sprintf(__('Est. recoverable online sales if published · last %d days', 'ai-eshop-optimizer'), $gap_win),
'≈ ' . $aieo_mhs_price($totals['recoverable']),
array(
'hint' => __('pessimistic', 'ai-eshop-optimizer') . ' ' . $aieo_mhs_price($totals['recoverable_pess']) . ' · ' . __('optimistic', 'ai-eshop-optimizer') . ' ' . $aieo_mhs_price($totals['recoverable_opt']),
'attrs' => array('title' => sprintf(__('Estimate of the online sales we would capture if these products went live = their in-store sales (last %1$d days) x the eshop\'s share of total demand (%2$d%%). Optimistic reflects the eshop\'s national reach (~6,000 visitors/day) beyond the 4 stores\' catchment. An estimate, not a guarantee.', 'ai-eshop-optimizer'), $gap_win, $ch_pct)),
)
);
echo $aieo_mhs_recov;
}
?>
0) :
list($aieo_mhs_open, $aieo_mhs_close) = AIEO_DMM_UI::card(array(
'anchor' => 'missing-hot-sellers-published-from-this-list-what-it-earned-onli',
'icon' => 'banknote',
'title' => __('Revenue from products you published', 'ai-eshop-optimizer'),
'description' => __('Online sales each SKU published from this list has earned since its publish date, net of cancelled and refunded orders, beside its in-store demand at publish.', 'ai-eshop-optimizer'),
'flush' => true,
));
echo $aieo_mhs_open;
?>