<?php
/* Smarty version 3.1.48, created on 2024-11-26 17:48:43
  from '/home/linq/public_html/clients/templates/orderforms/supreme_comparison/products.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.48',
  'unifunc' => 'content_674609fb834726_23256703',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '2ecc4842379e69021d13dc944eb955b55c89cc8c' => 
    array (
      0 => '/home/linq/public_html/clients/templates/orderforms/supreme_comparison/products.tpl',
      1 => 1727738244,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:orderforms/standard_cart/sidebar-categories.tpl' => 1,
    'file:orderforms/supreme_comparison/recommendations-modal.tpl' => 1,
  ),
),false)) {
function content_674609fb834726_23256703 (Smarty_Internal_Template $_smarty_tpl) {
?><!-- Product Recommendations CSS -->
<link type="text/css" rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['BASE_PATH_CSS']->value;?>
/recommendations.min.css" property="stylesheet" />
<!-- Core CSS -->
<link rel="stylesheet" type="text/css" href="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['assetPath'][0], array( array('file'=>"style.css"),$_smarty_tpl ) );?>
" property="stylesheet" />
<?php echo '<script'; ?>
>
    jQuery(document).ready(function () {
        jQuery('#btnShowSidebar').click(function () {
            if (jQuery(".product-selection-sidebar").is(":visible")) {
                jQuery('.row-product-selection').css('left','0');
                jQuery('.product-selection-sidebar').fadeOut();
                jQuery('#btnShowSidebar').html('<i class="fas fa-arrow-circle-right"></i> <?php echo $_smarty_tpl->tpl_vars['LANG']->value['showMenu'];?>
');
            } else {
                jQuery('.product-selection-sidebar').fadeIn();
                jQuery('.row-product-selection').css('left','300px');
                jQuery('#btnShowSidebar').html('<i class="fas fa-arrow-circle-left"></i> <?php echo $_smarty_tpl->tpl_vars['LANG']->value['hideMenu'];?>
');
            }
        });
    });
<?php echo '</script'; ?>
>

<?php if ($_smarty_tpl->tpl_vars['showSidebarToggle']->value) {?>
    <button type="button" class="btn btn-default btn-sm" id="btnShowSidebar">
        <i class="fas fa-arrow-circle-right"></i>
        <?php echo $_smarty_tpl->tpl_vars['LANG']->value['showMenu'];?>

    </button>
<?php }?>
<div class="row row-product-selection">
    <div class="col-md-3 sidebar product-selection-sidebar" id="supremeComparisonSidebar">
        <?php $_smarty_tpl->_subTemplateRender("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-12">
        <div id="order-supreme_comparison">
            <div class="product-group-heading">
                <div class="product-group-headline">
                    <?php if ($_smarty_tpl->tpl_vars['productGroup']->value['headline']) {?>
                        <?php echo $_smarty_tpl->tpl_vars['productGroup']->value['headline'];?>

                    <?php } else { ?>
                        <?php echo $_smarty_tpl->tpl_vars['productGroup']->value['name'];?>

                    <?php }?>
                </div>
                <?php if ($_smarty_tpl->tpl_vars['productGroup']->value['tagline']) {?>
                    <div class="product-group-tagline">
                        <?php echo $_smarty_tpl->tpl_vars['productGroup']->value['tagline'];?>

                    </div>
                <?php }?>
                <?php if ($_smarty_tpl->tpl_vars['errormessage']->value) {?>
                    <div class="alert alert-danger">
                        <?php echo $_smarty_tpl->tpl_vars['errormessage']->value;?>

                    </div>
                <?php } elseif (!$_smarty_tpl->tpl_vars['productGroup']->value) {?>
                    <div class="alert alert-info">
                        <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang'][0], array( array('key'=>'orderForm.selectCategory'),$_smarty_tpl ) );?>

                    </div>
                <?php }?>
            </div>
            <div id="products" class="price-table-container">
                <ul>
                    <?php $_smarty_tpl->_assignInScope('count', 1);?>
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['products']->value, 'product');
$_smarty_tpl->tpl_vars['product']->iteration = 0;
$_smarty_tpl->tpl_vars['product']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->do_else = false;
$_smarty_tpl->tpl_vars['product']->iteration++;
$__foreach_product_0_saved = $_smarty_tpl->tpl_vars['product'];
?>
                        <?php $_smarty_tpl->_assignInScope('idPrefix', $_smarty_tpl->tpl_vars['product']->value['bid'] ? (("bundle").($_smarty_tpl->tpl_vars['product']->value['bid'])) : (("product").($_smarty_tpl->tpl_vars['product']->value['pid'])));?>
                        <li id="<?php echo $_smarty_tpl->tpl_vars['idPrefix']->value;?>
">
                            <div class="price-table">
                                <div class="product-icon">
                                    <img src="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['assetPath'][0], array( array('ns'=>"img",'file'=>"bg".((string)$_smarty_tpl->tpl_vars['count']->value).".png"),$_smarty_tpl ) );?>
" width="155" height="95" alt="Product <?php echo $_smarty_tpl->tpl_vars['product']->iteration;?>
" />
                                </div>
                                <div class="product-title">
                                    <h3 id="<?php echo $_smarty_tpl->tpl_vars['idPrefix']->value;?>
-name" class="font-size-24">
                                        <?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>

                                    </h3>
                                    <?php if ($_smarty_tpl->tpl_vars['product']->value['tagLine']) {?>
                                        <p id="<?php echo $_smarty_tpl->tpl_vars['idPrefix']->value;?>
-tag-line">
                                            <?php echo $_smarty_tpl->tpl_vars['product']->value['tagLine'];?>

                                        </p>
                                    <?php }?>
                                </div>
                                <?php if ($_smarty_tpl->tpl_vars['product']->value['isFeatured']) {?>
                                    <div class="featured-product-background">
                                        <span class="featured-product"><?php echo mb_strtoupper($_smarty_tpl->tpl_vars['LANG']->value['featuredProduct'], 'UTF-8');?>
</span>
                                    </div>
                                <?php }?>
                                <div class="product-body">
                                    <ul id="<?php echo $_smarty_tpl->tpl_vars['idPrefix']->value;?>
-description">
                                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['product']->value['features'], 'value', false, 'feature');
$_smarty_tpl->tpl_vars['value']->iteration = 0;
$_smarty_tpl->tpl_vars['value']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['feature']->value => $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->do_else = false;
$_smarty_tpl->tpl_vars['value']->iteration++;
$__foreach_value_1_saved = $_smarty_tpl->tpl_vars['value'];
?>
                                            <li id="<?php echo $_smarty_tpl->tpl_vars['idPrefix']->value;?>
-feature<?php echo $_smarty_tpl->tpl_vars['value']->iteration;?>
">
                                                <span><?php echo $_smarty_tpl->tpl_vars['value']->value;?>
</span> <?php echo $_smarty_tpl->tpl_vars['feature']->value;?>

                                            </li>
                                        <?php
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_1_saved;
}
if ($_smarty_tpl->tpl_vars['value']->do_else) {
?>
                                            <li id="<?php echo $_smarty_tpl->tpl_vars['idPrefix']->value;?>
-description">
                                                <?php echo $_smarty_tpl->tpl_vars['product']->value['description'];?>

                                            </li>
                                        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                                        <?php if (!empty($_smarty_tpl->tpl_vars['product']->value['features']) && $_smarty_tpl->tpl_vars['product']->value['featuresdesc']) {?>
                                            <li id="<?php echo $_smarty_tpl->tpl_vars['idPrefix']->value;?>
-feature-description">
                                                <?php echo $_smarty_tpl->tpl_vars['product']->value['featuresdesc'];?>

                                            </li>
                                        <?php }?>
                                    </ul>
                                    <div class="price-area">
                                        <div class="price" id="<?php echo $_smarty_tpl->tpl_vars['idPrefix']->value;?>
-price">
                                            <?php if ($_smarty_tpl->tpl_vars['product']->value['bid']) {?>
                                                <?php if ($_smarty_tpl->tpl_vars['product']->value['displayprice']) {?>
                                                    <div class="price-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['bundledeal'];?>
</div>
                                                    <span><?php echo $_smarty_tpl->tpl_vars['product']->value['displayPriceSimple'];?>
</span>
                                                <?php } else { ?>
                                                    <div class="price-single-line">
                                                        <?php echo $_smarty_tpl->tpl_vars['LANG']->value['bundledeal'];?>

                                                    </div>
                                                <?php }?>
                                            <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['paytype'] == "free") {?>
                                                <div class="price-single-line">
                                                    <span><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orderfree'];?>
</span>
                                                </div>
                                            <?php } elseif ($_smarty_tpl->tpl_vars['product']->value['paytype'] == "onetime") {?>
                                                <div class="price-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orderpaymenttermonetime'];?>
</div>
                                                <span><?php echo $_smarty_tpl->tpl_vars['product']->value['pricing']['onetime'];?>
</span>
                                            <?php } else { ?>
                                                <?php if ($_smarty_tpl->tpl_vars['product']->value['pricing']['hasconfigoptions']) {?>
                                                    <div class="price-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['startingat'];?>
</div>
                                                <?php } else { ?>
                                                    <div class="price-label"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['only'];?>
</div>
                                                <?php }?>
                                                <?php echo $_smarty_tpl->tpl_vars['product']->value['pricing']['minprice']['cycleText'];?>

                                                <br>
                                                <?php if ($_smarty_tpl->tpl_vars['product']->value['pricing']['minprice']['setupFee']) {?>
                                                    <small><?php echo $_smarty_tpl->tpl_vars['product']->value['pricing']['minprice']['setupFee']->toPrefixed();?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['ordersetupfee'];?>
</small>
                                                <?php }?>
                                            <?php }?>
                                        </div>
                                        <?php if ($_smarty_tpl->tpl_vars['product']->value['qty'] == "0") {?>
                                            <div id="<?php echo $_smarty_tpl->tpl_vars['idPrefix']->value;?>
-unavailable">
                                                <div class="order-unavailable">
                                                    <?php echo $_smarty_tpl->tpl_vars['LANG']->value['outofstock'];?>

                                                </div>
                                            </div>
                                        <?php } else { ?>
                                            <a href="<?php echo $_smarty_tpl->tpl_vars['product']->value['productUrl'];?>
" class="btn-order-now" id="<?php echo $_smarty_tpl->tpl_vars['idPrefix']->value;?>
-order-button"<?php if ($_smarty_tpl->tpl_vars['product']->value['hasRecommendations']) {?> data-has-recommendations="1"<?php }?>>
                                                <div class="order-now">
                                                    <?php echo $_smarty_tpl->tpl_vars['LANG']->value['ordernowbutton'];?>

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

                                    </div>
                                </div>
                            </div>
                        </li>
                        <?php if ($_smarty_tpl->tpl_vars['count']->value == 6) {?>
                            <?php $_smarty_tpl->_assignInScope('count', 1);?>
                        <?php } else { ?>
                            <?php $_smarty_tpl->_assignInScope('count', $_smarty_tpl->tpl_vars['count']->value+1);?>
                        <?php }?>
                    <?php
$_smarty_tpl->tpl_vars['product'] = $__foreach_product_0_saved;
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                </ul>
            </div>
            <?php if (count($_smarty_tpl->tpl_vars['productGroup']->value['features']) > 0) {?>
                <div class="includes-features">
                    <div class="row clearfix">
                        <div class="col-md-12">
                            <div class="head-area">
                                <span class="primary-bg-color">
                                    <?php echo $_smarty_tpl->tpl_vars['LANG']->value['orderForm']['includedWithPlans'];?>

                                </span>
                            </div>
                            <ul class="list-features">
                                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['productGroup']->value['features'], 'features');
$_smarty_tpl->tpl_vars['features']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['features']->value) {
$_smarty_tpl->tpl_vars['features']->do_else = false;
?>
                                    <li><?php echo $_smarty_tpl->tpl_vars['features']->value['feature'];?>
</li>
                                <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                            </ul>
                        </div>
                    </div>
                </div>
            <?php }?>
        </div>
    </div>
</div>

<?php $_smarty_tpl->_subTemplateRender("file:orderforms/supreme_comparison/recommendations-modal.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['BASE_PATH_JS']->value;?>
/whmcs/recommendations.min.js"><?php echo '</script'; ?>
>
<?php }
}
