<?php
/* Smarty version 3.1.34-dev-7, created on 2023-02-06 14:03:50
  from '/disk2/home/areastec/public_html/phpsch/lang/en_us/ReservationInvitation.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.34-dev-7',
  'unifunc' => 'content_63e108c6e89b38_02127572',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '2221249ba979af9f6ad52ffdb1a7b96e33e3fc61' => 
    array (
      0 => '/disk2/home/areastec/public_html/phpsch/lang/en_us/ReservationInvitation.tpl',
      1 => 1601985272,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_63e108c6e89b38_02127572 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['Deleted']->value) {?>
    <p><?php echo $_smarty_tpl->tpl_vars['UserName']->value;?>
 has deleted a reservation</p>
    <?php } else { ?>
    <p><?php echo $_smarty_tpl->tpl_vars['UserName']->value;?>
 has added you to a reservation</p>
<?php }?>

<?php if (!empty($_smarty_tpl->tpl_vars['DeleteReason']->value)) {?>
    <p><strong>Delete Reason:</strong><?php echo nl2br($_smarty_tpl->tpl_vars['DeleteReason']->value);?>
</p>
<?php }?>

<p><strong>Reservation Details:</strong></p>

<p>
    <strong>Start:</strong> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0], array( array('date'=>$_smarty_tpl->tpl_vars['StartDate']->value,'key'=>'reservation_email'),$_smarty_tpl ) );?>
<br/>
    <strong>End:</strong> <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0], array( array('date'=>$_smarty_tpl->tpl_vars['EndDate']->value,'key'=>'reservation_email'),$_smarty_tpl ) );?>
<br/>
</p>

<p>
<?php if (count($_smarty_tpl->tpl_vars['ResourceNames']->value) > 1) {?>
    <strong>Resources (<?php echo count($_smarty_tpl->tpl_vars['ResourceNames']->value);?>
):</strong> <br />
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['ResourceNames']->value, 'resourceName');
$_smarty_tpl->tpl_vars['resourceName']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['resourceName']->value) {
$_smarty_tpl->tpl_vars['resourceName']->do_else = false;
?>
        <?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
<br/>
    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
} else { ?>
    <strong>Resource:</strong> <?php echo $_smarty_tpl->tpl_vars['ResourceName']->value;?>
<br/>
<?php }?>
</p>

<?php if ($_smarty_tpl->tpl_vars['ResourceImage']->value) {?>
    <div class="resource-image"><img alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['ResourceName']->value, ENT_QUOTES, 'UTF-8', true);?>
" src="<?php echo $_smarty_tpl->tpl_vars['ScriptUrl']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['ResourceImage']->value;?>
"/></div>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['RequiresApproval']->value && !$_smarty_tpl->tpl_vars['Deleted']->value) {?>
    <p>* One or more of the resources reserved require approval before usage. This reservation will be pending until it is approved. *</p>
<?php }?>

<p>
    <strong>Title:</strong> <?php echo $_smarty_tpl->tpl_vars['Title']->value;?>
<br/>
    <strong>Description:</strong> <?php echo nl2br($_smarty_tpl->tpl_vars['Description']->value);?>

</p>

<?php if (count($_smarty_tpl->tpl_vars['RepeatRanges']->value) > 0) {?>
    <br/>
    <strong>The reservation occurs on the following dates (<?php echo count($_smarty_tpl->tpl_vars['RepeatRanges']->value);?>
):</strong>
    <br/>
<?php }?>

<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['RepeatRanges']->value, 'date', false, NULL, 'dates', array (
));
$_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 echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['formatdate'][0], array( array('date'=>$_smarty_tpl->tpl_vars['date']->value->GetBegin()),$_smarty_tpl ) );?>

    <?php if (!$_smarty_tpl->tpl_vars['date']->value->IsSameDate()) {?> - <?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->GetEnd()),$_smarty_tpl ) );
}?>
    <br/>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

<?php if (count($_smarty_tpl->tpl_vars['Participants']->value) > 0) {?>
    <br />
    <strong>Participants (<?php echo count($_smarty_tpl->tpl_vars['Participants']->value)+count($_smarty_tpl->tpl_vars['ParticipatingGuests']->value);?>
):</strong>
    <br />
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Participants']->value, 'user');
$_smarty_tpl->tpl_vars['user']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['user']->value) {
$_smarty_tpl->tpl_vars['user']->do_else = false;
?>
        <?php echo $_smarty_tpl->tpl_vars['user']->value->FullName();?>

        <br/>
    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
}?>

<?php if (count($_smarty_tpl->tpl_vars['ParticipatingGuests']->value) > 0) {?>
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['ParticipatingGuests']->value, 'email');
$_smarty_tpl->tpl_vars['email']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['email']->value) {
$_smarty_tpl->tpl_vars['email']->do_else = false;
?>
        <?php echo $_smarty_tpl->tpl_vars['email']->value;?>

        <br/>
    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
}?>

<?php if (count($_smarty_tpl->tpl_vars['Invitees']->value) > 0) {?>
    <br />
    <strong>Invitees (<?php echo count($_smarty_tpl->tpl_vars['Invitees']->value)+count($_smarty_tpl->tpl_vars['InvitedGuests']->value);?>
):</strong>
    <br />
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Invitees']->value, 'user');
$_smarty_tpl->tpl_vars['user']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['user']->value) {
$_smarty_tpl->tpl_vars['user']->do_else = false;
?>
        <?php echo $_smarty_tpl->tpl_vars['user']->value->FullName();?>

        <br/>
    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
}?>

<?php if (count($_smarty_tpl->tpl_vars['InvitedGuests']->value) > 0) {?>
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['InvitedGuests']->value, 'email');
$_smarty_tpl->tpl_vars['email']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['email']->value) {
$_smarty_tpl->tpl_vars['email']->do_else = false;
?>
        <?php echo $_smarty_tpl->tpl_vars['email']->value;?>

        <br/>
    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
}?>

<?php if (count($_smarty_tpl->tpl_vars['Accessories']->value) > 0) {?>
    <br />
       <strong>Accessories (<?php echo count($_smarty_tpl->tpl_vars['Accessories']->value);?>
):</strong>
       <br />
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Accessories']->value, 'accessory');
$_smarty_tpl->tpl_vars['accessory']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['accessory']->value) {
$_smarty_tpl->tpl_vars['accessory']->do_else = false;
?>
        (<?php echo $_smarty_tpl->tpl_vars['accessory']->value->QuantityReserved;?>
) <?php echo $_smarty_tpl->tpl_vars['accessory']->value->Name;?>

        <br/>
    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
}?>

<?php if (!$_smarty_tpl->tpl_vars['Deleted']->value && !$_smarty_tpl->tpl_vars['Updated']->value) {?>
<p>
    <strong>Attending?</strong> <a href="<?php echo $_smarty_tpl->tpl_vars['ScriptUrl']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['AcceptUrl']->value;?>
">Yes</a> <a href="<?php echo $_smarty_tpl->tpl_vars['ScriptUrl']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['DeclineUrl']->value;?>
">No</a>
</p>
<?php }?>

<?php if (!$_smarty_tpl->tpl_vars['Deleted']->value) {?>
<a href="<?php echo $_smarty_tpl->tpl_vars['ScriptUrl']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['ReservationUrl']->value;?>
">View this reservation</a> |
<a href="<?php echo $_smarty_tpl->tpl_vars['ScriptUrl']->value;?>
/<?php echo $_smarty_tpl->tpl_vars['ICalUrl']->value;?>
">Add to Calendar</a> |
<a href="<?php echo $_smarty_tpl->tpl_vars['GoogleCalendarUrl']->value;?>
" target="_blank" rel="nofollow">Add to Google Calendar</a> |
<?php }?>
<a href="<?php echo $_smarty_tpl->tpl_vars['ScriptUrl']->value;?>
">Log in to <?php echo $_smarty_tpl->tpl_vars['AppTitle']->value;?>
</a>
<?php }
}
