{if !empty($n)}

[`Send test notification`]

{if empty($test_orders)}

[`Notification testing requires at least one paid or complete order for sample data.`]

{else}
[`Send to`]
{if $n.transport == 'email'} {else if $n.transport == 'sms'} {else if $n.transport == 'http'} {/if}

[`Select an order to fetch sample data from`]

{foreach $test_orders as $o} {/foreach}
{$wa->shop->getIcon($o.icon)} {$o.id_str} {$o.create_datetime|wa_date:'humandate'} {foreach $o.items as $i} {$i.name|escape} x {$i.quantity}
{/foreach}
{$o.total_formatted}
{/if}
{/if}