<?php
/* Smarty version 4.5.3, created on 2024-12-04 18:23:47
  from '/var/www/html/admin/ui/ui_custom/alert.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_67507403801f18_56912333',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'db37c043a521b228bc40fa742f50da8e1dbeafc9' => 
    array (
      0 => '/var/www/html/admin/ui/ui_custom/alert.tpl',
      1 => 1731474008,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_67507403801f18_56912333 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php echo ucwords(Lang::T($_smarty_tpl->tpl_vars['type']->value));?>
 - <?php echo $_smarty_tpl->tpl_vars['_c']->value['CompanyName'];?>
</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="shortcut icon" href="ui/ui/images/logo.png" type="image/x-icon" />
    <link rel="stylesheet" href="ui/ui/styles/bootstrap.min.css">
    <link rel="stylesheet" href="ui/ui/styles/modern-AdminLTE.min.css">
    <meta http-equiv="refresh" content="<?php echo $_smarty_tpl->tpl_vars['time']->value;?>
; url=<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
">

    <!-- Custom Styles -->
    <style>
        /* Background image */
        body {
            background: url('https://therichpost.com/wp-content/uploads/2021/03/material-design-4k-2048x1152-1.jpg') no-repeat center center fixed;
            background-size: cover;
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .lockscreen-wrapper {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        .card {
            width: 350px;
            margin: 10px;
            background: rgba(255, 255, 255, 0.85); /* Slight transparency to see the background */
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            animation: floating 1s ease-in-out infinite alternate;
        }

        .card-heading {
            background: #007bff;
            color: #fff;
            text-align: center;
            padding: 15px;
            font-size: 18px;
            font-weight: bold;
        }

        .card-body {
            padding: 20px;
            font-size: 16px;
            color: #333;
            text-align: center;
        }

        .card-footer {
            padding: 15px;
            text-align: center;
            background: #f1f1f1;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 5px;
            transition: background-color 0.3s;
        }

        .btn-<?php echo $_smarty_tpl->tpl_vars['type']->value;?>
 {
            background-color: #007bff;
            border: none;
            color: #fff;
            width: 100%;
        }

        .btn-<?php echo $_smarty_tpl->tpl_vars['type']->value;?>
:hover {
            background-color: #0056b3;
        }

        .lockscreen-footer {
            font-size: 14px;
            text-align: center;
            padding-top: 15px;
            color: #777;
        }

        /* Floating animation */
        @keyframes floating {
            0% {
                transform: translateY(-10px);
            }

            100% {
                transform: translateY(10px);
            }
        }

        /* Responsive design */
        @media (max-width: 600px) {
            .card {
                width: 90%;
            }
        }
    </style>

</head>

<body class="hold-transition lockscreen">
    <div class="lockscreen-wrapper">
        <div class="card card-<?php echo $_smarty_tpl->tpl_vars['type']->value;?>
">
            <div class="card-heading"><?php echo ucwords(Lang::T($_smarty_tpl->tpl_vars['type']->value));?>
</div>
            <div class="card-body">
                <?php echo $_smarty_tpl->tpl_vars['text']->value;?>

            </div>
            <div class="card-footer">
                <a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
" id="button" class="btn btn-<?php echo $_smarty_tpl->tpl_vars['type']->value;?>
 btn-block"><?php echo Lang::T('Click Here');?>
 (<?php echo $_smarty_tpl->tpl_vars['time']->value;?>
)</a>
            </div>
            <div class="lockscreen-footer text-center">
                <?php echo $_smarty_tpl->tpl_vars['_c']->value['CompanyName'];?>

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

    <?php echo '<script'; ?>
>
        var time = <?php echo $_smarty_tpl->tpl_vars['time']->value;?>
;
        timer();

        function timer() {
            setTimeout(() => {
                time--;
                if (time > -1) {
                    document.getElementById("button").innerHTML = "<?php echo Lang::T('Click Here');?>
 (" + time + ")";
                    timer();
                }
            }, 1000);
        }
    <?php echo '</script'; ?>
>
</body>

</html>
<?php }
}
