<?php
/* Smarty version 3.1.39, created on 2024-05-08 10:56:20
  from 'C:\xamppp\htdocs\HotelRsvpSystem\modules\wkroomsearchblock\views\templates\hook\searchForm.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.39',
  'unifunc' => 'content_663af7e4640bb1_73141875',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '23889d632258698e18095b1fec8dff82c418fdec' => 
    array (
      0 => 'C:\\xamppp\\htdocs\\HotelRsvpSystem\\modules\\wkroomsearchblock\\views\\templates\\hook\\searchForm.tpl',
      1 => 1712649312,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_663af7e4640bb1_73141875 (Smarty_Internal_Template $_smarty_tpl) {
?><form method="POST" id="search_hotel_block_form" class="grid">
    <?php if ((isset($_smarty_tpl->tpl_vars['location_enabled']->value)) && $_smarty_tpl->tpl_vars['location_enabled']->value) {?>
        <div class="form-group area-<?php echo $_smarty_tpl->tpl_vars['column_widths']->value['location'];?>
">
            <input type="text" class="form-control header-rmsearch-input input-location" id="hotel_location" name="hotel_location" autocomplete="off" placeholder="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Hotel location','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
" <?php if ((isset($_smarty_tpl->tpl_vars['search_data']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['search_data']->value['location'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
            <input hidden="hidden" name="location_category_id" id="location_category_id" <?php if ((isset($_smarty_tpl->tpl_vars['search_data']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['search_data']->value['location_category_id'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
            <div class="dropdown">
                <ul class="location_search_results_ul dropdown-menu"></ul>
            </div>
        </div>
    <?php }?>
    <?php if (count($_smarty_tpl->tpl_vars['hotels_info']->value) <= 1 && !$_smarty_tpl->tpl_vars['show_hotel_name']->value) {?>
        <input type="hidden" id="max_order_date" name="max_order_date" value="<?php if ((isset($_smarty_tpl->tpl_vars['hotels_info']->value[0]['max_order_date']))) {
echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotels_info']->value[0]['max_order_date'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');
}?>">
        <input type="hidden" id="preparation_time" name="preparation_time" value="<?php if ((isset($_smarty_tpl->tpl_vars['hotels_info']->value[0]['preparation_time']))) {
echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotels_info']->value[0]['preparation_time'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');
}?>">
        <input type="hidden" id="hotel_cat_id" name="hotel_cat_id" value="<?php echo $_smarty_tpl->tpl_vars['hotels_info']->value[0]['id_category'];?>
">
        <input type="hidden" id="id_hotel" name="id_hotel" value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['hotels_info']->value[0]['id'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
">
        <input type="hidden" id="htl_name" class="form-control header-rmsearch-input" value="<?php echo $_smarty_tpl->tpl_vars['hotels_info']->value[0]['hotel_name'];?>
" readonly>
    <?php } else { ?>
        <div class="form-group area-<?php echo $_smarty_tpl->tpl_vars['column_widths']->value['hotel'];?>
">
            <?php if ((isset($_smarty_tpl->tpl_vars['hotels_info']->value)) && count($_smarty_tpl->tpl_vars['hotels_info']->value)) {?>
                <div class="dropdown">
                    <input type="hidden" id="hotel_cat_id" name="hotel_cat_id" <?php if ((isset($_smarty_tpl->tpl_vars['search_data']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['search_data']->value['htl_dtl']['id_category'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
                    <input type="hidden" id="id_hotel" name="id_hotel" <?php if ((isset($_smarty_tpl->tpl_vars['search_data']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['search_data']->value['htl_dtl']['id'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
                    <input type="hidden" id="max_order_date" name="max_order_date" value="<?php if ((isset($_smarty_tpl->tpl_vars['max_order_date']->value))) {
echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['max_order_date']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');
}?>">
                    <input type="hidden" id="preparation_time" name="preparation_time" value="<?php if ((isset($_smarty_tpl->tpl_vars['preparation_time']->value))) {
echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['preparation_time']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');
}?>">

                    <button class="form-control header-rmsearch-input input-hotel <?php if ((isset($_smarty_tpl->tpl_vars['error']->value)) && $_smarty_tpl->tpl_vars['error']->value == 1) {?>error_border<?php }?>" type="button" data-toggle="dropdown" id="id_hotel_button">
                        <?php if ((isset($_smarty_tpl->tpl_vars['search_data']->value))) {?>
                        <span id="hotel_cat_name" class="pull-left"><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['search_data']->value['htl_dtl']['hotel_name'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
</span>
                    <?php } else { ?>
                        <span id="hotel_cat_name" class="pull-left"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Select Hotel','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</span>
                    <?php }?>
                    </button>
                    <ul class="dropdown-menu hotel_dropdown_ul">
                        <?php if ((isset($_smarty_tpl->tpl_vars['hotels_info']->value)) && $_smarty_tpl->tpl_vars['hotels_info']->value) {?>
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['hotels_info']->value, 'name_val');
$_smarty_tpl->tpl_vars['name_val']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['name_val']->value) {
$_smarty_tpl->tpl_vars['name_val']->do_else = false;
?>
                                <li tabindex="-1" class="search_result_li" data-id-hotel="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['name_val']->value['id'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
" data-hotel-cat-id="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['name_val']->value['id_category'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
" data-max_order_date="<?php echo $_smarty_tpl->tpl_vars['name_val']->value['max_order_date'];?>
" data-preparation_time="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['name_val']->value['preparation_time'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['name_val']->value['hotel_name'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
</li>
                            <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        <?php }?>
                    </ul>
                </div>
            <?php }?>
        </div>
    <?php }?>
    <?php if ((isset($_smarty_tpl->tpl_vars['multiple_dates_input']->value)) && $_smarty_tpl->tpl_vars['multiple_dates_input']->value) {?>
        <div class="grid area-<?php echo $_smarty_tpl->tpl_vars['column_widths']->value['date'];?>
" id="daterange_value">
            <div class="form-group">
                <input type="hidden" id="check_in_time" name="check_in_time" <?php if ((isset($_smarty_tpl->tpl_vars['search_data']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['search_data']->value['date_from'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
                <div class="form-control header-rmsearch-input input-date" autocomplete="off" id="daterange_value_from" placeholder="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Check-in','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
"><span><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Check-in','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</span></div>
            </div>
            <div class="form-group">
                <input type="hidden" id="check_out_time" name="check_out_time" <?php if ((isset($_smarty_tpl->tpl_vars['search_data']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['search_data']->value['date_to'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
                <div class="form-control header-rmsearch-input input-date" autocomplete="off" id="daterange_value_to" placeholder="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Check-out','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
"><span><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Check-out','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</span></div>
            </div>
        </div>
    <?php } else { ?>
        <div class="form-group area-<?php echo $_smarty_tpl->tpl_vars['column_widths']->value['date'];?>
">
            <input type="hidden" id="check_in_time" name="check_in_time" <?php if ((isset($_smarty_tpl->tpl_vars['search_data']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['search_data']->value['date_from'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
            <input type="hidden" id="check_out_time" name="check_out_time" <?php if ((isset($_smarty_tpl->tpl_vars['search_data']->value))) {?>value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['search_data']->value['date_to'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
"<?php }?>>
            <div class="form-control header-rmsearch-input input-date" id="daterange_value"  autocomplete="off" placeholder="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Check-in - Check-out','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
"><span><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Check-in','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
 &nbsp;<i class="icon icon-minus"></i>&nbsp; <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Check-out','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</span></div>
        </div>
    <?php }?>

    <?php if ((isset($_smarty_tpl->tpl_vars['is_occupancy_wise_search']->value)) && $_smarty_tpl->tpl_vars['is_occupancy_wise_search']->value) {?>
        <div class="form-group area-<?php echo $_smarty_tpl->tpl_vars['column_widths']->value['occupancy'];?>
">
            <div class="dropdown">
                <button class="form-control input-occupancy header-rmsearch-input <?php if ((isset($_smarty_tpl->tpl_vars['error']->value)) && $_smarty_tpl->tpl_vars['error']->value == 1) {?>error_border<?php }?>" type="button" data-toggle="dropdown" id="guest_occupancy">
                    <span class="pull-left"><?php if (((isset($_smarty_tpl->tpl_vars['search_data']->value['occupancy_adults'])) && $_smarty_tpl->tpl_vars['search_data']->value['occupancy_adults'])) {
echo $_smarty_tpl->tpl_vars['search_data']->value['occupancy_adults'];?>
 <?php if ($_smarty_tpl->tpl_vars['search_data']->value['occupancy_adults'] > 1) {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Adults','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );
} else {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Adult','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );
}?>, <?php if ((isset($_smarty_tpl->tpl_vars['search_data']->value['occupancy_children'])) && $_smarty_tpl->tpl_vars['search_data']->value['occupancy_children']) {
echo $_smarty_tpl->tpl_vars['search_data']->value['occupancy_children'];?>
 <?php if ($_smarty_tpl->tpl_vars['search_data']->value['occupancy_children'] > 1) {?>
                    <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Children','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );
} else {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Child','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );
}?>, <?php }
echo count($_smarty_tpl->tpl_vars['search_data']->value['occupancies']);?>
 <?php if (count($_smarty_tpl->tpl_vars['search_data']->value['occupancies']) > 1) {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Rooms','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );
} else {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Room'),$_smarty_tpl ) );
}
} else {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'1 Adult, 1 Room','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );
}?></span>
                </button>
                <div id="search_occupancy_wrapper" class="dropdown-menu">
                    <div id="occupancy_inner_wrapper">
                        <?php if ((isset($_smarty_tpl->tpl_vars['search_data']->value['occupancies'])) && $_smarty_tpl->tpl_vars['search_data']->value['occupancies']) {?>
                            <?php $_smarty_tpl->_assignInScope('countRoom', 1);?>
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['search_data']->value['occupancies'], 'occupancy', false, 'key', 'occupancyInfo', array (
  'first' => true,
  'index' => true,
));
$_smarty_tpl->tpl_vars['occupancy']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['occupancy']->value) {
$_smarty_tpl->tpl_vars['occupancy']->do_else = false;
$_smarty_tpl->tpl_vars['__smarty_foreach_occupancyInfo']->value['index']++;
$_smarty_tpl->tpl_vars['__smarty_foreach_occupancyInfo']->value['first'] = !$_smarty_tpl->tpl_vars['__smarty_foreach_occupancyInfo']->value['index'];
?>
                                <div class="occupancy-room-block">
                                    <div class="occupancy_info_head"><span class="room_num_wrapper"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Room','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
 - <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['countRoom']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
 </span><?php if (!(isset($_smarty_tpl->tpl_vars['__smarty_foreach_occupancyInfo']->value['first']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_occupancyInfo']->value['first'] : null)) {?><a class="remove-room-link pull-right" href="#"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Remove','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</a><?php }?></div>
                                    <div class="occupancy_info_block" occ_block_index="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
">
                                        <div class="row">
                                            <div class="form-group occupancy_count_block col-sm-5 col-xs-6">
                                                <label><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Adults','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</label>
                                                <div>
                                                    <input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
][adults]" value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['occupancy']->value['adults'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
">
                                                    <div class="occupancy_count pull-left">
                                                        <span><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['occupancy']->value['adults'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
</span>
                                                    </div>
                                                    <div class="qty_direction pull-left">
                                                        <a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
                                                            <span><i class="icon-plus"></i></span>
                                                        </a>
                                                        <a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
                                                            <span><i class="icon-minus"></i></span>
                                                        </a>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="form-group occupancy_count_block col-sm-7 col-xs-6">
                                                <label><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Children','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</label>
                                                <div class="clearfix">
                                                    <input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
][children]" value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['occupancy']->value['children'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
">
                                                    <div class="occupancy_count pull-left">
                                                        <span><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['occupancy']->value['children'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
</span>
                                                    </div>
                                                    <div class="qty_direction pull-left">
                                                        <a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
                                                            <span><i class="icon-plus"></i></span>
                                                        </a>
                                                        <a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
                                                            <span><i class="icon-minus"></i></span>
                                                        </a>
                                                    </div>
                                                </div>
                                                <p class="label-desc-txt">(<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Below','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
  <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['max_child_age']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
 <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'years','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
)</p>
                                            </div>
                                        </div>
                                        <p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>

                                        <div class="row">
                                            <div class="form-group children_age_info_block col-sm-12" <?php if ((isset($_smarty_tpl->tpl_vars['occupancy']->value['child_ages'])) && $_smarty_tpl->tpl_vars['occupancy']->value['child_ages']) {?>style="display:block;"<?php }?>>
                                                <label><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'All Children','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</label>
                                                <div class="children_ages">
                                                    <?php if ((isset($_smarty_tpl->tpl_vars['occupancy']->value['child_ages'])) && $_smarty_tpl->tpl_vars['occupancy']->value['child_ages']) {?>
                                                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['occupancy']->value['child_ages'], 'childAge');
$_smarty_tpl->tpl_vars['childAge']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['childAge']->value) {
$_smarty_tpl->tpl_vars['childAge']->do_else = false;
?>
                                                            <div>
                                                                <select class="guest_child_age room_occupancies" name="occupancy[<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
][child_ages][]">
                                                                    <option value="-1" <?php if ($_smarty_tpl->tpl_vars['childAge']->value == -1) {?>selected<?php }?>><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Select 1','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</option>
                                                                    <option value="0" <?php if ($_smarty_tpl->tpl_vars['childAge']->value == 0) {?>selected<?php }?>><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Under 1','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</option>
                                                                    <?php
$_smarty_tpl->tpl_vars['age'] = new Smarty_Variable(null, $_smarty_tpl->isRenderingCache);$_smarty_tpl->tpl_vars['age']->step = 1;$_smarty_tpl->tpl_vars['age']->total = (int) ceil(($_smarty_tpl->tpl_vars['age']->step > 0 ? ($_smarty_tpl->tpl_vars['max_child_age']->value-1)+1 - (1) : 1-(($_smarty_tpl->tpl_vars['max_child_age']->value-1))+1)/abs($_smarty_tpl->tpl_vars['age']->step));
if ($_smarty_tpl->tpl_vars['age']->total > 0) {
for ($_smarty_tpl->tpl_vars['age']->value = 1, $_smarty_tpl->tpl_vars['age']->iteration = 1;$_smarty_tpl->tpl_vars['age']->iteration <= $_smarty_tpl->tpl_vars['age']->total;$_smarty_tpl->tpl_vars['age']->value += $_smarty_tpl->tpl_vars['age']->step, $_smarty_tpl->tpl_vars['age']->iteration++) {
$_smarty_tpl->tpl_vars['age']->first = $_smarty_tpl->tpl_vars['age']->iteration === 1;$_smarty_tpl->tpl_vars['age']->last = $_smarty_tpl->tpl_vars['age']->iteration === $_smarty_tpl->tpl_vars['age']->total;?>
                                                                        <option value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['age']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
" <?php if ($_smarty_tpl->tpl_vars['childAge']->value == $_smarty_tpl->tpl_vars['age']->value) {?>selected<?php }?>><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['age']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
</option>
                                                                    <?php }
}
?>
                                                                </select>
                                                            </div>
                                                        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                                                    <?php }?>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <hr class="occupancy-info-separator">
                                </div>
                                <?php $_smarty_tpl->_assignInScope('countRoom', $_smarty_tpl->tpl_vars['countRoom']->value+1);?>
                            <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        <?php } else { ?>
                            <div class="occupancy-room-block">
                                <div class="occupancy_info_head"><span class="room_num_wrapper"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Room - 1','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</span></div>
                                <div class="occupancy_info_block" occ_block_index="0">
                                    <div class="row">
                                        <div class="form-group occupancy_count_block col-sm-5 col-xs-6">
                                            <label><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Adults','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</label>
                                            <div>
                                                <input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[0][adults]" value="1">
                                                <div class="occupancy_count pull-left">
                                                    <span>1</span>
                                                </div>
                                                <div class="qty_direction pull-left">
                                                    <a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
                                                        <span>
                                                            <i class="icon-plus"></i>
                                                        </span>
                                                    </a>
                                                    <a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
                                                        <span>
                                                            <i class="icon-minus"></i>
                                                        </span>
                                                    </a>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group occupancy_count_block col-sm-7 col-xs-6">
                                            <label><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Children','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</label>
                                            <div class="clearfix">
                                                <input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[0][children]" value="0">
                                                <div class="occupancy_count pull-left">
                                                    <span>0</span>
                                                </div>
                                                <div class="qty_direction pull-left">
                                                    <a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
                                                        <span>
                                                            <i class="icon-plus"></i>
                                                        </span>
                                                    </a>
                                                    <a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
                                                        <span>
                                                            <i class="icon-minus"></i>
                                                        </span>
                                                    </a>
                                                </div>
                                            </div>
                                            <p class="label-desc-txt">(<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Below','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
  <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['max_child_age']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
 <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'years','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
)</p>
                                        </div>
                                    </div>
                                    <p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
                                    <div class="row">
                                        <div class="form-group children_age_info_block col-sm-12">
                                            <label><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'All Children','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</label>
                                            <div class="children_ages">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <hr class="occupancy-info-separator">
                            </div>
                        <?php }?>
                    </div>
                    <div id="add_new_occupancy">
                        <a class="add_new_occupancy_btn" href="#"><i class="icon-plus"></i> <span><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Add Room','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</span></a>
                    </div>
                </div>
            </div>
        </div>
    <?php }?>
    <div class="form-group search_room_submit_block area-<?php echo $_smarty_tpl->tpl_vars['column_widths']->value['search'];?>
">
        <button type="submit" class="btn btn btn-primary pull-right" name="search_room_submit" id="search_room_submit">
            <span><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Search Rooms','mod'=>'wkroomsearchblock'),$_smarty_tpl ) );?>
</span>
        </button>
    </div>
</form><?php }
}
