<?php
/* Smarty version 3.1.33, created on 2023-02-06 15:24:57
  from '/home/massessays/dashboard.massessays.com/content/themes/dashboard/order/_order.file.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_63e11bc94825c5_97949934',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '2a8ec0802bde77b307ca2d3b12a88dacf5c78518' => 
    array (
      0 => '/home/massessays/dashboard.massessays.com/content/themes/dashboard/order/_order.file.tpl',
      1 => 1656689818,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_63e11bc94825c5_97949934 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="OrderDetailsFilesCustomersFile">
    <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['download_link'], ENT_QUOTES, 'UTF-8');?>
" class="OrderDetailsFilesCustomersFile__link" title="Download <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['name'], ENT_QUOTES, 'UTF-8');?>
 (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_description'], ENT_QUOTES, 'UTF-8');?>
)">
        <div class="FormFile__icon">
            <div class="FormFile__icon__badge FormFile__icon__badge--<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['extension'], ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['extension'], ENT_QUOTES, 'UTF-8');?>
</div>
        </div>
        <span class="OrderDetailsFilesCustomersFile__subject"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['name'], ENT_QUOTES, 'UTF-8');?>

            <div class="OrderDetailsFilesCustomersFile__file-description">
                <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_description'], ENT_QUOTES, 'UTF-8');?>

                <span class="OrderDetailsFilesCustomersFile__date">
                    <span class="js_moment" data-time="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['created_at'], ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['created_at'], ENT_QUOTES, 'UTF-8');?>
</span>
                </span>
            </div>

            <?php if ($_smarty_tpl->tpl_vars['user']->value['is_admin'] || $_smarty_tpl->tpl_vars['user']->value['is_sub_admin']) {?>
                <?php if ($_smarty_tpl->tpl_vars['file']->value['is_downloaded'] && !$_smarty_tpl->tpl_vars['file']->value['is_uploaded_by_customer']) {?>
                    <div class="OrderDetailsFilesCustomersFile__file-description mt5">
                        Downloaded at
                        <span class="OrderDetailsFilesCustomersFile__date">
                            <span class="js_moment" data-time="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['downloaded_at'], ENT_QUOTES, 'UTF-8');?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['downloaded_at'], ENT_QUOTES, 'UTF-8');?>
</span>
                        </span>
                    </div>
                <?php }?>
            <?php }?>
        </span>
    </a>

    <?php if ($_smarty_tpl->tpl_vars['user']->value['is_admin'] || $_smarty_tpl->tpl_vars['user']->value['is_sub_admin']) {?>
        <span data-toggle="tooltip" data-title="Delete File" data-handle="file" data-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['id'], ENT_QUOTES, 'UTF-8');?>
" class="OrderDetailsFilesCustomersFile__delete-button js_admin-deleter"></span>
    <?php }?>
</div><?php }
}
