<table class="table-orders table">
   <tr>
      <th>{t}Objednávka{/t}</th>
      <th>{t}Stav{/t}</th>
      <th>{t}Cena{/t}</th>
      <th class="hidden-sm-down">{t}Datum{/t}</th>
      {block "show-invoice"}
      {if $show_invoice == "Y"}
         <th>&nbsp;</th>
      {/if}
      {/block}
      <th>&nbsp;</th>
   </tr>

   {foreach $body.orders as $order}
      <tr>
         <td>{t}č.{/t} {$order.number}</td>
         <td>{$order.status}</td>
         <td><strong>{$order.price}</strong></td>
         <td class="hidden-sm-down">{$order.date|date_format:"%d. %m. %Y"}<span class="hidden-sm-down"> {$order.date|date_format:"%H:%M"}</span></td>
          {block "show-invoice-row"}
         {if $show_invoice == "Y"}
            <td>{if $order.orderObj.status}<a href="{url s=orderView IDo=$order.id}pdf" download>{t}Faktura{/t}</a>{/if}</td>
         {/if}
         {/block}
         <td><a title="{t}Zobrazit objednávku{/t}" href="{url s=orderView IDo=$order.id}">{t}Zobrazit{/t}</a></td>
      </tr>
      {foreachelse}
      <tr>
         <td colspan="5">{t}Prozatím nemáte žádnou objednávku{/t}</td>
      </tr>
   {/foreach}
</table>