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

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.39',
  'unifunc' => 'content_663af2354afbd1_78277420',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'ffc3fcbeed4cadcca342cd882f4dcbeaf192870d' => 
    array (
      0 => 'C:\\xamppp\\htdocs\\HotelRsvpSystem\\themes\\hotel-reservation-theme\\_partials\\order-extra-services.tpl',
      1 => 1712649312,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_663af2354afbd1_78277420 (Smarty_Internal_Template $_smarty_tpl) {
?>
<div class="card">
    <div class="card-header">
        <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Extra Services'),$_smarty_tpl ) );?>

    </div>
    <div class="card-body">
        <?php if (((isset($_smarty_tpl->tpl_vars['extraDemands']->value)) && $_smarty_tpl->tpl_vars['extraDemands']->value) || ((isset($_smarty_tpl->tpl_vars['additionalServices']->value)) && $_smarty_tpl->tpl_vars['additionalServices']->value)) {?>
            <div class="">
                <ul class="nav nav-tabs">
                    <?php if ((isset($_smarty_tpl->tpl_vars['extraDemands']->value)) && $_smarty_tpl->tpl_vars['extraDemands']->value) {?>
                        <li class="active"><a href="#room_type_demands_desc" data-toggle="tab"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Facilities'),$_smarty_tpl ) );?>
</a></li>
                    <?php }?>
                    <?php if ((isset($_smarty_tpl->tpl_vars['additionalServices']->value)) && $_smarty_tpl->tpl_vars['additionalServices']->value) {?>
                        <li<?php if (!(isset($_smarty_tpl->tpl_vars['extraDemands']->value)) || !$_smarty_tpl->tpl_vars['extraDemands']->value) {?> class="active"<?php }?>><a href="#room_type_service_product_desc" 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 }?>
                </ul>
                <div class="tab-content">
                    <?php if ((isset($_smarty_tpl->tpl_vars['extraDemands']->value)) && $_smarty_tpl->tpl_vars['extraDemands']->value) {?>
                        <div id="room_type_demands_desc" class="tab-pane active">
                            <div class="rooms_extra_demands_head">
                                <p class="rooms_extra_demands_text"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Facilities chosen for this booking.'),$_smarty_tpl ) );?>
</p>
                            </div>
                            <?php $_smarty_tpl->_assignInScope('roomCount', 1);?>
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['extraDemands']->value, 'roomDemand');
$_smarty_tpl->tpl_vars['roomDemand']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['roomDemand']->value) {
$_smarty_tpl->tpl_vars['roomDemand']->do_else = false;
?>
                                <div class="room_demands">
                                    <div class="demand_header">
                                        <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Room'),$_smarty_tpl ) );?>
 <?php echo sprintf('%02d',$_smarty_tpl->tpl_vars['roomCount']->value);?>
&nbsp;
                                        <span>(<?php ob_start();
echo $_smarty_tpl->tpl_vars['roomDemand']->value['adults'];
$_prefixVariable74 = ob_get_clean();
if ($_prefixVariable74 <= 9) {?>0<?php echo $_smarty_tpl->tpl_vars['roomDemand']->value['adults'];
} else {
echo $_smarty_tpl->tpl_vars['roomDemand']->value['adults'];
}?> <?php if ($_smarty_tpl->tpl_vars['roomDemand']->value['adults'] > 1) {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Adults'),$_smarty_tpl ) );
} else {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Adult'),$_smarty_tpl ) );
}
if ($_smarty_tpl->tpl_vars['roomDemand']->value['children'] > 0) {?>, <?php ob_start();
echo $_smarty_tpl->tpl_vars['roomDemand']->value['children'];
$_prefixVariable75 = ob_get_clean();
if ($_prefixVariable75 <= 9) {?>0<?php echo $_smarty_tpl->tpl_vars['roomDemand']->value['children'];
} else {
echo $_smarty_tpl->tpl_vars['roomDemand']->value['children'];
}?> <?php if ($_smarty_tpl->tpl_vars['roomDemand']->value['children'] > 1) {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Children'),$_smarty_tpl ) );
} else {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Child'),$_smarty_tpl ) );
}
}?>)</span>
                                    </div>
                                    <div class="room_demand_detail">
                                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['roomDemand']->value['extra_demands'], 'demand');
$_smarty_tpl->tpl_vars['demand']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['demand']->value) {
$_smarty_tpl->tpl_vars['demand']->do_else = false;
?>
                                            <div class="room_demand_block">
                                                <div class=""><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['demand']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</div>
                                                <div class="">
                                                    <span>
                                                        <?php if ($_smarty_tpl->tpl_vars['useTax']->value) {?>
                                                            <?php ob_start();
echo htmlspecialchars($_smarty_tpl->tpl_vars['demand']->value['total_price_tax_incl'], ENT_QUOTES, 'UTF-8', true);
$_prefixVariable76=ob_get_clean();
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0], array( array('price'=>$_prefixVariable76,'currency'=>$_smarty_tpl->tpl_vars['objOrder']->value->id_currency),$_smarty_tpl ) );?>

                                                        <?php } else { ?>
                                                            <?php ob_start();
echo htmlspecialchars($_smarty_tpl->tpl_vars['demand']->value['total_price_tax_excl'], ENT_QUOTES, 'UTF-8', true);
$_prefixVariable77=ob_get_clean();
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0], array( array('price'=>$_prefixVariable77,'currency'=>$_smarty_tpl->tpl_vars['objOrder']->value->id_currency),$_smarty_tpl ) );?>

                                                        <?php }?>
                                                    </span>
                                                </div>
                                            </div>
                                        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                                    </div>
                                </div>
                                <?php $_smarty_tpl->_assignInScope('roomCount', $_smarty_tpl->tpl_vars['roomCount']->value+1);?>
                            <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        </div>
                    <?php }?>

                    <?php if ((isset($_smarty_tpl->tpl_vars['additionalServices']->value)) && $_smarty_tpl->tpl_vars['additionalServices']->value) {?>
                        <div id="room_type_service_product_desc" class="tab-pane<?php if (!(isset($_smarty_tpl->tpl_vars['extraDemands']->value)) || !$_smarty_tpl->tpl_vars['extraDemands']->value) {?> active<?php }?>">
                            <div class="rooms_extra_demands_head">
                                <p class="rooms_extra_demands_text"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Services chosen for this booking.'),$_smarty_tpl ) );?>
</p>
                            </div>
                            <?php $_smarty_tpl->_assignInScope('roomCount', 1);?>
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['additionalServices']->value, 'roomAdditionalService', false, 'key');
$_smarty_tpl->tpl_vars['roomAdditionalService']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['roomAdditionalService']->value) {
$_smarty_tpl->tpl_vars['roomAdditionalService']->do_else = false;
?>
                                <div class="room_demands">
                                    <div class="demand_header">
                                        <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Room'),$_smarty_tpl ) );?>
 <?php echo sprintf('%02d',$_smarty_tpl->tpl_vars['roomCount']->value);?>
&nbsp;
                                        <span>(<?php ob_start();
echo $_smarty_tpl->tpl_vars['roomAdditionalService']->value['adults'];
$_prefixVariable78 = ob_get_clean();
if ($_prefixVariable78 <= 9) {?>0<?php echo $_smarty_tpl->tpl_vars['roomAdditionalService']->value['adults'];
} else {
echo $_smarty_tpl->tpl_vars['roomAdditionalService']->value['adults'];
}?> <?php if ($_smarty_tpl->tpl_vars['roomAdditionalService']->value['adults'] > 1) {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Adults'),$_smarty_tpl ) );
} else {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Adult'),$_smarty_tpl ) );
}
if ($_smarty_tpl->tpl_vars['roomAdditionalService']->value['children'] > 0) {?>, <?php ob_start();
echo $_smarty_tpl->tpl_vars['roomAdditionalService']->value['children'];
$_prefixVariable79 = ob_get_clean();
if ($_prefixVariable79 <= 9) {?>0<?php echo $_smarty_tpl->tpl_vars['roomAdditionalService']->value['children'];
} else {
echo $_smarty_tpl->tpl_vars['roomAdditionalService']->value['children'];
}?> <?php if ($_smarty_tpl->tpl_vars['roomAdditionalService']->value['children'] > 1) {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Children'),$_smarty_tpl ) );
} else {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Child'),$_smarty_tpl ) );
}
}?>)</span>
                                    </div>
                                    <div class="room_demand_detail">
                                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['roomAdditionalService']->value['additional_services'], 'additionalService');
$_smarty_tpl->tpl_vars['additionalService']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['additionalService']->value) {
$_smarty_tpl->tpl_vars['additionalService']->do_else = false;
?>
                                            <div class="room_demand_block">
                                                <div class="">
                                                    <div class="">
                                                        <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['additionalService']->value['name'], ENT_QUOTES, 'UTF-8', true);?>

                                                        <?php if ($_smarty_tpl->tpl_vars['additionalService']->value['allow_multiple_quantity']) {?>
                                                            <span class="quantity"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'(Quantity: %s)','sprintf'=>array(sprintf('%02d',$_smarty_tpl->tpl_vars['additionalService']->value['quantity']))),$_smarty_tpl ) );?>
</span>
                                                        <?php }?>
                                                    </div>
                                                </div>
                                                <div class="">
                                                    <span>
                                                        <?php if ($_smarty_tpl->tpl_vars['useTax']->value) {?>
                                                            <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0], array( array('price'=>htmlspecialchars($_smarty_tpl->tpl_vars['additionalService']->value['total_price_tax_incl'], ENT_QUOTES, 'UTF-8', true),'currency'=>$_smarty_tpl->tpl_vars['objOrder']->value->id_currency),$_smarty_tpl ) );?>

                                                        <?php } else { ?>
                                                            <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0], array( array('price'=>htmlspecialchars($_smarty_tpl->tpl_vars['additionalService']->value['total_price_tax_excl'], ENT_QUOTES, 'UTF-8', true),'currency'=>$_smarty_tpl->tpl_vars['objOrder']->value->id_currency),$_smarty_tpl ) );?>

                                                        <?php }?>
                                                    </span>
                                                </div>
                                            </div>
                                        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                                    </div>
                                </div>
                                <?php $_smarty_tpl->_assignInScope('roomCount', $_smarty_tpl->tpl_vars['roomCount']->value+1);?>
                            <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        </div>
                    <?php }?>
                </div>
            </div>
        <?php }?>
    </div>
</div>
<?php }
}
