<?php
/* Smarty version 4.5.2, created on 2024-08-14 11:31:23
  from '/home/life/public_html/teg.lifestyle.uz/admin/templates/components/image-preview.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_66bc958b33f6d0_14666246',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '3181c2f343439a370e733d2f08809873c2e8c0c0' => 
    array (
      0 => '/home/life/public_html/teg.lifestyle.uz/admin/templates/components/image-preview.tpl',
      1 => 1710480036,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_66bc958b33f6d0_14666246 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="card border shadow-sm"><div class="card-header d-flex flex-wrap"><h6 class="mb-0">Основное изображение</h6><div class="d-inline-flex ms-auto"><a class="text-body" data-card-action="collapse"><i class="ph-caret-down"></i></a></div></div><div class="collapse show"><div class="content-image content-image-preview" id="content-image-preview"><?php if (!empty($_smarty_tpl->tpl_vars['image']->value)) {?><div class="card-img-actions"><img class="img-fluid" src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['image']->value, ENT_QUOTES, 'UTF-8', true);?>
" alt="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
"><div class="card-img-actions-overlay"><a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['image']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="btn btn-outline-white border-width-2" data-popup="lightbox">Просмотр</a></div></div><?php }?></div><div id="preview-image-footer" class="preview-image-footer card-footer d-sm-flex justify-content-sm-between align-items-sm-center"><button id="content-image-preview-add" type="button" class="btn btn-sm btn-primary btn-upload read-more" data-type="image" data-path="/" data-action="read_more"><i class="ph-image me-2"></i><?php if (empty($_smarty_tpl->tpl_vars['id']->value)) {?>Загрузить файл<?php } else { ?>Заменить файл<?php }?></button><?php if (!empty($_smarty_tpl->tpl_vars['id']->value)) {?><button id="content-image-preview-remove" type="button" class="btn btn-sm btn-danger" onclick="deletePreviewImage('<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8', true);?>
', '<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['module']->value, ENT_QUOTES, 'UTF-8', true);?>
');"><i class="ph-trash me-2"></i>Удалить</button><?php }?></div></div></div><?php }
}
