{if empty($orders)}




[`There are no orders in this view.`]
{else}
{if $view == 'split'} {capture name="template-order-list-split"} {literal} {% var orders = o.orders; %} {% for (var i = 0, n = orders.length; i < n; i += 1) { %} {% var order = orders[i]; %}
  • {% if (!$.isEmptyObject(order.contact)) { %}
    {% include('template-order-list-split-details', { order: order }); %}
    {% } %}
  • {% } %} {/literal} {/capture} {capture name="template-order-list-split-details"} {literal}{%#o.order.status%} {%#o.order.total_str%} {%#o.order.id_str%}

    {%#o.order.contact.name%}
    {%#o.order.create_datetime_str%}

    {/literal} {/capture} {else if $view == 'table'}
    [`Customer`] [`Total`] [`Shipping`] [`Payment`]
    {capture name="template-order-list-table"} {literal} {% var orders = o.orders; %} {% var check_all = o.check_all; %} {% for (var i = 0, n = orders.length; i < n; i += 1) { %} {% var order = orders[i]; %}
    {%#order.id_str%}
    {%#order.create_datetime_str%}
    {%#order.contact.name%}
    {%#order.total_str%}
    {%#order.shipping_name%}
    {%#order.payment_name%}
    {% } %} {/literal} {/capture} {/if}
    {_w('%d order','%d orders', $count)} {sprintf(_w('of %d'), $total_count)}

    = $total_count}style="display:none;"{/if}>[`Show more orders`]
    {* js templates block*} {foreach $smarty.capture as $template => $template_content} {if $template_content && (strpos($template, 'template-')===0)} {capture name=$template}{/capture} {/if} {/foreach} {/if}