<?php
/* Smarty version 3.1.34-dev-7, created on 2023-10-30 23:13:51
  from '/disk2/home/areastec/public_html/phpsch/tpl/Schedule/schedule-mobile.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.34-dev-7',
  'unifunc' => 'content_654038af3f56f9_77005559',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '4a8258edff7dc17acbcda5a6e93d483f22be3cf1' => 
    array (
      0 => '/disk2/home/areastec/public_html/phpsch/tpl/Schedule/schedule-mobile.tpl',
      1 => 1601985296,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_654038af3f56f9_77005559 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->smarty->ext->_tplFunction->registerTplFunctions($_smarty_tpl, array (
  'displayGeneralReservedMobile' => 
  array (
    'compiled_filepath' => '/disk2/home/areastec/public_html/phpsch/tpl_c/4a8258edff7dc17acbcda5a6e93d483f22be3cf1_0.file.schedule-mobile.tpl.php',
    'uid' => '4a8258edff7dc17acbcda5a6e93d483f22be3cf1',
    'call_name' => 'smarty_template_function_displayGeneralReservedMobile_1268958609654038af2d3000_37729828',
  ),
  'displayAdminReservedMobile' => 
  array (
    'compiled_filepath' => '/disk2/home/areastec/public_html/phpsch/tpl_c/4a8258edff7dc17acbcda5a6e93d483f22be3cf1_0.file.schedule-mobile.tpl.php',
    'uid' => '4a8258edff7dc17acbcda5a6e93d483f22be3cf1',
    'call_name' => 'smarty_template_function_displayAdminReservedMobile_1268958609654038af2d3000_37729828',
  ),
  'displayMyReservedMobile' => 
  array (
    'compiled_filepath' => '/disk2/home/areastec/public_html/phpsch/tpl_c/4a8258edff7dc17acbcda5a6e93d483f22be3cf1_0.file.schedule-mobile.tpl.php',
    'uid' => '4a8258edff7dc17acbcda5a6e93d483f22be3cf1',
    'call_name' => 'smarty_template_function_displayMyReservedMobile_1268958609654038af2d3000_37729828',
  ),
  'displayMyParticipatingMobile' => 
  array (
    'compiled_filepath' => '/disk2/home/areastec/public_html/phpsch/tpl_c/4a8258edff7dc17acbcda5a6e93d483f22be3cf1_0.file.schedule-mobile.tpl.php',
    'uid' => '4a8258edff7dc17acbcda5a6e93d483f22be3cf1',
    'call_name' => 'smarty_template_function_displayMyParticipatingMobile_1268958609654038af2d3000_37729828',
  ),
  'displayReservedMobile' => 
  array (
    'compiled_filepath' => '/disk2/home/areastec/public_html/phpsch/tpl_c/4a8258edff7dc17acbcda5a6e93d483f22be3cf1_0.file.schedule-mobile.tpl.php',
    'uid' => '4a8258edff7dc17acbcda5a6e93d483f22be3cf1',
    'call_name' => 'smarty_template_function_displayReservedMobile_1268958609654038af2d3000_37729828',
  ),
  'displayPastTimeMobile' => 
  array (
    'compiled_filepath' => '/disk2/home/areastec/public_html/phpsch/tpl_c/4a8258edff7dc17acbcda5a6e93d483f22be3cf1_0.file.schedule-mobile.tpl.php',
    'uid' => '4a8258edff7dc17acbcda5a6e93d483f22be3cf1',
    'call_name' => 'smarty_template_function_displayPastTimeMobile_1268958609654038af2d3000_37729828',
  ),
  'displayReservableMobile' => 
  array (
    'compiled_filepath' => '/disk2/home/areastec/public_html/phpsch/tpl_c/4a8258edff7dc17acbcda5a6e93d483f22be3cf1_0.file.schedule-mobile.tpl.php',
    'uid' => '4a8258edff7dc17acbcda5a6e93d483f22be3cf1',
    'call_name' => 'smarty_template_function_displayReservableMobile_1268958609654038af2d3000_37729828',
  ),
  'displayRestrictedMobile' => 
  array (
    'compiled_filepath' => '/disk2/home/areastec/public_html/phpsch/tpl_c/4a8258edff7dc17acbcda5a6e93d483f22be3cf1_0.file.schedule-mobile.tpl.php',
    'uid' => '4a8258edff7dc17acbcda5a6e93d483f22be3cf1',
    'call_name' => 'smarty_template_function_displayRestrictedMobile_1268958609654038af2d3000_37729828',
  ),
  'displayUnreservableMobile' => 
  array (
    'compiled_filepath' => '/disk2/home/areastec/public_html/phpsch/tpl_c/4a8258edff7dc17acbcda5a6e93d483f22be3cf1_0.file.schedule-mobile.tpl.php',
    'uid' => '4a8258edff7dc17acbcda5a6e93d483f22be3cf1',
    'call_name' => 'smarty_template_function_displayUnreservableMobile_1268958609654038af2d3000_37729828',
  ),
  'displaySlotMobile' => 
  array (
    'compiled_filepath' => '/disk2/home/areastec/public_html/phpsch/tpl_c/4a8258edff7dc17acbcda5a6e93d483f22be3cf1_0.file.schedule-mobile.tpl.php',
    'uid' => '4a8258edff7dc17acbcda5a6e93d483f22be3cf1',
    'call_name' => 'smarty_template_function_displaySlotMobile_1268958609654038af2d3000_37729828',
  ),
));
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>



<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_1581672365654038af349290_08674993', "legend");
?>


<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_606536153654038af34aff2_78666422', "reservations");
$_smarty_tpl->inheritance->endChild($_smarty_tpl, "Schedule/schedule.tpl");
}
/* {block "legend"} */
class Block_1581672365654038af349290_08674993 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'legend' => 
  array (
    0 => 'Block_1581672365654038af349290_08674993',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
}
}
/* {/block "legend"} */
/* smarty_template_function_displayGeneralReservedMobile_1268958609654038af2d3000_37729828 */
if (!function_exists('smarty_template_function_displayGeneralReservedMobile_1268958609654038af2d3000_37729828')) {
function smarty_template_function_displayGeneralReservedMobile_1268958609654038af2d3000_37729828(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>

        <?php $_smarty_tpl->_assignInScope('badge', '');?>
        <?php if ($_smarty_tpl->tpl_vars['Slot']->value->IsNew()) {
ob_start();
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0], array( array('key'=>"New"),$_smarty_tpl ) );
$_prefixVariable1 = ob_get_clean();
$_smarty_tpl->_assignInScope('badge', (('<span class="reservation-new">').($_prefixVariable1)).('</span>'));
}?>
        <?php if ($_smarty_tpl->tpl_vars['Slot']->value->IsUpdated()) {
ob_start();
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0], array( array('key'=>"Updated"),$_smarty_tpl ) );
$_prefixVariable2 = ob_get_clean();
$_smarty_tpl->_assignInScope('badge', (('<span class="reservation-updated">').($_prefixVariable2)).('</span>'));
}?>

        <?php if ($_smarty_tpl->tpl_vars['Slot']->value->IsPending()) {?>
            <?php $_smarty_tpl->_assignInScope('class', 'pending');?>
        <?php } elseif ($_smarty_tpl->tpl_vars['Slot']->value->HasCustomColor()) {?>
            <?php $_smarty_tpl->_assignInScope('color', (((('style="background-color:').($_smarty_tpl->tpl_vars['Slot']->value->Color())).(' !important;color:')).($_smarty_tpl->tpl_vars['Slot']->value->TextColor())).(' !important;"'));?>
        <?php }?>
		<div class="reserved <?php echo $_smarty_tpl->tpl_vars['class']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['OwnershipClass']->value;?>
 clickres"
			 resid="<?php echo $_smarty_tpl->tpl_vars['Slot']->value->Id();?>
" <?php echo $_smarty_tpl->tpl_vars['color']->value;?>

			 id="<?php echo $_smarty_tpl->tpl_vars['Slot']->value->Id();?>
|<?php echo $_smarty_tpl->tpl_vars['Slot']->value->Date()->Format('Ymd');?>
"><i class="fa fa-info-circle"></i>
            <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0], array( array('date'=>$_smarty_tpl->tpl_vars['Slot']->value->BeginDate(),'key'=>'period_time'),$_smarty_tpl ) );?>
 - <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0], array( array('date'=>$_smarty_tpl->tpl_vars['Slot']->value->EndDate(),'key'=>'period_time'),$_smarty_tpl ) );?>

            <?php echo $_smarty_tpl->tpl_vars['badge']->value;
echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escapequotes' ][ 0 ], array( $_smarty_tpl->tpl_vars['Slot']->value->Label($_smarty_tpl->tpl_vars['SlotLabelFactory']->value) ));?>
</div>
    <?php
}}
/*/ smarty_template_function_displayGeneralReservedMobile_1268958609654038af2d3000_37729828 */
/* smarty_template_function_displayAdminReservedMobile_1268958609654038af2d3000_37729828 */
if (!function_exists('smarty_template_function_displayAdminReservedMobile_1268958609654038af2d3000_37729828')) {
function smarty_template_function_displayAdminReservedMobile_1268958609654038af2d3000_37729828(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>

        <?php $_smarty_tpl->smarty->ext->_tplFunction->callTemplateFunction($_smarty_tpl, 'displayGeneralReservedMobile', array('Slot'=>$_smarty_tpl->tpl_vars['Slot']->value,'Href'=>$_smarty_tpl->tpl_vars['Href']->value,'OwnershipClass'=>'admin'), true);?>

    <?php
}}
/*/ smarty_template_function_displayAdminReservedMobile_1268958609654038af2d3000_37729828 */
/* smarty_template_function_displayMyReservedMobile_1268958609654038af2d3000_37729828 */
if (!function_exists('smarty_template_function_displayMyReservedMobile_1268958609654038af2d3000_37729828')) {
function smarty_template_function_displayMyReservedMobile_1268958609654038af2d3000_37729828(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>

        <?php $_smarty_tpl->smarty->ext->_tplFunction->callTemplateFunction($_smarty_tpl, 'displayGeneralReservedMobile', array('Slot'=>$_smarty_tpl->tpl_vars['Slot']->value,'Href'=>$_smarty_tpl->tpl_vars['Href']->value,'SlotRef'=>$_smarty_tpl->tpl_vars['SlotRef']->value,'OwnershipClass'=>'mine'), true);?>

    <?php
}}
/*/ smarty_template_function_displayMyReservedMobile_1268958609654038af2d3000_37729828 */
/* smarty_template_function_displayMyParticipatingMobile_1268958609654038af2d3000_37729828 */
if (!function_exists('smarty_template_function_displayMyParticipatingMobile_1268958609654038af2d3000_37729828')) {
function smarty_template_function_displayMyParticipatingMobile_1268958609654038af2d3000_37729828(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>

        <?php $_smarty_tpl->smarty->ext->_tplFunction->callTemplateFunction($_smarty_tpl, 'displayGeneralReservedMobile', array('Slot'=>$_smarty_tpl->tpl_vars['Slot']->value,'Href'=>$_smarty_tpl->tpl_vars['Href']->value,'SlotRef'=>$_smarty_tpl->tpl_vars['SlotRef']->value,'OwnershipClass'=>'participating'), true);?>

    <?php
}}
/*/ smarty_template_function_displayMyParticipatingMobile_1268958609654038af2d3000_37729828 */
/* smarty_template_function_displayReservedMobile_1268958609654038af2d3000_37729828 */
if (!function_exists('smarty_template_function_displayReservedMobile_1268958609654038af2d3000_37729828')) {
function smarty_template_function_displayReservedMobile_1268958609654038af2d3000_37729828(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>

        <?php $_smarty_tpl->smarty->ext->_tplFunction->callTemplateFunction($_smarty_tpl, 'displayGeneralReservedMobile', array('Slot'=>$_smarty_tpl->tpl_vars['Slot']->value,'Href'=>$_smarty_tpl->tpl_vars['Href']->value,'SlotRef'=>$_smarty_tpl->tpl_vars['SlotRef']->value,'OwnershipClass'=>''), true);?>

    <?php
}}
/*/ smarty_template_function_displayReservedMobile_1268958609654038af2d3000_37729828 */
/* smarty_template_function_displayPastTimeMobile_1268958609654038af2d3000_37729828 */
if (!function_exists('smarty_template_function_displayPastTimeMobile_1268958609654038af2d3000_37729828')) {
function smarty_template_function_displayPastTimeMobile_1268958609654038af2d3000_37729828(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>

    <?php
}}
/*/ smarty_template_function_displayPastTimeMobile_1268958609654038af2d3000_37729828 */
/* smarty_template_function_displayReservableMobile_1268958609654038af2d3000_37729828 */
if (!function_exists('smarty_template_function_displayReservableMobile_1268958609654038af2d3000_37729828')) {
function smarty_template_function_displayReservableMobile_1268958609654038af2d3000_37729828(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>

    <?php
}}
/*/ smarty_template_function_displayReservableMobile_1268958609654038af2d3000_37729828 */
/* smarty_template_function_displayRestrictedMobile_1268958609654038af2d3000_37729828 */
if (!function_exists('smarty_template_function_displayRestrictedMobile_1268958609654038af2d3000_37729828')) {
function smarty_template_function_displayRestrictedMobile_1268958609654038af2d3000_37729828(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>

    <?php
}}
/*/ smarty_template_function_displayRestrictedMobile_1268958609654038af2d3000_37729828 */
/* smarty_template_function_displayUnreservableMobile_1268958609654038af2d3000_37729828 */
if (!function_exists('smarty_template_function_displayUnreservableMobile_1268958609654038af2d3000_37729828')) {
function smarty_template_function_displayUnreservableMobile_1268958609654038af2d3000_37729828(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>

		<div class="unreservable"
			 resid="<?php echo $_smarty_tpl->tpl_vars['Slot']->value->Id();?>
" <?php echo $_smarty_tpl->tpl_vars['color']->value;?>

			 id="<?php echo $_smarty_tpl->tpl_vars['Slot']->value->Id();?>
|<?php echo $_smarty_tpl->tpl_vars['Slot']->value->Date()->Format('Ymd');?>
"><i class="fa fa-info-circle"></i>
            <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0], array( array('date'=>$_smarty_tpl->tpl_vars['Slot']->value->BeginDate(),'key'=>'period_time'),$_smarty_tpl ) );?>
 - <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0], array( array('date'=>$_smarty_tpl->tpl_vars['Slot']->value->EndDate(),'key'=>'period_time'),$_smarty_tpl ) );?>

            <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escapequotes' ][ 0 ], array( $_smarty_tpl->tpl_vars['Slot']->value->Label($_smarty_tpl->tpl_vars['SlotLabelFactory']->value) ));?>
</div>
    <?php
}}
/*/ smarty_template_function_displayUnreservableMobile_1268958609654038af2d3000_37729828 */
/* smarty_template_function_displaySlotMobile_1268958609654038af2d3000_37729828 */
if (!function_exists('smarty_template_function_displaySlotMobile_1268958609654038af2d3000_37729828')) {
function smarty_template_function_displaySlotMobile_1268958609654038af2d3000_37729828(Smarty_Internal_Template $_smarty_tpl,$params) {
foreach ($params as $key => $value) {
$_smarty_tpl->tpl_vars[$key] = new Smarty_Variable($value, $_smarty_tpl->isRenderingCache);
}
?>

        <?php $_smarty_tpl->smarty->ext->_tplFunction->callTemplateFunction($_smarty_tpl, $_smarty_tpl->tpl_vars['DisplaySlotFactory']->value->GetFunction($_smarty_tpl->tpl_vars['Slot']->value,$_smarty_tpl->tpl_vars['AccessAllowed']->value,'Mobile'), array('Slot'=>$_smarty_tpl->tpl_vars['Slot']->value,'Href'=>$_smarty_tpl->tpl_vars['Href']->value,'SlotRef'=>$_smarty_tpl->tpl_vars['SlotRef']->value), true);?>

    <?php
}}
/*/ smarty_template_function_displaySlotMobile_1268958609654038af2d3000_37729828 */
/* {block "reservations"} */
class Block_606536153654038af34aff2_78666422 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'reservations' => 
  array (
    0 => 'Block_606536153654038af34aff2_78666422',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>


    

    

    

    

    

    

    

    

    

    

    <?php $_smarty_tpl->_assignInScope('TodaysDate', Date::Now());?>
	<table class="reservations mobile" border="1" cellpadding="0" style="width:100%;">

        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['BoundDates']->value, 'date');
$_smarty_tpl->tpl_vars['date']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['date']->value) {
$_smarty_tpl->tpl_vars['date']->do_else = false;
?>
            <?php $_smarty_tpl->_assignInScope('ts', $_smarty_tpl->tpl_vars['date']->value->Timestamp());?>
            <?php $_tmp_array = isset($_smarty_tpl->tpl_vars['periods']) ? $_smarty_tpl->tpl_vars['periods']->value : array();
if (!(is_array($_tmp_array) || $_tmp_array instanceof ArrayAccess)) {
settype($_tmp_array, 'array');
}
$_tmp_array[$_smarty_tpl->tpl_vars['ts']->value] = $_smarty_tpl->tpl_vars['DailyLayout']->value->GetPeriods($_smarty_tpl->tpl_vars['date']->value,false);
$_smarty_tpl->_assignInScope('periods', $_tmp_array);?>
            <?php $_smarty_tpl->_assignInScope('count', count($_smarty_tpl->tpl_vars['periods']->value[$_smarty_tpl->tpl_vars['ts']->value]));?>
            <?php if ($_smarty_tpl->tpl_vars['count']->value == 0) {
continue 1;
}?>
            <?php $_smarty_tpl->_assignInScope('min', $_smarty_tpl->tpl_vars['periods']->value[$_smarty_tpl->tpl_vars['ts']->value][0]->BeginDate()->TimeStamp());?>
            <?php $_smarty_tpl->_assignInScope('max', $_smarty_tpl->tpl_vars['periods']->value[$_smarty_tpl->tpl_vars['ts']->value][$_smarty_tpl->tpl_vars['count']->value-1]->EndDate()->TimeStamp());?>
            <?php $_smarty_tpl->_assignInScope('resourceId', $_smarty_tpl->tpl_vars['resource']->value->Id);?>
			<tr>
                <?php $_smarty_tpl->_assignInScope('class', '');?>
                <?php if ($_smarty_tpl->tpl_vars['TodaysDate']->value->DateEquals($_smarty_tpl->tpl_vars['date']->value) == true) {?>
                    <?php $_smarty_tpl->_assignInScope('class', "today");?>
                <?php }?>
				<td class="resdate <?php echo $_smarty_tpl->tpl_vars['class']->value;?>
" colspan="2"><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0], array( array('date'=>$_smarty_tpl->tpl_vars['date']->value,'key'=>"schedule_daily"),$_smarty_tpl ) );?>
</td>
			</tr>
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Resources']->value, 'resource', false, NULL, 'resource_loop', array (
));
$_smarty_tpl->tpl_vars['resource']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['resource']->value) {
$_smarty_tpl->tpl_vars['resource']->do_else = false;
?>
				<tr>
                    <?php $_smarty_tpl->_assignInScope('resourceId', $_smarty_tpl->tpl_vars['resource']->value->Id);?>
                    <?php ob_start();
echo Pages::RESERVATION;
$_prefixVariable3=ob_get_clean();
ob_start();
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0], array( array('date'=>$_smarty_tpl->tpl_vars['date']->value,'key'=>'url'),$_smarty_tpl ) );
$_prefixVariable4=ob_get_clean();
$_smarty_tpl->_assignInScope('href', $_prefixVariable3."?rid=".((string)$_smarty_tpl->tpl_vars['resourceId']->value)."&sid=".((string)$_smarty_tpl->tpl_vars['ScheduleId']->value)."&rd=".$_prefixVariable4);?>
					<td class="resourcename"
                        <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasColor()) {?>style="background-color:<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetColor();?>
 !important"<?php }?>>
                        <?php if ($_smarty_tpl->tpl_vars['resource']->value->CanAccess) {?>
							<i resourceId="<?php echo $_smarty_tpl->tpl_vars['resourceId']->value;?>
" class="resourceNameSelector fa fa-info-circle" data-show-event="click"
                               <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasColor()) {?>style="color:<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetTextColor();?>
 !important"<?php }?>></i>
							<a href="<?php echo $_smarty_tpl->tpl_vars['href']->value;?>
" resourceId="<?php echo $_smarty_tpl->tpl_vars['resourceId']->value;?>
"
                               <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasColor()) {?>style="color:<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetTextColor();?>
 !important"<?php }?>><?php echo $_smarty_tpl->tpl_vars['resource']->value->Name;?>
</a>
                        <?php } else { ?>
							<i resourceId="<?php echo $_smarty_tpl->tpl_vars['resourceId']->value;?>
" class="resourceNameSelector fa fa-info-circle"
                               <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasColor()) {?>style="color:<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetTextColor();?>
 !important"<?php }?>></i>
							<span <?php if ($_smarty_tpl->tpl_vars['resource']->value->HasColor()) {?>style="color:<?php echo $_smarty_tpl->tpl_vars['resource']->value->GetTextColor();?>
 !important"<?php }?>><?php echo $_smarty_tpl->tpl_vars['resource']->value->Name;?>
</span>
                        <?php }?>
					</td>
                    <?php ob_start();
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0], array( array('date'=>$_smarty_tpl->tpl_vars['date']->value,'key'=>'url'),$_smarty_tpl ) );
$_prefixVariable5=ob_get_clean();
$_smarty_tpl->_assignInScope('href', ((string)$_smarty_tpl->tpl_vars['CreateReservationPage']->value)."?rid=".((string)$_smarty_tpl->tpl_vars['resource']->value->Id)."&sid=".((string)$_smarty_tpl->tpl_vars['ScheduleId']->value)."&rd=".$_prefixVariable5);?>
					<td class="" data-href="<?php echo $_smarty_tpl->tpl_vars['href']->value;?>
"
						data-start="<?php echo rawurlencode($_smarty_tpl->tpl_vars['date']->value->Format('Y-m-d H:i:s'));?>
"
						data-resourceId="<?php echo $_smarty_tpl->tpl_vars['resourceId']->value;?>
">
						<div class="reservable clickres" ref="<?php echo $_smarty_tpl->tpl_vars['href']->value;?>
&rd=<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0], array( array('date'=>$_smarty_tpl->tpl_vars['date']->value,'key'=>'url'),$_smarty_tpl ) );?>
"
							 data-href="<?php echo $_smarty_tpl->tpl_vars['href']->value;?>
" data-start="<?php echo rawurlencode($_smarty_tpl->tpl_vars['date']->value->Format('Y-m-d H:i:s'));?>
"
							 data-end="<?php echo rawurlencode($_smarty_tpl->tpl_vars['date']->value->Format('Y-m-d H:i:s'));?>
">
							<i class="fa fa-plus-circle"></i> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['translate'][0], array( array('key'=>'CreateReservation'),$_smarty_tpl ) );?>

							<input type="hidden" class="href" value="<?php echo $_smarty_tpl->tpl_vars['href']->value;?>
"/>
						</div>
						<div class="reservations" data-min="<?php echo $_smarty_tpl->tpl_vars['min']->value;?>
" data-max="<?php echo $_smarty_tpl->tpl_vars['max']->value;?>
" data-resourceid="<?php echo $_smarty_tpl->tpl_vars['resource']->value->Id;?>
"></div>
					</td>
				</tr>
            <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	</table>
<?php
}
}
/* {/block "reservations"} */
}
