<?php
/* Smarty version 4.5.3, created on 2024-12-03 18:50:49
  from '/var/www/html/admin/ui/ui_custom/sections/footer.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_674f28d9ca26f1_34806501',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '06df324c0e5c57ce02a7acce277895f1f4fa7ba3' => 
    array (
      0 => '/var/www/html/admin/ui/ui_custom/sections/footer.tpl',
      1 => 1732291375,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_674f28d9ca26f1_34806501 (Smarty_Internal_Template $_smarty_tpl) {
?>            </div>
        </div>
        <!--**********************************
                Content body end
        ***********************************-->
     <!-- Add Google Fonts for Handwriting -->
     <link href="https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap" rel="stylesheet">

     <style>
         /* Apply Handwriting Style Font to Footer */
         .footer {
             display: flex;           /* Enable Flexbox */
             justify-content: center; /* Center horizontally */
             align-items: center;     /* Center vertically */
             flex-direction: column;  /* Stack items vertically */
             font-family: 'Dancing Script', cursive;
             font-size: 18px;         /* Default font size */
             color: #333;             /* Text color */
             text-align: center;      /* Center align text */

         }
 
         /* Optional: Style the links in the footer */
         .footer a {
             color: #4b9cd3;  /* Accent color for links */
             text-decoration: none;
         }
 
         .footer a:hover {
             text-decoration: underline;
         }
 
         /* Media Queries for Small Screens */
         @media (max-width: 600px) {
             .footer {
                 font-size: 14px; /* Smaller font size on smaller screens */
                 padding: 15px;   /* Adjust padding for mobile */
             }
 
             .footer a {
                 font-size: 14px; /* Adjust link size for mobile */
             }
         }
 
         @media (max-width: 400px) {
             .footer {
                 font-size: 12px; /* Even smaller font size on very small screens */
                 padding: 10px;   /* Reduce padding for very small screens */
             }
 
             .footer a {
                 font-size: 12px; /* Adjust link size even further */
             }
         }
     </style>
 </head>
 <body>
 
 <!--**********************************
     Footer start
 ***********************************-->
<div class="container-fluid">
    <div class="footer">
        <div class="footer-content">
            <!-- Copyright Section -->
            <p>© <span id="current-year"></span> Designed & Developed by 
                <a href="https://netxtreme.top" target="_blank" rel="noopener noreferrer">XtremeBilling</a> 
                | Powered by <a href="https://netxtreme.top" target="_blank" rel="nofollow noreferrer noopener"><?php echo $_smarty_tpl->tpl_vars['_c']->value['CompanyName'];?>
</a>
            </p>
        </div>
    </div>
 </div>
 <!-- Script to update year dynamically -->
 <?php echo '<script'; ?>
>
     const year = new Date().getFullYear();
     document.getElementById('current-year').innerText = year;
 <?php echo '</script'; ?>
>
 
 <!--**********************************
     Footer end
 ***********************************-->
        </div>
        <!--**********************************
            Scripts
        ***********************************-->
        <?php echo '<script'; ?>
 src="ui/ui/scripts/jquery.min.js"><?php echo '</script'; ?>
>
        <?php echo '<script'; ?>
 src="ui/ui/assets/vendor/global/global.min.js"><?php echo '</script'; ?>
>
        <?php echo '<script'; ?>
 src="ui/ui/scripts/bootstrap.min.js"><?php echo '</script'; ?>
>
    	<?php echo '<script'; ?>
 src="ui/ui/assets/vendor/bootstrap-select/dist/js/bootstrap-select.min.js"><?php echo '</script'; ?>
>
    	<?php echo '<script'; ?>
 src="ui/ui/assets/vendor/chart.js/Chart.bundle.min.js"><?php echo '</script'; ?>
>
    	
    	<!-- Chart piety plugin files -->
        <?php echo '<script'; ?>
 src="ui/ui/assets/vendor/peity/jquery.peity.min.js"><?php echo '</script'; ?>
>
    	
    	<!-- Apex Chart -->
    	<!--<?php echo '<script'; ?>
 src="ui/ui/assets/vendor/apexchart/apexchart.js"><?php echo '</script'; ?>
>-->
    	
    	<!-- Dashboard 1 -->
    	<?php echo '<script'; ?>
 src="ui/ui/assets/js/dashboard/dashboard-1.js"><?php echo '</script'; ?>
>
    	
        <?php echo '<script'; ?>
 src="ui/ui/assets/js/custom.min.js"><?php echo '</script'; ?>
>
    	<?php echo '<script'; ?>
 src="ui/ui/assets/js/deznav-init.js"><?php echo '</script'; ?>
>
    	<?php echo '<script'; ?>
 src="ui/ui/assets/js/demo.js"><?php echo '</script'; ?>
>
        <!--<?php echo '<script'; ?>
 src="ui/ui/assets/js/styleSwitcher.js"><?php echo '</script'; ?>
>   -->
        
        
        <?php echo '<script'; ?>
 src="ui/ui/scripts/plugins/select2.min.js"><?php echo '</script'; ?>
>
        <?php echo '<script'; ?>
 src="ui/ui/scripts/pace.min.js"><?php echo '</script'; ?>
>
        <?php echo '<script'; ?>
 src="ui/ui/scripts/custom.js"><?php echo '</script'; ?>
>
        <?php echo '<script'; ?>
 src="ui/ui/summernote/summernote.min.js"><?php echo '</script'; ?>
>
        <?php echo '<script'; ?>
 src="ui/ui/scripts/adminlte.min.js"><?php echo '</script'; ?>
>
       

        <?php echo '<script'; ?>
>
            document.getElementById('openSearch').addEventListener('click', function () {
                document.getElementById('searchOverlay').style.display = 'flex';
            });
        
            document.getElementById('closeSearch').addEventListener('click', function () {
                document.getElementById('searchOverlay').style.display = 'none';
            });
        
            document.getElementById('searchTerm').addEventListener('keyup', function () {
                let query = this.value;
                $.ajax({
                    url: '<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
search_user',
                    type: 'GET',
                    data: { query: query },
                    success: function (data) {
                        if (data.trim() !== '') {
                            $('#searchResults').html(data).show();
                        } else {
                            $('#searchResults').html('').hide();
                        }
                    }
                });
            });
        <?php echo '</script'; ?>
>
        <?php echo '<script'; ?>
>
            const toggleIcon = document.getElementById('toggleIcon');
            const body = document.body;
            const savedMode = localStorage.getItem('mode');
            if (savedMode === 'dark') {
                body.classList.add('dark-mode');
                toggleIcon.textContent = '🌜';
            }
        
            function setMode(mode) {
                if (mode === 'dark') {
                    body.classList.add('dark-mode');
                    toggleIcon.textContent = '🌜';
                } else {
                    body.classList.remove('dark-mode');
                    toggleIcon.textContent = '🌞';
                }
            }
        
            toggleIcon.addEventListener('click', () => {
                if (body.classList.contains('dark-mode')) {
                    setMode('light');
                    localStorage.setItem('mode', 'light');
                } else {
                    setMode('dark');
                    localStorage.setItem('mode', 'dark');
                }
            });
        <?php echo '</script'; ?>
>
        <?php if ((isset($_smarty_tpl->tpl_vars['xfooter']->value))) {?>
            <?php echo $_smarty_tpl->tpl_vars['xfooter']->value;?>

        <?php }?>
        
       
        
            <?php echo '<script'; ?>
>
                $(document).ready(function) () {
                // Select2 initialization
                $('.select2').select2({
                    width: '100%',
                    height: '52px',
                    containerCssClass: ':all:'
                });
                $('.select2tag').select2({
                    width: '100%',
                    height: '52px',
                    tags: true,
                    containerCssClass: ':all:'
                });
    
                // Button click event listeners
                var listAtts = document.querySelectorAll(`button[type="submit"]`);
                listAtts.forEach(function(el) {
                    if (el.addEventListener) {
                        el.addEventListener("click", function() {
                            $(this).html(`<span class="loading"></span>`);
                        }, false);
                    } else {
                        if (el.attachEvent) {
                            el.attachEvent("click", function() {
                                $(this).html(`<span class="loading"></span>`);
                            });
                        }
                    }
                });

                var listAtts = document.querySelectorAll(`[api-get-text]`);
                listAtts.forEach(function(el) {
                    $.get(el.getAttribute('api-get-text'), function(data) {
                        el.innerHTML = data;
                    });
                });

                function setCookie(name, value, days) {
                    var expires = "";
                    if (days) {
                        var date = new Date();
                        date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
                        expires = "; expires=" + date.toUTCString();
                    }
                    document.cookie = name + "=" + (value || "") + expires + "; path=/";
                }

                function getCookie(name) {
                    var nameEQ = name + "=";
                    var ca = document.cookie.split(';');
                    for (var i = 0; i < ca.length; i++) {
                        var c = ca[i];
                        while (c.charAt(0) == ' ') c = c.substring(1, c.length);
                        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
                    }
                    return null;
                }
            <?php echo '</script'; ?>
>
        
    </body>

</html><?php }
}
