<?php
/* Smarty version 3.1.48, created on 2025-07-04 21:21:36
  from '/home/servydhq/public_html/whmcs/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_686845e0529f75_46288950',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '884c318a906f84866c313ba41ae5b1551a14558c' => 
    array (
      0 => '/home/servydhq/public_html/whmcs/templates/six/payment/invoice-summary.tpl',
      1 => 1748871040,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_686845e0529f75_46288950 (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 }
}
