<?php
/* Smarty version 3.1.48, created on 2025-03-31 22:45:49
  from '/home/linq/public_html/clients/templates/six/payment/invoice-summary.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.48',
  'unifunc' => 'content_67eb1b1dcb9d03_78932588',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '7dd65637288f540d034703f4401c8daeb4ede1c7' => 
    array (
      0 => '/home/linq/public_html/clients/templates/six/payment/invoice-summary.tpl',
      1 => 1727738244,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_67eb1b1dcb9d03_78932588 (Smarty_Internal_Template $_smarty_tpl) {
?><div id="invoiceIdSummary" class="invoice-summary">
    <h2 class="text-center">
        <?php echo $_smarty_tpl->tpl_vars['LANG']->value['invoicenumber'];
if ($_smarty_tpl->tpl_vars['invoicenum']->value) {
echo $_smarty_tpl->tpl_vars['invoicenum']->value;
} else {
echo $_smarty_tpl->tpl_vars['invoiceid']->value;
}?>
    </h2>
    <div class="invoice-summary-table">
        <table class="table table-condensed">
            <tr>
                <td class="text-center"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['invoicesdescription'];?>
</strong></td>
                <td width="150" class="text-center"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['invoicesamount'];?>
</strong></td>
            </tr>
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['invoiceitems']->value, 'item');
$_smarty_tpl->tpl_vars['item']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->do_else = false;
?>
                <tr>
                    <td><?php echo $_smarty_tpl->tpl_vars['item']->value['description'];?>
</td>
                    <td class="text-center"><?php echo $_smarty_tpl->tpl_vars['item']->value['amount'];?>
</td>
                </tr>
            <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
            <tr>
                <td class="total-row text-right"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['invoicessubtotal'];?>
</td>
                <td class="total-row text-center"><?php echo $_smarty_tpl->tpl_vars['invoice']->value['subtotal'];?>
</td>
            </tr>
            <?php if ($_smarty_tpl->tpl_vars['invoice']->value['taxrate']) {?>
                <tr>
                    <td class="total-row text-right"><?php echo $_smarty_tpl->tpl_vars['invoice']->value['taxrate'];?>
% <?php echo $_smarty_tpl->tpl_vars['invoice']->value['taxname'];?>
</td>
                    <td class="total-row text-center"><?php echo $_smarty_tpl->tpl_vars['invoice']->value['tax'];?>
</td>
                </tr>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['invoice']->value['taxrate2']) {?>
                <tr>
                    <td class="total-row text-right"><?php echo $_smarty_tpl->tpl_vars['invoice']->value['taxrate2'];?>
% <?php echo $_smarty_tpl->tpl_vars['invoice']->value['taxname2'];?>
</td>
                    <td class="total-row text-center"><?php echo $_smarty_tpl->tpl_vars['invoice']->value['tax2'];?>
</td>
                </tr>
            <?php }?>
            <tr>
                <td class="total-row text-right"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['invoicescredit'];?>
</td>
                <td class="total-row text-center"><?php echo $_smarty_tpl->tpl_vars['invoice']->value['credit'];?>
</td>
            </tr>
            <tr>
                <td class="total-row text-right"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['invoicestotaldue'];?>
</td>
                <td class="total-row text-center"><?php echo $_smarty_tpl->tpl_vars['invoice']->value['total'];?>
</td>
            </tr>
        </table>
    </div>
    <p class="text-center">
        <?php echo $_smarty_tpl->tpl_vars['LANG']->value['paymentstodate'];?>
: <strong><?php echo $_smarty_tpl->tpl_vars['invoice']->value['amountpaid'];?>
</strong><br />
        <?php echo $_smarty_tpl->tpl_vars['LANG']->value['balancedue'];?>
: <strong><?php echo $_smarty_tpl->tpl_vars['balance']->value;?>
</strong>
    </p>
</div>
<?php }
}
