{if $unconfirmed_orders == 1}

{__ text="Niepotwierdzone zamówienia"}

{foreach key=row item=order from=$results} {if $order.is_confirmed_orders == 0} {/if} {/foreach}
{__ text="Numer"} {__ text="Data złożenia"} {__ text="Status"} {__ text="Kwota"} {__ text="Opłacone"} {__ text="Potwierdzone"} {__ text="Faktury"}
{$order.number} {$order.created_at} {$order.status} {$order.total_amount} {$order.is_paid} {$order.is_confirmed} {$order.invoice}

{/if} {if $confirmed_orders == 1}

{__ text="Potwierdzone zamówienia"}

{foreach key=row item=order from=$results} {if $order.is_confirmed_orders == 1} {/if} {/foreach}
{__ text="Numer"} {__ text="Data złożenia"} {__ text="Status"} {__ text="Kwota"} {__ text="Opłacone"} {__ text="Potwierdzone"} {__ text="Faktury"}
{$order.number} {$order.created_at} {$order.status} {$order.total_amount} {$order.is_paid} {$order.is_confirmed} {$order.invoice}

{/if}