{$is_view_split_pos = $view === 'split' && !empty($params.viewpos)} {function name="dummy_no_orders" target=body} {if $is_orders_empty}

[`New orders will start to land here shortly.`]

{if !$is_view_split_pos} {if shopHelper::isSettingsMarketplacesSectionVisible()} [`Set up sales channels`] [`How to get my first order`] {else} [`How to get my first order`] {/if} {/if} {else}

[`There are no orders in this view.`]

{/if} {if $is_view_split_pos} [`Set up POS`] {/if} {/function} {capture assign="_dummy_no_orders_body"}
{if $view == 'split'} {else} {dummy_no_orders} {/if}
{/capture} {capture assign="_dummy_kanban_premium"}
{for $i=1 to 4}
{/for}
{include file="templates/includes/availableWithPremiumAlert.html" title="[`Kanban`]" inline}
{/capture} {if empty($orders)} {if $view !== 'kanban'} {if $view == 'split'} {/if} {$_dummy_no_orders_body} {else} {if shopLicensing::isPremium()}
{foreach $state_names as $state}
{$state.name|escape}
0
{/foreach}
{else} {$_dummy_kanban_premium} {/if} {/if} {else}
{if $view == 'split'} {/if} {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)) { %} {% var state_color = '#ccc'; %} {% var state_name = ''; %} {% var paid_state_name = ''; %} {% if (order.state_id in o.states) { %} {% state_color = o.states[order.state_id].options.style.color; %} {% state_name = o.states[order.state_id].name; %} {% paid_state_name = o.states.paid.name; %} {% } %} {% include('template-order-list-split-details', { order: order, state_color: state_color, state_name: state_name, paid_state_name: paid_state_name }); %} {% } %}
  • {% } %} {/literal} {/capture} {capture name="template-order-list-split-details"} {literal}
    {%#o.state_name%} {% if (o.order.sales_channel && o.order.sales_channel.menu_icon) { %} {%#o.order.sales_channel.menu_icon%} {%#o.order.sales_channel.name%} {% } else if ((o.order.params?.sales_channel||'').substr(0, 4) === 'pos:') { %} {% } %} {% if (o.order.paid_date) { %} {% } %} {%#o.order.total_str%}

    {%#o.order.id_str%} {% if (o.order.contact.name) { %} {%#o.order.contact.name%} {% } %}

    [`Created`] {%#o.order.create_datetime_str%} {% if (o.order.paid_date) { %}
    [`Paid`] {% if (o.order.paid_datetime_str) { %}{%#o.order.paid_datetime_str%}{% } else { %}{%#o.order.paid_date_str%}{% } %} {% } %}

    {/literal} {/capture} {elseif $view == 'table'}
    {include './skeleton/table.html' no_sidebar=true inline}
    {capture name="template-order-list-table"} {include file='./include.template_order_list_table.html' inline} {/capture} {elseif $view == 'kanban'} {if shopLicensing::isPremium()}
    {include './skeleton/kanban.html' select='kanban' no_sidebar=true inline}
    {capture name="template-order-list-kanban"} {include file='./include.template_order_list_kanban.html' inline} {/capture} {capture name="template-order-list-kanban-card"} {include file='./include.template_order_list_kanban_card.html' inline} {/capture} {else} {$_dummy_kanban_premium} {/if} {/if} {if $view != 'kanban'}
    {_w('%d order','%d orders', $count)} {sprintf(_w('of %d'), $total_count)}
    {if $count < $total_count}
    [`Show more orders`]
    {/if}
    {/if}
    {if $view == 'split'}
    {if !empty($show_mobile_ad)}
    ×
    Shop-Script [`Mobile app`]
    {include file="templates/includes/mobileApps.html" inline}

    [`Install Shop-Script mobile app on your phone today:`]

    {elseif !empty($show_premium_ad)}
    × {include file="templates/includes/availableWithPremiumAlert.html" size_tiny=true title="[`Go premium`]" body="[`Unlock advanced features to boost your business growth.`]" button="[`What’s there in premium?`]" inline}
    {elseif !empty($show_wa_pay_ad)}
    × {include file="templates/includes/waPayAd.html" inline}
    {/if}
    {/if} {if $view == 'split'}
    {include './skeleton/split.html' no_sidebar=true inline}
    {/if}
    {capture name="template-order-list-printforms-menu-items"} {literal} {% var printform, printform_iterator = $.shop.iterator(o.printforms); %} {% if (printform_iterator.len() > 0) { %}
  • {% while (printform = printform_iterator.next()) { %}
  • {% } %}
  • {% } %} {/literal} {/capture} {* js templates block*} {foreach ifempty($smarty.capture, []) as $template => $template_content} {if $template_content && (strpos($template, 'template-')===0)} {capture name=$template}{/capture} {/if} {/foreach} {/if} {if $is_view_split_pos} {/if}