{include "./sales_sidebar.html" has_stacked_chart=true inline}

{if $filter} {$filter_title|default:''|escape} {else} {if !empty($request_options.type) && !empty($menu_types[$request_options.type])} {$menu_types[$request_options.type].header_name|escape} {else} [`Sales report`] {/if} {/if} [`Custom range`]

{if $abtests}
[`A/B tests results available`]
{/if} [`Download chart data in CSV`]
{if $details_graph_data}
{else}
{/if}
{if $roi_enabled} {/if} {if $roi_enabled} {/if} {include "./sales_report_rows.html" inline}
  [`Orders`]
[`Sales volume`]
[`Average order`]
[`Profit`]
[`Cost`] [`ROI`] [`All time ROI`]
[`Total`] {strip} {$totals.order_count} {foreach $abtest_variants as $v}
{$v.name|escape}: {ifempty($v.totals.order_count, 0)} {/foreach} {/strip}
{strip} {$totals.sales_formatted} {foreach $abtest_variants as $v}
{$v.name|escape}: {$v.totals.sales_formatted} {/foreach} {/strip}
{strip} {$totals.avg_order_formatted} {foreach $abtest_variants as $v}
{$v.name|escape}: {$v.totals.avg_order_formatted} {/foreach} {/strip}
{strip} {$totals.profit_formatted} {foreach $abtest_variants as $v}
{$v.name|escape}: {$v.totals.profit_formatted} {/foreach} {/strip}
{$totals.cost_formatted} {if $totals.cost} {round($totals.roi)}% {else} {/if} {if $totals.cost} {$totals.lifetime_roi}% {else} {/if}
{$order_list_html = $order_list_html|default:''} {$order_items_list_html = $order_items_list_html|default:''}
{$order_list_html}

[`Load more...`]

{if $wa->installer && method_exists($wa->installer, 'reviewWidget')} {$wa->installer->reviewWidget('app/shop')} {/if}