<?php
/* Smarty version 5.4.2, created on 2024-12-21 17:22:01
  from 'file:../default/ai-responses.tpl' */

/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
  'version' => '5.4.2',
  'unifunc' => 'content_67673f89c93ff8_76838528',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'f8ae769c2813d293c032cdd9cf0c6b72cb0f9947' => 
    array (
      0 => '../default/ai-responses.tpl',
      1 => 1731549367,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
))) {
function content_67673f89c93ff8_76838528 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/ui/theme/default';
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
?>


<?php 
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_185216459467673f89c86b38_83458804', "head");
?>




<?php 
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_177167976667673f89c87a02_23317446', "content");
?>


<?php 
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_19695999067673f89c90e43_22989961', "script");
?>



<?php $_smarty_tpl->getInheritance()->endChild($_smarty_tpl, ((string)$_smarty_tpl->getValue('layouts_admin')), $_smarty_current_dir);
}
/* {block "head"} */
class Block_185216459467673f89c86b38_83458804 extends \Smarty\Runtime\Block
{
public function callBlock(\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/ui/theme/default';
?>


<?php
}
}
/* {/block "head"} */
/* {block "content"} */
class Block_177167976667673f89c87a02_23317446 extends \Smarty\Runtime\Block
{
public function callBlock(\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/ui/theme/default';
?>


    <div class="panel">
        <div class="panel-hdr">
            <h3 class="card-title"><?php echo $_smarty_tpl->getSmarty()->getModifierCallback('__')('AI Responses');?>
</h3>
        </div>
        <div class="panel-container">
            <div class="panel-content">

                <table class="table table-condensed table-hover table-bordered" id="clx_datatable">
                    <thead>
                    <tr>
                        <th><?php echo $_smarty_tpl->getValue('_L')['Title'];?>
</th>
                        <th><?php echo $_smarty_tpl->getSmarty()->getModifierCallback('__')('Created');?>
</th>
                        <th class="text-end"><?php echo $_smarty_tpl->getValue('_L')['View'];?>
</th>
                    </tr>
                    </thead>
                    <tbody>

                    <?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('responses'), 'response');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('response')->value) {
$foreach0DoElse = false;
?>
                        <tr>

                            <td>
                                <a href="<?php echo $_smarty_tpl->getValue('_url');?>
ai/response/<?php echo $_smarty_tpl->getValue('response')->uuid;?>
"><?php echo $_smarty_tpl->getValue('response')->title;?>
</a>
                            </td>
                            <td><?php echo $_smarty_tpl->getValue('response')->created_at->format('D, M d Y h:i a');?>
</td>
                            <td class="text-end">
                                <a href="<?php echo $_smarty_tpl->getValue('_url');?>
ai/response/<?php echo $_smarty_tpl->getValue('response')->uuid;?>
" class="btn btn-sm btn-dark"><?php echo $_smarty_tpl->getValue('_L')['View'];?>
</a>
                                <a href="javascript:;" class="btn btn-danger btn-sm" onclick="confirmThenGoToUrl(event,'ai/delete/response/<?php echo $_smarty_tpl->getValue('response')->id;?>
')" data-bs-toggle="tooltip" data-placement="top" title="<?php echo $_smarty_tpl->getValue('_L')['Delete'];?>
"><i class="fal fa-trash-alt"></i></a>
                            </td>

                        </tr>
                    <?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>

                    </tbody>
                </table>

            </div>
        </div>
    </div>

<?php
}
}
/* {/block "content"} */
/* {block "script"} */
class Block_19695999067673f89c90e43_22989961 extends \Smarty\Runtime\Block
{
public function callBlock(\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/Users/razib/Herd/suite/ui/theme/default';
?>

    <?php echo '<script'; ?>
>
        $(function () {
            $('#clx_datatable').dataTable(
                {
                    responsive: true,
                    "language": {
                        "emptyTable": "<?php echo $_smarty_tpl->getValue('_L')['No items to display'];?>
",
                        "info":      "<?php echo $_smarty_tpl->getValue('_L')['Showing _START_ to _END_ of _TOTAL_ entries'];?>
",
                        "infoEmpty":      "<?php echo $_smarty_tpl->getValue('_L')['Showing 0 to 0 of 0 entries'];?>
",
                        buttons: {
                            pageLength: '<?php echo $_smarty_tpl->getValue('_L')['Show all'];?>
'
                        },
                        searchPlaceholder: "<?php echo $_smarty_tpl->getSmarty()->getModifierCallback('__')('Search');?>
"
                    },
                }
            );
        });
    <?php echo '</script'; ?>
>
<?php
}
}
/* {/block "script"} */
}
