<?php
/* Smarty version 3.1.33, created on 2020-08-19 11:30:35
  from '/home/superior/public_html/constantwriters.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_5f3d0d5b96e932_21734775',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '3edbde5ebc985c00f6652122ebb3d0a1fdbdb6d5' => 
    array (
      0 => '/home/superior/public_html/constantwriters.com/content/themes/dashboard/order/_order.file.tpl',
      1 => 1595616161,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5f3d0d5b96e932_21734775 (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 }
}
