<?php
/* Smarty version 4.5.3, created on 2026-03-17 00:41:44
  from '/var/www/html/admin/ui/ui_custom/widget/cron_monitor.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_69b879185b3b10_51195727',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '2f649e2b92ba145ecd72920dd325510031e4edc9' => 
    array (
      0 => '/var/www/html/admin/ui/ui_custom/widget/cron_monitor.tpl',
      1 => 1770489334,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_69b879185b3b10_51195727 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['run_date']->value) {?>
    <?php $_smarty_tpl->_assignInScope('current_time', time());?>
    <?php $_smarty_tpl->_assignInScope('run_time', strtotime($_smarty_tpl->tpl_vars['run_date']->value));?>
    <?php if ($_smarty_tpl->tpl_vars['current_time']->value-$_smarty_tpl->tpl_vars['run_time']->value > 3600) {?>
        <div class="alert alert-warning border-0 shadow-sm border-start border-warning border-4 mb-4 d-flex align-items-center" role="alert">
            <div class="flex-shrink-0 me-3">
                <i class="isax isax-clock fs-2 text-warning"></i>
            </div>
            <div class="flex-grow-1">
                <h6 class="mb-1 fw-semibold">Cron Job Warning</h6>
                <p class="mb-0 small"><?php echo Lang::T('Cron has not run for over 1 hour. Please check your setup.');?>
</p>
            </div>
        </div>
    <?php } else { ?>
        <div class="alert alert-success border-0 shadow-sm border-start border-success border-4 mb-4 d-flex align-items-center" role="alert">
            <div class="flex-shrink-0 me-3">
                <i class="isax isax-tick-circle fs-2 text-success"></i>
            </div>
            <div class="flex-grow-1">
                <h6 class="mb-1 fw-semibold">Cron Job Status</h6>
                <p class="mb-0 small"><?php echo Lang::T('Cron Job last ran on');?>
: <span class="badge bg-success bg-gradient"><?php echo $_smarty_tpl->tpl_vars['run_date']->value;?>
</span></p>
            </div>
        </div>
    <?php }
} else { ?>
    <div class="alert alert-danger border-0 shadow-sm border-start border-danger border-4 mb-4 d-flex align-items-center" role="alert">
        <div class="flex-shrink-0 me-3">
            <i class="isax isax-danger fs-2 text-danger"></i>
        </div>
        <div class="flex-grow-1">
            <h6 class="mb-1 fw-semibold">Cron Job Not Setup</h6>
            <p class="mb-0 small"><?php echo Lang::T('Cron appear not been setup, please check your cron setup.');?>
</p>
        </div>
    </div>
<?php }
}
}
