fuc/storage/framework/smarty/compile/f8f7eede929afe0623f53e16f82c911ac5f22da8_0.file_view.tpl.php
2025-03-13 17:13:42 +08:00

176 lines
7.5 KiB
PHP
Executable File

<?php
/* Smarty version 5.3.1, created on 2025-02-04 11:17:06
from 'file:user/ticket/view.tpl' */
/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.3.1',
'unifunc' => 'content_67a186b26fda95_23808234',
'has_nocache_code' => false,
'file_dependency' =>
array (
'f8f7eede929afe0623f53e16f82c911ac5f22da8' =>
array (
0 => 'user/ticket/view.tpl',
1 => 1712762115,
2 => 'file',
),
),
'includes' =>
array (
'file:user/header.tpl' => 1,
'file:user/footer.tpl' => 1,
),
))) {
function content_67a186b26fda95_23808234 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/www/wwwroot/fuuu.cloud/resources/views/tabler/user/ticket';
$_smarty_tpl->renderSubTemplate('file:user/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
<div class="page-wrapper">
<div class="container-xl">
<div class="page-header d-print-none text-white">
<div class="row align-items-center">
<div class="col">
<h2 class="page-title">
<span class="home-title">工单记录</span>
</h2>
<div class="page-pretitle my-3">
<span class="home-subtitle">你可以在这里查看工单消息并添加回复</span>
</div>
</div>
<?php if ($_smarty_tpl->getValue('ticket')->status !== 'closed') {?>
<div class="col-auto">
<div class="btn-list">
<a href="#" class="btn btn-primary" data-bs-toggle="modal"
data-bs-target="#add-reply">
<i class="icon ti ti-plus"></i>
添加回复
</a>
</div>
</div>
<?php }?>
</div>
</div>
</div>
<div class="page-body">
<div class="container-xl">
<div class="row row-cards">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="h1 my-2 mb-3">#<?php echo $_smarty_tpl->getValue('ticket')->id;?>
<?php echo $_smarty_tpl->getValue('ticket')->title;?>
</div>
</div>
</div>
</div>
</div>
<div class="row row-deck my-3">
<div class="col-4">
<div class="card">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="subheader">工单状态</div>
</div>
<div class="h1 mb-3"><?php echo $_smarty_tpl->getValue('ticket')->status;?>
</div>
</div>
</div>
</div>
<div class="col-4">
<div class="card">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="subheader">工单类型</div>
</div>
<div class="h1 mb-3"><?php echo $_smarty_tpl->getValue('ticket')->type;?>
</div>
</div>
</div>
</div>
<div class="col-4">
<div class="card">
<div class="card-body">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="subheader">工单开启时间</div>
</div>
<div class="h1 mb-3"><?php echo $_smarty_tpl->getValue('ticket')->datetime;?>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row justify-content-center my-3">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="divide-y">
<?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('comments'), 'comment');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('comment')->value) {
$foreach0DoElse = false;
?>
<div>
<div class="row">
<div class="col">
<div>
<?php echo nl2br((string) $_smarty_tpl->getValue('comment')->comment, (bool) 1);?>
</div>
<div class="text-secondary my-1"><?php echo $_smarty_tpl->getValue('comment')->commenter_name;?>
回复于 <?php echo $_smarty_tpl->getValue('comment')->datetime;?>
</div>
</div>
<div class="col-auto">
<div>
# <?php echo $_smarty_tpl->getValue('comment')->comment_id+1;?>
</div>
</div>
</div>
</div>
<?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal modal-blur fade" id="add-reply" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">添加回复</h5>
<button class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="mb-3">
<textarea id="reply-comment" class="form-control" rows="15" placeholder="请输入回复内容"></textarea>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn me-auto" data-bs-dismiss="modal">取消</button>
<button id="reply" class="btn btn-primary" data-bs-dismiss="modal"
hx-put="/user/ticket/<?php echo $_smarty_tpl->getValue('ticket')->id;?>
" hx-swap="none"
hx-vals='js:{ comment: document.getElementById("reply-comment").value }'>
回复
</button>
</div>
</div>
</div>
</div>
<?php $_smarty_tpl->renderSubTemplate('file:user/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
}
}