<style type="text/css"><!--
        body {
            font-family: Arial;
        }
--></style>
<div id="invoice-table" style="padding: 40px; font-family: Arial;">
<table style="width: 100%;" border="0" cellspacing="0">
<tbody>
<tr id="invoice-header">
<td style="padding-left: 10px;" colspan="2" align="left" valign="middle" width="66%"><span style="font-size: 18px; font-weight: bold; color: #484740;">{$companylogo}</span> <span style="font-size: 18px; font-weight: bold; color: #a4a4a4;">{$lang.customerquote}</span></td>
<td align="right" valign="middle">
<table border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td align="right"><span style="font-size: 12px; font-weight: bold;">{$lang.estimate_id}</span></td>
<td align="left"><span style="font-size: 12px;">#{$estimate.id}</span></td>
</tr>
<tr>
<td align="right"><span style="font-size: 12px; font-weight: bold;">{$lang.status}</span></td>
<td align="left"><span style="font-size: 12px;">{$estimate.status}</span></td>
</tr>
<tr>
<td align="right"><span style="font-size: 12px; font-weight: bold;">{$lang.estimate_date}</span></td>
<td align="left"><span style="font-size: 12px;">{$estimate.date_created}</span></td>
</tr>
<tr>
<td align="right"><span style="font-size: 12px; font-weight: bold;">{$lang.expirydate}</span></td>
<td align="left"><span style="font-size: 12px;">{$estimate.date_expires}</span></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr id="invoice-details">
<td style="padding-top: 40px;" valign="top" width="33%"><span style="font-size: 12px; font-weight: bold;">{$lang.customer}</span> <br /> <span style="font-size: 11px;">{$client.companyname} <br /> {$estimate.client.firstname} {$estimate.client.lastname} <br /> {$estimate.client.address1} <br /> {$estimate.client.address2} <br /> {$estimate.client.city}, {$estimate.client.state} {$estimate.client.postcode} <br /> {$estimate.client.country} </span></td>
</tr>
</tbody>
</table>
<table class="invoice-table" style="margin-top: 50px; width: 100%;" border="0" cellspacing="0" cellpadding="6">
<tbody>
<tr>
<td align="left" valign="middle" bgcolor="#f0f0f0"><span style="font-size: 11px; font-weight: bold;">{$lang.invoice_desc}</span></td>
<td style="width: 7%;" align="center" valign="middle" bgcolor="#f0f0f0"><span style="font-size: 11px; font-weight: bold;">{$lang.invoice_tax}</span></td>
<td style="width: 15%;" align="right" valign="middle" bgcolor="#f0f0f0"><span style="font-size: 11px; font-weight: bold;">{$lang.unitcost}</span></td>
<td style="width: 7%;" align="center" valign="middle" bgcolor="#f0f0f0"><span style="font-size: 11px; font-weight: bold;">{$lang.qty}</span></td>
<td style="width: 15%;" align="right" valign="middle" bgcolor="#f0f0f0"><span style="font-size: 11px; font-weight: bold;">{$lang.price}</span></td>
</tr>
<tr>
<td style="border-bottom: 1px solid #F0F0F0;" valign="middle"><span style="font-size: 11px;">{$item.description}</span></td>
<td style="border-bottom: 1px solid #F0F0F0;" align="center" valign="middle"><span style="font-size: 11px;">{$item.taxed}</span></td>
<td style="border-bottom: 1px solid #F0F0F0;" align="right" valign="middle"><span style="font-size: 11px;">{$item.amount}</span></td>
<td style="border-bottom: 1px solid #F0F0F0;" align="center" valign="middle"><span style="font-size: 11px;">{$item.qty}</span></td>
<td style="border-bottom: 1px solid #F0F0F0;" align="right" valign="middle"><span style="font-size: 11px;">{$item.linetotal}</span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="2" align="right" valign="middle"><span style="font-size: 12px; font-weight: bold;">{$lang.subtotal}</span></td>
<td colspan="2" align="right" valign="middle"><span style="font-size: 12px;">{$estimate.subtotal}</span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="2" align="right" valign="middle"><span style="font-size: 12px; font-weight: bold;">{$lang.credit}</span></td>
<td colspan="2" align="right" valign="middle"><span style="font-size: 12px;">{$estimate.credit}</span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="2" align="right" valign="middle"><span style="font-size: 12px; font-weight: bold;">{$lang.tax} ({$estimate.taxrate}%)</span></td>
<td colspan="2" align="right" valign="middle"><span style="font-size: 12px;">{$estimate.tax}</span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="2" align="right" valign="middle"><span style="font-size: 12px; font-weight: bold;">{$lang.tax} ({$estimate.taxrate2}%)</span></td>
<td colspan="2" align="right" valign="middle"><span style="font-size: 12px;">{$estimate.tax2}</span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="2" align="right" valign="middle"><span style="font-size: 14px; font-weight: bold;">{$lang.total}</span></td>
<td colspan="2" align="right" valign="middle"><span style="font-size: 14px; font-weight: bold;">{$estimate.total}</span></td>
</tr>
</tbody>
</table>
{if $estimate.notes!=''}
<table style="margin-top: 50px; width: 100%;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width: 100%;" align="left" valign="middle"><span style="font-size: 11px;" lang="">{$estimate.notes}</span></td>
</tr>
</tbody>
</table>
{/if}
<table style="margin-top: 50px; width: 100%;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="border-top: 1px solid #F0F0F0; padding-top: 10px; width: 100%;" align="center">&nbsp;</td>
</tr>
</tbody>
</table>
</div>