<?php
/* Smarty version 3.1.33-p1, created on 2020-04-22 21:34:23
  from '/home/unikom/public_html/new/my/templates/cloudhostwp/managessl.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33-p1',
  'unifunc' => 'content_5ea0b85f8f7a65_80636337',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'c4d8fa22422d7c25260b042473c01b1a52231c08' => 
    array (
      0 => '/home/unikom/public_html/new/my/templates/cloudhostwp/managessl.tpl',
      1 => 1585171092,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5ea0b85f8f7a65_80636337 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/tablelist.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('tableName'=>"SslList",'startOrderCol'=>"3",'filterColumn'=>"0",'noSortColumns'=>"4"), 0, true);
?>

<div class="alert alert-table-ssl-manage hidden"></div>

<div class="table-container clearfix">
    <table id="tableSslList" class="table table-list">
        <thead>
            <tr>
                <th>Domain</th>
                <th>SSL Product</th>
                <th>Order Date</th>
                <th>Renewal Date</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['sslProducts']->value, 'sslProduct');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['sslProduct']->value) {
?>
                <tr>
                    <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->addonId && $_smarty_tpl->tpl_vars['sslProduct']->value->addonId > 0) {?>
                        <td>
                            <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->status == $_smarty_tpl->tpl_vars['sslStatusAwaitingConfiguration']->value) {?>
                                <label class="label label-info">Awaiting Configuration</label>
                            <?php } else { ?>
                                <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->addon->service->domain) {
echo $_smarty_tpl->tpl_vars['sslProduct']->value->addon->service->domain;
} else { ?>-<?php }?>
                                <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->addon->nextDueDate instanceof Carbon) {?>
                                    <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->addon->nextDueDate->isPast()) {?>
                                        <label class="label label-default">Expired</label>
                                    <?php } elseif ($_smarty_tpl->tpl_vars['sslProduct']->value->addon->nextDueDate->diffInDays() < 60) {?>
                                        <label class="label label-danger">Expiring Soon!</label>
                                    <?php }?>
                                <?php }?>
                            <?php }?>
                        </td>
                        <td>
                            <?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->addon->productAddon->name;?>

                            <label class="label label-<?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->validationType == 'DV') {?>default<?php } elseif ($_smarty_tpl->tpl_vars['sslProduct']->value->validationType == 'OV') {?>warning<?php } elseif ($_smarty_tpl->tpl_vars['sslProduct']->value->validationType == 'EV') {?>success<?php }?>">
                                <?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->validationType;?>

                            </label>
                        </td>
                        <td><?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->addon->registrationDate instanceof Carbon) {?><span class="hidden"><?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->addon->registrationDate->toDateString();?>
</span><?php ob_start();
echo @constant('CLIENT_DATE_FORMAT');
$_prefixVariable1 = ob_get_clean();
echo $_smarty_tpl->tpl_vars['sslProduct']->value->addon->registrationDate->format($_prefixVariable1);
}?></td>
                        <td><?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->addon->nextDueDate instanceof Carbon) {?><span class="hidden"><?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->addon->nextDueDate->toDateString();?>
</span><?php ob_start();
echo @constant('CLIENT_DATE_FORMAT');
$_prefixVariable2 = ob_get_clean();
echo $_smarty_tpl->tpl_vars['sslProduct']->value->addon->nextDueDate->format($_prefixVariable2);
}?></td>
                        <td>
                            <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->status == $_smarty_tpl->tpl_vars['sslStatusAwaitingIssuance']->value) {?>
                                <button class="btn btn-default btn-sm btn-resend-approver-email" data-url="<?php echo routePath('store-ssl-certificates-resend-approver-email');?>
" data-addonid="<?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->addonId;?>
">Resend Email</button>
                            <?php }?>
                            <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->status == $_smarty_tpl->tpl_vars['sslStatusAwaitingConfiguration']->value) {?>
                                <a href="<?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->getConfigurationUrl();?>
" class="btn btn-default btn-sm">Configure</a>
                            <?php }?>
                            <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->addon->nextDueDate instanceof Carbon && $_smarty_tpl->tpl_vars['sslProduct']->value->addon->nextDueDate->subDay()->isFuture()) {?>
                                <form action="<?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->getUpgradeUrl();?>
" method="post">
                                    <input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->id;?>
">
                                    <button type="submit" class="btn btn-default btn-sm"<?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->validationType == 'EV') {?> disabled="disabled"<?php }?>>Upgrade</button>
                                </form>
                            <?php }?>
                        </td>
                    <?php } else { ?>
                        <td>
                            <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->status == $_smarty_tpl->tpl_vars['sslStatusAwaitingConfiguration']->value) {?>
                                <label class="label label-info">Awaiting Configuration</label>
                            <?php } else { ?>
                                <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->service->domain) {
echo $_smarty_tpl->tpl_vars['sslProduct']->value->service->domain;
} else { ?>-<?php }?>
                                <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->service->nextDueDate instanceof Carbon && $_smarty_tpl->tpl_vars['sslProduct']->value->service->nextDueDate->isPast()) {?>
                                    <label class="label label-default">Expired</label>
                                <?php } elseif ($_smarty_tpl->tpl_vars['sslProduct']->value->service->nextDueDate instanceof Carbon && $_smarty_tpl->tpl_vars['sslProduct']->value->service->nextDueDate->diffInDays() < 60) {?>
                                    <label class="label label-danger">Expiring Soon!</label>
                                <?php }?>
                            <?php }?>
                        </td>
                        <td>
                            <?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->service->product->name;?>

                            <label class="label label-<?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->validationType == 'DV') {?>default<?php } elseif ($_smarty_tpl->tpl_vars['sslProduct']->value->validationType == 'OV') {?>warning<?php } elseif ($_smarty_tpl->tpl_vars['sslProduct']->value->validationType == 'EV') {?>success<?php }?>">
                                <?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->validationType;?>

                            </label>
                        </td>
                        <td><?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->service->registrationDate instanceof Carbon) {?><span class="hidden"><?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->service->registrationDate->toDateString();?>
</span><?php ob_start();
echo @constant('CLIENT_DATE_FORMAT');
$_prefixVariable3 = ob_get_clean();
echo $_smarty_tpl->tpl_vars['sslProduct']->value->service->registrationDate->format($_prefixVariable3);
}?></td>
                        <td><?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->service->nextDueDate instanceof Carbon) {?><span class="hidden"><?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->service->nextDueDate->toDateString();?>
</span><?php ob_start();
echo @constant('CLIENT_DATE_FORMAT');
$_prefixVariable4 = ob_get_clean();
echo $_smarty_tpl->tpl_vars['sslProduct']->value->service->nextDueDate->format($_prefixVariable4);
}?></td>
                        <td>
                            <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->status == $_smarty_tpl->tpl_vars['sslStatusAwaitingIssuance']->value) {?>
                                <button class="btn btn-default btn-sm btn-resend-approver-email" data-url="<?php echo routePath('store-ssl-certificates-resend-approver-email');?>
" data-serviceid="<?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->serviceId;?>
">Resend Email</button>
                            <?php }?>
                            <?php if ($_smarty_tpl->tpl_vars['sslProduct']->value->status == $_smarty_tpl->tpl_vars['sslStatusAwaitingConfiguration']->value) {?>
                                <a href="<?php echo $_smarty_tpl->tpl_vars['sslProduct']->value->getConfigurationUrl();?>
" class="btn btn-default btn-sm">Configure</a>
                            <?php }?>
                        </td>
                    <?php }?>

                </tr>
            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
        </tbody>
    </table>
</div>

<?php }
}
