<?php
/* Smarty version 3.1.29, created on 2019-05-29 04:46:31
  from "/home/achahost/public_html/account/templates/orderforms/standard_cart/domainrenewals.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5cee0ea724e0e7_92850583',
  'file_dependency' => 
  array (
    'cdca223d0e7cf9bc359990359b837b34745716d6' => 
    array (
      0 => '/home/achahost/public_html/account/templates/orderforms/standard_cart/domainrenewals.tpl',
      1 => 1515127566,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:orderforms/standard_cart/common.tpl' => 1,
    'file:orderforms/standard_cart/sidebar-categories.tpl' => 1,
    'file:orderforms/standard_cart/sidebar-categories-collapsed.tpl' => 1,
  ),
),false)) {
function content_5cee0ea724e0e7_92850583 ($_smarty_tpl) {
$_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:orderforms/standard_cart/common.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>


<div id="order-standard_cart">

    <div class="row">

        <div class="pull-md-right col-md-9">

            <div class="header-lined">
                <h1><?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainrenewals'];?>
</h1>
            </div>

        </div>

        <div class="col-md-3 pull-md-left sidebar hidden-xs hidden-sm">

            <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:orderforms/standard_cart/sidebar-categories.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>


        </div>

        <div class="col-md-9 pull-md-right">

            <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:orderforms/standard_cart/sidebar-categories-collapsed.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>


            <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainrenewdesc'];?>
</p>

            <form method="post" action="cart.php?a=add&renewals=true">

                <table class="table table-hover table-striped renewals">
                    <thead>
                        <tr>
                            <th width="20"></th>
                            <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orderdomain'];?>
</th>
                            <th class="text-center"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainstatus'];?>
</th>
                            <th class="text-center"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['domaindaysuntilexpiry'];?>
</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
$_from = $_smarty_tpl->tpl_vars['renewals']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_renewal_0_saved_item = isset($_smarty_tpl->tpl_vars['renewal']) ? $_smarty_tpl->tpl_vars['renewal'] : false;
$_smarty_tpl->tpl_vars['renewal'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['renewal']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['renewal']->value) {
$_smarty_tpl->tpl_vars['renewal']->_loop = true;
$__foreach_renewal_0_saved_local_item = $_smarty_tpl->tpl_vars['renewal'];
?>
                            <tr>
                                <td>
                                    <?php if (!$_smarty_tpl->tpl_vars['renewal']->value['pastgraceperiod'] && !$_smarty_tpl->tpl_vars['renewal']->value['beforerenewlimit']) {?>
                                        <input type="checkbox" name="renewalids[]" value="<?php echo $_smarty_tpl->tpl_vars['renewal']->value['id'];?>
" />
                                    <?php }?>
                                </td>
                                <td>
                                    <?php echo $_smarty_tpl->tpl_vars['renewal']->value['domain'];?>

                                </td>
                                <td class="text-center">
                                    <?php echo $_smarty_tpl->tpl_vars['renewal']->value['status'];?>

                                </td>
                                <td class="text-center">
                                    <?php if ($_smarty_tpl->tpl_vars['renewal']->value['daysuntilexpiry'] > 30) {?>
                                        <span class="text-success">
                                            <?php echo $_smarty_tpl->tpl_vars['renewal']->value['daysuntilexpiry'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainrenewalsdays'];?>

                                        </span>
                                    <?php } elseif ($_smarty_tpl->tpl_vars['renewal']->value['daysuntilexpiry'] > 0) {?>
                                        <span class="text-danger">
                                            <?php echo $_smarty_tpl->tpl_vars['renewal']->value['daysuntilexpiry'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainrenewalsdays'];?>

                                        </span>
                                    <?php } else { ?>
                                        <span>
                                            <?php echo $_smarty_tpl->tpl_vars['renewal']->value['daysuntilexpiry']*-1;?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainrenewalsdaysago'];?>

                                        </span>
                                    <?php }?>
                                    <?php if ($_smarty_tpl->tpl_vars['renewal']->value['ingraceperiod']) {?>
                                        <br />
                                        <span class="text-danger">
                                            <?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainrenewalsingraceperiod'];?>

                                        </span>
                                    <?php }?>
                                </td>
                                <td>
                                    <?php if ($_smarty_tpl->tpl_vars['renewal']->value['beforerenewlimit']) {?>
                                        <span class="text-danger">
                                            <?php echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['domainrenewalsbeforerenewlimit'],$_smarty_tpl->tpl_vars['renewal']->value['beforerenewlimitdays']);?>

                                        </span>
                                    <?php } elseif ($_smarty_tpl->tpl_vars['renewal']->value['pastgraceperiod']) {?>
                                        <span class="text-danger">
                                            <?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainrenewalspastgraceperiod'];?>

                                        </span>
                                    <?php } else { ?>
                                        <select class="form-control" name="renewalperiod[<?php echo $_smarty_tpl->tpl_vars['renewal']->value['id'];?>
]">
                                            <?php
$_from = $_smarty_tpl->tpl_vars['renewal']->value['renewaloptions'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_renewaloption_1_saved_item = isset($_smarty_tpl->tpl_vars['renewaloption']) ? $_smarty_tpl->tpl_vars['renewaloption'] : false;
$_smarty_tpl->tpl_vars['renewaloption'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['renewaloption']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['renewaloption']->value) {
$_smarty_tpl->tpl_vars['renewaloption']->_loop = true;
$__foreach_renewaloption_1_saved_local_item = $_smarty_tpl->tpl_vars['renewaloption'];
?>
                                                <option value="<?php echo $_smarty_tpl->tpl_vars['renewaloption']->value['period'];?>
">
                                                    <?php echo $_smarty_tpl->tpl_vars['renewaloption']->value['period'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['orderyears'];?>
 @ <?php echo $_smarty_tpl->tpl_vars['renewaloption']->value['price'];?>

                                                </option>
                                            <?php
$_smarty_tpl->tpl_vars['renewaloption'] = $__foreach_renewaloption_1_saved_local_item;
}
if ($__foreach_renewaloption_1_saved_item) {
$_smarty_tpl->tpl_vars['renewaloption'] = $__foreach_renewaloption_1_saved_item;
}
?>
                                        </select>
                                    <?php }?>
                                </td>
                            </tr>
                        <?php
$_smarty_tpl->tpl_vars['renewal'] = $__foreach_renewal_0_saved_local_item;
}
if (!$_smarty_tpl->tpl_vars['renewal']->_loop) {
?>
                            <tr class="carttablerow">
                                <td colspan="5"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainrenewalsnoneavailable'];?>
</td>
                            </tr>
                        <?php
}
if ($__foreach_renewal_0_saved_item) {
$_smarty_tpl->tpl_vars['renewal'] = $__foreach_renewal_0_saved_item;
}
?>
                    </tbody>
                </table>

                <p class="text-center">
                    <button type="submit" class="btn btn-success">
                        <i class="fa fa-shopping-cart"></i>
                        <?php echo $_smarty_tpl->tpl_vars['LANG']->value['ordernowbutton'];?>

                    </button>
                </p>

            </form>

        </div>
    </div>
</div>
<?php }
}
