{* PAGE *}
{* HEADER *}

[`A/B tests`]

{* BODY *}
{* SIDEBAR *} {* CONTENT *}
{if $test.id}

{$test.name|escape}

{if $stats.orders_count > 0}

{_w('There is %d paid order', 'There are %d paid orders', $stats.orders_count)} {sprintf("[`with traces of this A/B test for the total of %s.`]", shop_currency_html($stats.orders_total))} {sprintf("[`First order created on %s, last one on %s.`]", $stats.date_min|wa_date:humandate, $stats.date_max|wa_date:humandate )} [`View details`]

{/if} {else}

[`New test`]

{/if}
[`Name`]
{if $test.id}
[`Test ID`]
{$test.id}
[`Created`]
{$test.create_datetime|wa_date:humandatetime}
{/if}
{foreach $variants + $variants_create as $v}
{sprintf("[`Version %s`]", $v.code|escape)}
{if empty($v.id)} {else} {/if}
{/foreach}
{if $test.id && empty($errors)} {else} {/if}
{if $test.id && empty($errors)} {/if}