<?php
/* Smarty version 3.1.39, created on 2024-05-08 05:32:05
  from 'C:\xamppp\htdocs\HotelRsvpSystem\themes\hotel-reservation-theme\_partials\service-products.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.39',
  'unifunc' => 'content_663af235555fb5_93582337',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '7af2f66f40cd30a729553b3138127ec3473f38ad' => 
    array (
      0 => 'C:\\xamppp\\htdocs\\HotelRsvpSystem\\themes\\hotel-reservation-theme\\_partials\\service-products.tpl',
      1 => 1712649312,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_663af235555fb5_93582337 (Smarty_Internal_Template $_smarty_tpl) {
if ((isset($_smarty_tpl->tpl_vars['service_products_exists']->value)) && $_smarty_tpl->tpl_vars['service_products_exists']->value) {?>
    <ul class="nav nav-tabs product_description_tabs">
        <?php if (!$_smarty_tpl->tpl_vars['PS_SERVICE_PRODUCT_CATEGORY_FILTER']->value) {?>
            <li class="active"><a href="#all_products" class="idTabHrefShort" data-toggle="tab"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Services'),$_smarty_tpl ) );?>
</a></li>
        <?php } else { ?>
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['service_products_by_category']->value, 'category');
$_smarty_tpl->tpl_vars['category']->iteration = 0;
$_smarty_tpl->tpl_vars['category']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['category']->value) {
$_smarty_tpl->tpl_vars['category']->do_else = false;
$_smarty_tpl->tpl_vars['category']->iteration++;
$__foreach_category_201_saved = $_smarty_tpl->tpl_vars['category'];
?>
                <li <?php if ($_smarty_tpl->tpl_vars['category']->iteration == 1) {?>class="active"<?php }?>><a class="idTabHrefShort" href="#category_<?php echo $_smarty_tpl->tpl_vars['category']->value['id_category'];?>
" data-toggle="tab"><?php echo $_smarty_tpl->tpl_vars['category']->value['name'];?>
</a></li>
            <?php
$_smarty_tpl->tpl_vars['category'] = $__foreach_category_201_saved;
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
        <?php }?>
    </ul>
    <div class="card">
        <div class="row">
            <div class="col-sm-12 tab-content">
                <?php if ($_smarty_tpl->tpl_vars['PS_SERVICE_PRODUCT_CATEGORY_FILTER']->value) {?>
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['service_products_by_category']->value, 'service_product_category');
$_smarty_tpl->tpl_vars['service_product_category']->iteration = 0;
$_smarty_tpl->tpl_vars['service_product_category']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['service_product_category']->value) {
$_smarty_tpl->tpl_vars['service_product_category']->do_else = false;
$_smarty_tpl->tpl_vars['service_product_category']->iteration++;
$__foreach_service_product_category_202_saved = $_smarty_tpl->tpl_vars['service_product_category'];
?>
                        <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['service_product_category']->iteration == 1) {?>active<?php }?>" id="category_<?php echo $_smarty_tpl->tpl_vars['service_product_category']->value['id_category'];?>
">
                            <ul class="product-list">
                                <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."_partials/service-products-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('service_products'=>$_smarty_tpl->tpl_vars['service_product_category']->value['products'],'group'=>$_smarty_tpl->tpl_vars['service_product_category']->value['id_category'],'init'=>true), 0, true);
?>
                            </ul>
                            <?php if (RoomTypeServiceProduct::WK_NUM_RESULTS < $_smarty_tpl->tpl_vars['service_product_category']->value['num_products']) {?>
                                <div class="show_more_btn_container">
                                    <button class="btn btn-default get-service-products" data-id_category="<?php echo $_smarty_tpl->tpl_vars['service_product_category']->value['id_category'];?>
" data-page="2" data-num_total="<?php echo $_smarty_tpl->tpl_vars['service_product_category']->value['num_products'];?>
"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Show More'),$_smarty_tpl ) );?>
</button>
                                </div>
                            <?php }?>
                        </div>
                    <?php
$_smarty_tpl->tpl_vars['service_product_category'] = $__foreach_service_product_category_202_saved;
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                <?php } else { ?>
                    <ul class="product-list">
                        <?php $_smarty_tpl->_subTemplateRender(((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."_partials/service-products-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('service_products'=>$_smarty_tpl->tpl_vars['service_products']->value,'group'=>'all','init'=>true), 0, true);
?>
                    </ul>
                    <?php if (RoomTypeServiceProduct::WK_NUM_RESULTS < $_smarty_tpl->tpl_vars['num_total_service_products']->value) {?>
                        <div class="show_more_btn_container">
                            <button class="btn btn-default get-service-products" data-page="2" data-num_total="<?php echo $_smarty_tpl->tpl_vars['num_total_service_products']->value;?>
"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Show More'),$_smarty_tpl ) );?>
</button>
                        </div>
                    <?php }?>
                <?php }?>
            </div>
        </div>
    </div>
<?php }
}
}
