<p>{$LANG.clientareaheader}</p>
<h2><strong>{$stats.numactivetickets}</strong> {$LANG.supportticketsopentickets}</h2>
<p><a href="submitticket.php">{$LANG.supportticketssubmitticket}</a></p>
<table width="100%" border="0" align="center" cellpadding="10" cellspacing="0" class="data">
  <tr>
    <th>{$LANG.supportticketsdate}</th>
    <th>{$LANG.supportticketssubject}</th>
    <th>{$LANG.supportticketsstatus}</th>
    <th>{$LANG.supportticketsticketurgency}</th>
  </tr>
  {foreach key=num item=ticket from=$tickets}
  <tr>
    <td>{$ticket.date}</td>
    <td><div align="left"><img src="images/article.gif" hspace="5" align="middle" alt="" /><a href="viewticket.php?tid={$ticket.tid}&amp;c={$ticket.c}">{if $ticket.unread}<strong>{/if}#{$ticket.tid} - {$ticket.subject}{if $ticket.unread}</strong>{/if}</a></div></td>
    <td width="120">{$ticket.status}</td>
    <td width="80">{$ticket.urgency}</td>
  </tr>
  {foreachelse}
  <tr>
    <td colspan="4" align="center">{$LANG.norecordsfound}</td>
  </tr>
  {/foreach}
</table>
<h2><strong>{$stats.numdueinvoices}</strong> {$LANG.invoicesdue}</h2>
<table width="100%" border="0" align="center" cellpadding="10" cellspacing="0" class="data">
  <tr>
    <th>{$LANG.invoicenumber}</th>
    <th>{$LANG.invoicesdatecreated}</th>
    <th>{$LANG.invoicesdatedue}</th>
    <th>{$LANG.invoicestotal}</th>
    <th>{$LANG.invoicesstatus}</th>
    <th>&nbsp;</th>
  </tr>
  {foreach key=num item=invoice from=$invoices}
  <tr>
    <td>{$invoice.invoicenum}</td>
    <td>{$invoice.datecreated}</td>
    <td>{$invoice.datedue}</td>
    <td>{$currencysymbol}{$invoice.total} {$currency}</td>
    <td>{$invoice.status}</td>
    <td><a href="viewinvoice.php?id={$invoice.id}" target="_blank">{$LANG.invoicesview}</a></td>
  </tr>
  {foreachelse}
  <tr>
    <td colspan="6" align="center">{$LANG.norecordsfound}</td>
  </tr>
  {/foreach}
</table>