<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{$_title} - {$_c['CompanyName']}</title>
    <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/fonts/ionicons/css/ionicons.min.css">
    <link rel="stylesheet" href="ui/ui/fonts/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="ui/ui/styles/modern-AdminLTE.min.css">
    <link rel="stylesheet" href="ui/ui/styles/select2.min.css" />
    <link rel="stylesheet" href="ui/ui/styles/select2-bootstrap.min.css" />
    <link rel="stylesheet" href="ui/ui/styles/sweetalert2.min.css" />
    <link rel="stylesheet" href="ui/ui/styles/plugins/pace.css" />
    <link rel="stylesheet" href="ui/ui/summernote/summernote.min.css" />
    <script src="ui/ui/scripts/sweetalert2.all.min.js"></script>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://fonts.googleapis.com/css2?family=Mnter:wght@400;700&display=swap" rel="stylesheet">
    
    <link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap" rel="stylesheet">

      
    <style>
        .content-header {
            list-style-type: none;
            padding: 15px;
            background-color: #f6f9fcaf;

        }

        @media (max-width: 767px) {
            .content {
                padding: 0 15px !important;
                background-color: #f6f9fcaf;
            }
        }

        .content {
            padding: 25px !important;
            background-color: #f6f9fcaf;

        }

        .content-wrapper,
        .right-side {
            min-height: 100%;
            background-color: #d3dbe4;
            z-index: 800;
        }
        .panel-primary {
            border-color: #333;
        }

        .panel {
            margin-bottom: 20px;
            background-color: #ffffffa9;
            border: 2px solid;
            border-color: rgba(221, 224, 255, .54);
            border-radius: 25px;
            -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
            box-shadow: 0px 4px 30px rgba(221, 224, 255, .54);
        }

        .panel-primary>.panel-heading {
            color: inherit;
            background-color: transparent;
            border-color: transparent;
            border-bottom-right-radius: 21px;
            border-bottom-left-radius: 21px;
        }

        .panel-success>.panel-heading {
            border-bottom-right-radius: 21px;
            border-bottom-left-radius: 21px;
        }

        .panel-cron-success>.panel-heading {
            border-bottom-right-radius: 21px;
            border-bottom-left-radius: 21px;
            color: #fff;
            background-color: #169210;
            border-color: #25e01c;

        }

        .panel-cron-warning>.panel-heading {
            border-bottom-right-radius: 21px;
            border-bottom-left-radius: 21px;
            color: #350808;
            background-color: #efeb0a;
            border-color: #efeb0a;
        }
        .panel-cron-danger>.panel-heading {
            border-bottom-right-radius: 21px;
            border-bottom-left-radius: 21px;
            color: #fff;
            background-color: #e61212;
            border-color: #df1335;
        }

        .panel-danger>.panel-heading {
            color: #a94442;
            background-color: #f2dede;
            border-color: #ebccd1;
        }

        .panel-heading {
            padding: 10px 15px;
            border-bottom: 1px solid transparent;
            border-top-right-radius: 3px;
            border-top-left-radius: 3px;
        }

        .content .row [class*=col-] .box {
            -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
            box-shadow: 0px 4px 30px rgba(221, 224, 255, .54);
            -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
            -ms-box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
            -webkit-border-radius: 1px !important;
            -moz-border-radius: 1px !important;
            -ms-border-radius: 1px !important;
            border-radius: 15px !important;
            border-color: rgba(221, 224, 255, .54);
        }

        .box.box-solid.box-primary>.box-header {
            color: inherit;
            background-color: transparent;
            border-color: transparent;
        }

        .box.box-solid.box-info>.box-header {
            color: inherit;
            background-color: transparent;
            border-color: transparent;
        }

        .box.box-solid.box-danger>.box-header {
            color: inherit;
            background-color: transparent;
            border-color: transparent;
        }

        .box.box-solid.box-warning>.box-header {
            color: inherit;
            background-color: transparent;
            border-color: transparent;
        }

        .box.box-solid.box-default>.box-header {
            color: inherit;
            background-color: transparent;
            border-color: transparent;
        }

        .box-footer {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
            border-bottom-right-radius: 25px;
            border-bottom-left-radius: 25px;
            border-top: 1px solid transparent;
            padding: 10px;
            background-color: inherit;
            border-radius: 15px;
        }

        .panel-footer {
            padding: 10px 15px;
            background-color: inherit;
            border-top: 1px solid transparent;
            border-bottom-right-radius: 25px;
            border-bottom-left-radius: 25px;
        }

        .box {
            position: relative;
            border-radius: 25px;
            background: inherit;
            border-top: 3px solid #d2d6de;
            margin-bottom: 20px;
            width: 100%;
            -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
            box-shadow: 0px 4px 30px rgba(221, 224, 255, .54);
        }

        .panel-success>.panel-heading {
            color: #3c763d;
            background-color: transparent;
            border-color: #d6e9c6;
        }

        .content-header>h1 {
            font-weight: bold;
        }

         .box.box-solid.box-primary > .box-header .btn {
            color: inherit;
        }

        .box-header>.fa,
        .box-header>.glyphicon,
        .box-header>.ion,
        .box-header .box-title {
            font-weight: bold;
        }

        .modern-skin-dark .main-sidebar .sidebar .sidebar-menu li>a {
            font-weight: bold;
        }

        .main-header .logo .logo-lg {
            font-weight: bold;
        }

        
        .panel-heading {
            padding: 10px 15px;
            border-bottom: 0px solid transparent;
            border-top-right-radius: 21px;
            border-top-left-radius: 21px;
        }
        .mulish-font {
            font-family: 'Mulish', sans-serif;
        }
        .font-bold {
            font-weight: bold;
        }
        ::-moz-selection {
            /* Code for Firefox */
            color: red;
            background: yellow;
        }

        ::selection {
            color: red;
            background: yellow;
        }

        .select2-container .select2-selection--single .select2-selection__rendered {
            margin-top: 0px !important;
        }

        @media (min-width: 768px) {
            .outer {
                height: 200px
                    /* Or whatever */
            }
        }

        th:first-child,
        td:first-child {
            position: sticky;
            left: 0px;
            background-color: #f9f9f9;
        }


        .text1line {
            display: block;
            /* or inline-block */
            text-overflow: ellipsis;
            word-wrap: break-word;
            overflow: hidden;
            max-height: 1em;
            line-height: 1em;
        }


        .loading {
            pointer-events: none;
            opacity: 0.7;
        }

        .loading::after {
            content: "";
            display: inline-block;
            width: 16px;
            height: 16px;
            vertical-align: middle;
            margin-left: 10px;
            border: 2px solid #fff;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s infinite linear;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

       /*
         * maintenance top-bar 
         */

         .notification-top-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 40px;
            line-height: 40px;
            width: 100%;
            background: #ec2106;
            text-align: center;
            color: #FFFFFF;
            font-family: serif;
            font-weight: bolder;
            font-size: 14px;
            z-index: 9999;
            box-sizing: border-box;
            padding: 0 10px;
        }

        .notification-top-bar p {
            padding: 0;
            margin: 0;
        }

        .notification-top-bar p a {
            padding: 5px 10px;
            border-radius: 3px;
            background: #FFF;
            color: #1ABC9C;
            font-weight: bold;
            text-decoration: none;
            display: inline;
            font-size: inherit;
        }

        @media (max-width: 600px) {
            .notification-top-bar {
                font-size: 12px;
                height: auto;
                line-height: normal;
                padding: 10px;
            }

            .notification-top-bar p a {
                padding: 5px 10px;
                margin: 5px 0;
                font-size: 10px;
                display: inline-block;
            }
        }
.sidebar-menu > li.active > a {
    color: #f29f67 !important;
    background-color: #1e1e2c;
    border-radius: 1em;
    width: 95%;
    display: block;
    margin: 0 auto;
}

/* Style for the container holding the user image */
.user-image-container {
    position: relative;
    display: inline-block;  /* Ensures the container wraps tightly around the image */
}

/* Style for the online status indicator */
.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0.75rem;  /* Small size for the status indicator */
    height: 0.75rem; /* Ensure the status indicator is a circle */
    background-color: #4caf50;  /* Green color for the 'online' status */
    border: 2px solid white;    /* White border around the circle */
    border-radius: 50%;         /* Make it circular */
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);  /* Optional: adds subtle shadow for better visibility */
}

/* Optional: Style for when the user is offline (for example, red indicator) */
.user-image-container.offline .online-status {
    background-color: #f44336;  /* Red color for offline status */
}


    .dark-mode {
            background-color: #1a202c;
            color: #cbd5e0;
        }

        .dark-mode .main-header .logo,
        .dark-mode .main-header .navbar,
        .dark-mode .main-sidebar,
        .dark-mode .main-sidebar .sidebar,
        .dark-mode .sidebar-menu li>a {
            background-color: #1a202c;
            color: #cbd5e0;
        }

        .dark-mode .sidebar-menu li:hover,
        .dark-mode .sidebar-menu li:focus {
            color: #10d435;
        }

        .dark-mode .main-sidebar .sidebar .sidebar-menu li.active a {
            background-color: #02011a;
        }

        .dark-mode .content,
        .dark-mode .content-header,
        .dark-mode .content-wrapper,
        .dark-mode .right-side {
            background-color: #2d3748;
        }

        .dark-mode .main-footer {
            background-color: #1a202c;
            color: #cbd5e0;
        }

        .dark-mode .panel,
        .dark-mode .box {
            background-color: #2d3748; /* Dark gray background */
            border-color: #4a5568; /* Slightly lighter border */
        }

        .dark-mode .panel-heading,
        .dark-mode .box-header {
            background-color: transparent; /* Or use a slightly lighter shade */
            color: #f3f4f5; /* Light text color for headers */
        }
        .dark-mode .card-body, 
.dark-mode .panel-body, 
.dark-mode .box-body {
    color: #cbd5e0; /* Light text for the body content */
}
.dark-mode .card:hover, 
.dark-mode .panel:hover, 
.dark-mode .box:hover {
    background-color: #333; /* Lighter shade on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.dark-mode h3 {
    color: #cbd5e0; /* Light gray for h3 */
    font-size: 1.75rem;
}
.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6 {
    color: #e2e8f0; /* Light gray text */
    font-weight: bold; /* Ensure headings are bold */
}

        .dark-mode .box-footer,
        .dark-mode .panel-footer {
            background-color: #2d3748;
        }

       
        .dark-mode .notification-top-bar {
            background-color: #742a2a;
        }

        .dark-mode .bs-callout {
            background-color: #2d3748;
            border-color: #4a5568;
            color: #cbd5e0;
        }

        .dark-mode .bs-callout h4 {
            color: #cbd5e0;
        }

        .dark-mode .bg-gray {
            background-color: inherit !important;
        }

        .toggle-container {
            cursor: pointer;
        }

        .toggle-container .toggle-icon {
            font-size: 25px;
            color: rgb(100 116 139);
            transition: color 0.5s ease;
        }

        .dark-mode .toggle-container .toggle-icon {
            color: #ffdd57;
        }

        .dark-mode th:first-child,
        .dark-mode td:first-child {
            background-color: #4a4949;
        }

        .dark-mode .panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,
        .dark-mode .panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,
        .dark-mode .panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,
        .dark-mode .panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child,
        .dark-mode .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,
        .dark-mode .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,
        .dark-mode .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,
        .dark-mode .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child {
            background-color: #4a4949;
            border-bottom-left-radius: 21px;
        }

        .dark-mode .table>thead>tr>td.danger,
        .dark-mode .table>thead>tr>th.danger,
        .dark-mode .table>thead>tr.danger>td,
        .dark-mode .table>thead>tr.danger>th,
        .dark-mode .table>tbody>tr>td.danger,
        .dark-mode .table>tbody>tr>th.danger,
        .dark-mode .table>tbody>tr.danger>td,
        .dark-mode .table>tbody>tr.danger>th,
        .dark-mode .table>tfoot>tr>td.danger,
        .dark-mode .table>tfoot>tr>th.danger,
        .dark-mode .table>tfoot>tr.danger>td,
        .dark-mode .table>tfoot>tr.danger>th {
            background-color: #694760;
        }

        .dark-mode .table>thead>tr>td.warning,
        .dark-mode .table>thead>tr>th.warning,
        .dark-mode .table>thead>tr.warning>td,
        .dark-mode .table>thead>tr.warning>th,
        .dark-mode .table>tbody>tr>td.warning,
        .dark-mode .table>tbody>tr>th.warning,
        .dark-mode .table>tbody>tr.warning>td,
        .dark-mode .table>tbody>tr.warning>th,
        .dark-mode .table>tfoot>tr>td.warning,
        .dark-mode .table>tfoot>tr>th.warning,
        .dark-mode .table>tfoot>tr.warning>td,
        .dark-mode .table>tfoot>tr.danger>th {
            background-color: #787c63;
            color: #ffffff;
        }

        .dark-mode .table>thead>tr>td.success,
        .dark-mode .table>thead>tr>th.success,
        .dark-mode .table>thead>tr.success>td,
        .dark-mode .table>thead>tr.success>th,
        .dark-mode .table>tbody>tr>td.success,
        .dark-mode .table>tbody>tr>th.success,
        .dark-mode .table>tbody>tr.success>td,
        .dark-mode .table>tbody>tr.success>th,
        .dark-mode .table>tfoot>tr>td.success,
        .dark-mode .table>tfoot>tr>th.success,
        .dark-mode .table>tfoot>tr.success>td,
        .dark-mode .table>tfoot>tr.success>th {
            background-color: #7dcba7;
            color: #ffffff;
        }

        .dark-mode .panel-heading {
            padding: 10px 15px;
            border-bottom: 1px solid transparent;
            border-top-right-radius: 21px;
            border-top-left-radius: 21px;
        }

        .dark-mode .table-bordered>thead>tr>th,
        .dark-mode .table-bordered>thead>tr>td,
        .dark-mode .table-bordered>tbody>tr>th,
        .dark-mode .table-bordered>tbody>tr>td,
        .dark-mode .table-bordered>tfoot>tr>th,
        .dark-mode .table-bordered>tfoot>tr>td {
            border: 1px solid;
            border-color: rgba(221, 224, 255, .54);
        }

        /* Dark Mode - Input Fields */
        .dark-mode input:not(#filterNavigateMenu),
        .dark-mode textarea:not(#filterNavigateMenu),
        .dark-mode select:not(#filterNavigateMenu),
        .dark-mode .select2-selection:not(#filterNavigateMenu) {
            color: inherit;
            transition: all .5s ease-in-out;
        }

        .dark-mode input:focus:not(#filterNavigateMenu),
        .dark-mode textarea:focus:not(#filterNavigateMenu),
        .dark-mode select:focus:not(#filterNavigateMenu),
        .dark-mode .select2-selection:focus:not(#filterNavigateMenu) {
            color: #1f201f;
            outline: none;
        }

        .dark-mode .nav-stacked>li>a {
            color: inherit;
        }

        .dark-mode .input-group .form-control {
            position: relative;
            z-index: 2;
            float: left;
            width: 100%;
            margin-bottom: 0;
            color: inherit;
            border-color: rgba(221, 224, 255, .54);
            background-color: inherit;
        }

        .dark-mode .input-group .input-group-addon {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            color: inherit;
            border-bottom-left-radius: 0;
            border-color: rgba(221, 224, 255, .54);
            background-color: transparent;
        }

        .dark-mode .input-group .form-control:last-child,
        .dark-mode .input-group-addon:last-child,
        .dark-mode .input-group-btn:last-child>.btn,
        .dark-mode .input-group-btn:last-child>.btn-group>.btn,
        .dark-mode .input-group-btn:last-child>.dropdown-toggle,
        .dark-mode .input-group-btn:first-child>.btn:not(:first-child),
        .dark-mode .input-group-btn:first-child>.btn-group:not(:first-child)>.btn {
            color: inherit;
        }

        .dark-mode input:not(#filterNavigateMenu),
        textarea:not(#filterNavigateMenu),
        optgroup:not(#filterNavigateMenu),
        select:not(#filterNavigateMenu),
        .dark-mode .select2-selection:not(#filterNavigateMenu) {
            -moz-transition: all .5s ease-in-out;
            -o-transition: all .5s ease-in-out;
            -webkit-transition: all .5s ease-in-out;
            transition: all .5s ease-in-out;
        }

        .dark-mode .form-control {
            display: block;
            width: 100%;
            padding: 6px 12px;
            font-size: 14px;
            line-height: 1.428571429;
            color: inherit;
            background-color: transparent;
            background-image: none;
            border: 1px solid;
            border-color: rgba(221, 224, 255, .54);
            border-radius: 4px;
            -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
            -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
            -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
            transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
        }

        .dark-mode .help-block {
            display: block;
            margin-top: 5px;
            margin-bottom: 10px;
            color: inherit;
        }

        .dark-mode .text-muted {
            color: rgba(221, 224, 255, .54);
        }

        .dark-mode .breadcrumb {
            padding: 8px 15px;
            margin-bottom: 20px;
            list-style: none;
            background-color: rgba(221, 224, 255, .54);
            border-radius: 4px;
        }

        .dark-mode .pagination>.disabled>span,
        .dark-mode .pagination>.disabled>span:hover,
        .dark-mode .pagination>.disabled>span:focus,
        .dark-mode .pagination>.disabled>a,
        .dark-mode .pagination>.disabled>a:hover,
        .dark-mode .pagination>.disabled>a:focus {
            color: inherit;
            background-color: rgba(221, 224, 255, .54);
            border-color: rgba(221, 224, 255, .54);
            cursor: not-allowed;
        }

        .dark-mode .pagination>.active>a,
        .dark-mode .pagination>.active>a:hover,
        .dark-mode .pagination>.active>a:focus,
        .dark-mode .pagination>.active>span,
        .dark-mode .pagination>.active>span:hover,
        .dark-mode .pagination>.active>span:focus {
            z-index: 2;
            color: #fff;
            background-color: #435ebe;
            border-color: rgba(221, 224, 255, .54);
            box-shadow: 0 2px 5px rgba(67, 94, 190, .3);
            cursor: default;
        }

        .dark-mode .pagination>li>a {
            background: inherit;
            color: inherit;
            border: 1px solid;
            border-color: rgba(221, 224, 255, .54);
        }

        .dark-mode .table {
            background-color: #2a2a2a;
            color: #ddd;
            border-color: #444;
        }

        .dark-mode .table th,
        .dark-mode .table td {
            background-color: #333;
            border-color: #444;
            color: #ddd;
        }

        .dark-mode .table th {
            background-color: #444;
            font-weight: bold;
        }

        .dark-mode .table-striped tbody tr:nth-of-type(odd) {
            background-color: #3a3a3a;
        }

        .dark-mode .table-bordered {
            border: 1px solid #444;
        }

        .dark-mode .table-hover tbody tr:hover {
            background-color: #555;
            color: #fff;
        }

        .dark-mode .table-condensed th,
        .dark-mode .table-condensed td {
            padding: 8px;
        }

        .dark-mode .panel>.table:last-child,
        .dark-mode .panel>.table-responsive:last-child>.table:last-child {
            border-bottom-right-radius: 21px;
            border-bottom-left-radius: 21px;
        }

        .dark-mode .panel>.table:last-child>tbody:last-child>tr:last-child,
        .dark-mode .panel>.table:last-child>tfoot:last-child>tr:last-child,
        .dark-mode .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,
        .dark-mode .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child {
            border-bottom-right-radius: 21px;
            border-bottom-left-radius: 21px;
        }

        .dark-mode .panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,
        .dark-mode .panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,
        .dark-mode .panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,
        .dark-mode .panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child,
        .dark-mode .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,
        .dark-mode .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,
        .dark-mode .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,
        .dark-mode .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child {
            border-bottom-right-radius: 21px;
        }

        /* Dark Mode - Select2 Dropdown start here */
        .dark-mode .select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
            background-color: rgb(96, 89, 89);
            color: #ffffff;
        }

        .dark-mode .select2-container--bootstrap .select2-results__option {
            padding: 6px 12px;
            background-color: rgb(96, 89, 89);
            color: #f8f9fa;
        }

        .dark-mode .select2-results__option[aria-selected] {
            cursor: pointer;
            background-color: inherit;
            color: #ffffff;
        }

        .dark-mode .select2-results__option {
            padding: 6px 12px;
            user-select: none;
            -webkit-user-select: none;
            background-color: #343a40;
            color: #f8f9fa;
        }

        .dark-mode .select2-dropdown {
            background-color: #343a40;
            border-color: #454d55;
        }

        .dark-mode .select2-selection--single {
            background-color: #495057;
            color: #ffffff;
            border-color: #454d55;
        }

        .dark-mode .select2-selection__rendered {
            color: #ffffff;
        }

        .dark-mode .select2-selection__arrow b {
            border-color: #ffffff transparent transparent transparent;
        }

        .dark-mode .select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
            color: inherit;
            padding: 0;
        }

        .dark-mode .main-footer {
            border-top: 1px solid transparent;
        }

        .dark-mode .list-group-item {
            position: relative;
            display: block;
            padding: 10px 15px;
            margin-bottom: -1px;
            background-color: transparent;
            border: 1px solid rgba(221, 224, 255, .54);
        }

        .dark-mode .modern-skin-dark .main-sidebar .sidebar .sidebar-menu li>a {
            font-weight: bold;
        }

        .dark-mode .content-header>h1 {
            font-weight: bold;
        }

        .dark-mode .box-header>.fa,
        .dark-mode .box-header>.glyphicon,
        .dark-mode .box-header>.ion,
        .dark-mode .box-header .box-title {
            font-weight: bold;
        }

        .dark-mode .content-header>h2 {
            font-weight: bold;
        }

        .dark-mode .main-header .logo .logo-lg {
            font-weight: bold;
        }

        .dark-mode .modal-content {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
            border-bottom-right-radius: 15px;
            border-bottom-left-radius: 15px;
            -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, .125);
            box-shadow: 0 2px 3px rgba(0, 0, 0, .125);
            border: 0;
            background: #1a202c;
        }

        .dark-mode .modal-header {
            padding: 15px;
            border-bottom: 1px solid rgba(221, 224, 255, .54);
            min-height: 16.428571429px;
            background-color: #1a202c;
            color: inherit;
        }

        .dark-mode .navbar-nav>.notifications-menu>.dropdown-menu>li.footer>a,
        .dark-mode .navbar-nav>.messages-menu>.dropdown-menu>li.footer>a,
        .dark-mode .navbar-nav>.tasks-menu>.dropdown-menu>li.footer>a {
            background: #1a202c !important;
            color: inherit !important;
        }

        .dark-mode .navbar-nav>.user-menu>.dropdown-menu>.user-footer {
            background-color: #1a202c;
        }

        .dark-mode .nav-tabs-custom>.tab-content {
            background-color: #1a202c;
            padding: 10px;
            border-bottom-right-radius: 15px;
            border-bottom-left-radius: 15px;
        }

        .dark-mode .nav-tabs-custom {
            margin-bottom: 20px;
            background: #1a202c;
            box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
            border-radius: 15px;
        }

        .dark-mode .nav-tabs-custom>.nav-tabs>li:first-of-type.active>a {
            border-left-color: transparent;
        }

        .dark-mode .nav-tabs-custom>.nav-tabs>li.active>a {
            border-top-color: transparent;
            border-left-color: rgba(221, 224, 255, .54);
            border-right-color: rgba(221, 224, 255, .54);
            color: inherit;
            background-color: #1a202c;
        }

        .dark-mode pre {
            display: block;
            padding: 9.5px;
            margin: 0 0 10px;
            font-size: 13px;
            line-height: 1.428571429;
            word-break: break-all;
            word-wrap: break-word;
            color: inherit;
            background-color: inherit;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        
.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Ensures it spans the full width */
    z-index: 1000; /* Adjust z-index as needed */
    background-color: #ffffff96; /* Set background color for visibility */
}
.logo-lg {
    font-weight: bold;             /* Bold text */
    font-size: 24px;               /* Adjust size as needed */
    font-family: 'Dancing Script', cursive;  /* Handwriting font */
}
.logo-mini {
    font-weight: bold;             /* Bold text */
    font-size: 24px;               /* Adjust size as needed */
    font-family: 'Dancing Script', cursive;  /* Handwriting font */
}
.logo-lg2 {
    font-weight: bold;             /* Bold text */
    font-size: 24px;               /* Adjust size as needed */
    font-family: 'Sacramento', cursive;  /* Handwriting font */
}

        /* Dark Mode - Select2 Dropdown ends here */

        /* dark mode styles start ends here */
        .user-header {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: #f4f4f4c4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-header img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 10px;
}

.user-header p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.user-header small {
    font-size: 12px;
    color: #777;
}
.user-body .user-action {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
}

.user-body .user-action i {
    font-size: 18px;
    color: #333;
}

.user-body .user-action:hover {
    color: #007bff;
}
.user-footer {
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.user-footer .btn {
    font-size: 14px;
}

.user-footer .btn-danger {
    color: #fff;
    background-color: #dc3545;
}

.user-footer .btn-flat {
    text-align: center;
}




/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999; /* Make sure it's on top of everything else */
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 4px solid #f3f3f3; /* Light background for spinner */
    border-top: 4px solid #3498db; /* Blue color for the spinner */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Animation for the spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Default styles for larger screens */
body.dark-mode {
    background-color: #2d3748; /* Dark background for the body */
    color: #f3f4f5; /* Light text for the body */
}

.dark-mode .content-wrapper {
    background-color: #2d3748; /* Dark background for content */
}

/* Dark mode header styles */
.dark-mode .main-header {
    background-color: #2d3748; /* Dark header background */
    color: #f3f4f5; /* Light text color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for header */
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
    /* For small screens (mobile), push content down */
    .dark-mode .content-wrapper {
        margin-top: 60px; /* Push the content down below the header */
        padding-top: 20px; /* Add padding for mobile */
        background-color: #2d3748; /* Dark background */
    }

    /* Ensure the navbar and header have no white lines */
    .dark-mode .navbar {
        background-color: #2d3748; /* Ensure navbar is dark */
        border-bottom: none; /* Remove any bottom border */
    }

    /* User menu background and borders */
    .dark-mode .user-menu {
        background-color: #2d3748; /* Dark user menu background */
        border: none; /* No borders */
    }

    .dark-mode .navbar-custom-menu {
        background-color: #2d3748; /* Ensure custom menu items are dark */
    }

    /* Search overlay, dark mode, and mobile */
    .dark-mode .search-overlay {
        background-color: rgba(0, 0, 0, 0.8); /* Darker background for search overlay */
    }
}

/* Apply the card effect to sidebar items */
.card-effect {
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow */
    transition: all 0.3s ease; /* Smooth transition for hover effect */
    background-color: #ffffff; /* White background for the cards */
}

/* Hover effect */
.card-effect:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
    background-color: #f5f5f5; /* Slightly darker background on hover */
}

/* Optional: Focus effect for accessibility */
.card-effect:focus-within {
    outline: 2px solid #3b82f6; /* Blue outline when focused */
}


/* General Shadow and Hover Effects */
.logo, .navbar, .user-menu, .dropdown-menu {
    transition: all 0.3s ease; /* Smooth transition */
}

/* Add shadow effect to the logo */
.logo {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow */
    border-radius: 8px; /* Rounded corners */
}

.logo:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
    background-color: #f5f5f5; /* Slight background color change */
}

/* Navbar item hover effects */
.navbar .navbar-custom-menu .nav>li>a:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow on navbar items */
    background-color: #f5f5f5; /* Background color on hover */
    border-radius: 5px; /* Rounded corners on hover */
}

/* User menu */
.user-menu:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Shadow effect when hovering the user menu */
    background-color: #f9f9f9;
}

/* Add hover effect to user profile image */
.user-image-container:hover .user-image {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transform: scale(1.05); /* Slight zoom effect */
}

/* User dropdown menu shadow */
.dropdown-menu {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.dropdown-menu:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Custom dropdown user menu item hover */
.user-action:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
}

/* User header in dropdown menu */
.user-header {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Light shadow for the user header */
    border-radius: 8px;
    background: #f4f4f4;
}

.user-header:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* User profile image in dropdown */
.user-image-container img {
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
}

.user-image-container img:hover {
    transform: scale(1.1); /* Slight zoom-in effect */
}
/* General Sidebar Shadow Effect */
.main-sidebar {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); /* Light shadow for the sidebar */
    transition: box-shadow 0.3s ease; /* Smooth transition */
}

/* Sidebar hover effect */
.main-sidebar:hover {
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Sidebar Menu Item - Active State */
.sidebar-menu > li.active > a {
    background-color: #f0f0f0; /* Light background when active */
    color: #007bff; /* Highlight active item with blue color */
    box-shadow: inset 2px 0 5px rgba(0, 123, 255, 0.2); /* Subtle inner shadow */
}

/* Sidebar Menu Item - Hover State */
.sidebar-menu > li > a:hover {
    background-color: #e9ecef; /* Light gray background on hover */
    color: #007bff; /* Text color on hover */
    border-radius: 4px; /* Slight rounding of the edges */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sidebar Treeview (Expandable) Menu Hover */
.sidebar-menu .treeview > a:hover {
    background-color: #e9ecef; /* Same hover effect for treeview items */
    border-radius: 4px;
}

/* Sidebar Submenu Items Hover Effect */
.sidebar-menu .treeview-menu li > a:hover {
    background-color: #f8f9fa;
    color: #007bff;
    box-shadow: inset 2px 0 5px rgba(0, 123, 255, 0.2); /* Inner shadow for submenu items */
}

/* Treeview Menu (submenu) */
.treeview-menu {
    display: none;
    padding-left: 20px; /* Indentation for submenu items */
}

/* Display treeview when active */
.treeview.active > .treeview-menu {
    display: block;
}

/* Arrow icon animation (rotate on active) */
.treeview.active > a > .fa-angle-left {
    transform: rotate(90deg); /* Rotate the arrow when the menu is open */
    transition: transform 0.3s ease;
}

/* Sidebar Menu Icon Hover Effect */
.sidebar-menu i {
    transition: color 0.3s ease;
}

.sidebar-menu > li > a:hover i {
    color: #007bff; /* Change icon color on hover */
}

/* Sidebar Menu - Active Submenu */
.treeview.active > a {
    background-color: #f0f0f0; /* Highlight active treeview item */
    color: #007bff;
}

/* Special hover effect for top-level items */
.sidebar-menu > li > a:hover {
    background-color: #e9ecef;
    color: #007bff;
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 123, 255, 0.15);
}

/* Additional spacing and shadow effects for dropdowns */
.sidebar-menu .treeview-menu {
    margin-top: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for submenu */
}

/* Final Shadow for active dropdown items */
.treeview.active > a {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Active treeview shadow */
}
/* Basic Search Bar Styles */
.wrap {
    width: 30%;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
}

.search {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #c20765;
    background-color: #010113;
    color: white;
    cursor: pointer;
    width: 50%;
    height: 50%;
}

.search:hover {
    background-color: #db1668;
}

/* Translucent Search Overlay */
.search-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Translucent Search Container */
.search-container {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Translucent Input Field */
.searchTerm {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.7); /* Translucent input */
}

/* Search Results Styles */
.search-results {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

.search-results li {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.search-results li:hover {
    background-color: rgba(245, 245, 245, 0.8); /* Translucent hover effect */
}

/* Cancel Button */
.cancelButton {
    padding: 10px 20px;
    background-color: rgba(244, 67, 54, 0.8); /* Semi-transparent red */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.cancelButton:hover {
    background-color: rgba(211, 47, 47, 0.8); /* Slightly darker red */
}

/* Dark Mode Styles */
.dark-mode .search-container {
    background-color: rgba(45, 55, 72, 0.9); /* Translucent dark mode */
    color: #cbd5e0;
}

.dark-mode .searchTerm {
    background-color: rgba(74, 85, 104, 0.7); /* Translucent input in dark mode */
    color: #cbd5e0;
}

.dark-mode .cancelButton {
    background-color: rgba(229, 62, 62, 0.8); /* Translucent red in dark mode */
}

.dark-mode .cancelButton:hover {
    background-color: rgba(197, 48, 48, 0.8); /* Darker red for hover */
}




</style>
    {if isset($xheader)}
        {$xheader}
    {/if}

</head>
<script>// When the window has fully loaded, hide the preloader
    window.onload = function() {
        // Hide the preloader div
        document.getElementById('preloader').style.display = 'none';
        
        // Optional: Re-enable body scrolling (if it was previously disabled)
        document.body.style.overflow = 'auto';
    };</script>

    
<body class="hold-transition modern-skin-light bg-white  text-gray-800 sidebar-mini {if $_kolaps}sidebar-collapse{/if}">
    <div id="preloader" class="preloader">
        <div class="spinner"></div>
    </div>
    <div class="wrapper">
        <header class="main-header">
            <a href="{$_url}dashboard" class="logo">
                <span class="logo-mini"><b>X</b>B</span>
                <span class="logo-lg">XtremeBilling</span>
            </a>
            <nav class="navbar navbar-static-top">
                <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button" onclick="return setKolaps()">
                    <span class="sr-only">Toggle navigation</span>
                </a>
                <span class="logo-lg">{$_c['CompanyName']}</span>
                <div class="navbar-custom-menu">
                    <ul class="nav navbar-nav">
                        <!-- Search Button and Overlay -->
                        <div class="wrap" style="margin-right: 15px;">
                            <div>
                                <button id="openSearch" class="search" style="margin-top: 8px;"><i class="fa fa-search x2"></i></button>
                            </div>
                        </div>
        
                        <div id="searchOverlay" class="search-overlay" style="padding: 10px;">
                            <div class="search-container">
                                <input type="text" id="searchTerm" class="searchTerm" placeholder="{Lang::T('Search Users')}" autocomplete="off" style="padding: 10px; margin-bottom: 10px;">
                                <div id="searchResults" class="search-results">
                                    <!-- Search results will be displayed here -->
                                </div>
                                <button type="button" id="closeSearch" class="cancelButton" style="margin-top: 10px;">{Lang::T('Cancel')}</button>
                            </div>
                        </div>
        
                        <!-- Light/Dark Toggle -->
                        <li style="margin-top: 8px;">
                            <a class="toggle-container" href="#">
                                <i class="toggle-icon" id="toggleIcon">🌞</i>
                            </a>
                        </li>
        
                        <!-- User Menu -->
                        <li class="dropdown user user-menu" style="margin-top: 8px;">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <div class="user-image-container">
                                    <img src="{$UPLOAD_PATH}{$_admin['photo']}.thumb.jpg" 
                                         onerror="this.src='{$UPLOAD_PATH}/admin.default.png'" 
                                         class="user-image" alt="Avatar">
                                    <div class="online-status"></div>
                                </div>
                                <span class="hidden-xs">{$_admin['fullname']}</span>
                            </a>
                            <ul class="dropdown-menu" style="min-width: 250px; border-radius: 8px; padding: 10px;">
                                <!-- User Header -->
                                <li class="user-header" style="text-align: center; padding: 20px; border-radius: 8px; background: #f4f4f4; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);">
                                    <div class="user-image-container">
                                        <img src="{$UPLOAD_PATH}{$_admin['photo']}.thumb.jpg" 
                                             onerror="this.src='{$UPLOAD_PATH}/admin.default.png'" 
                                             class="img-circle" alt="Avatar" style="width: 80px; height: 80px; object-fit: cover; margin-bottom: 10px;">
                                        <div class="online-status"></div>
                                    </div>
                                    <p style="font-size: 16px; font-weight: 600; color: #333;">
                                        {$_admin['fullname']}
                                        <br><small style="font-size: 12px; color: #777;">{Lang::T($_admin['user_type'])}</small>
                                    </p>
                                </li>
        
                                <!-- User Body -->
                                <li class="user-body" style="padding: 10px 0;">
                                    <div class="row">
                                        <div class="col-xs-6 text-center">
                                            <a href="{$_url}settings/change-password" class="user-action" style="display: block; padding: 5px 0;">
                                                <i class="ion ion-settings" style="font-size: 18px;"></i><br>
                                                <span>{Lang::T('Change Password')}</span>
                                            </a>
                                        </div>
                                        <div class="col-xs-6 text-center">
                                            <a href="{$_url}settings/users-view/{$_admin['id']}" class="user-action" style="display: block; padding: 5px 0;">
                                                <i class="ion ion-person" style="font-size: 18px;"></i><br>
                                                <span>{Lang::T('My Account')}</span>
                                            </a>
                                        </div>
                                    </div>
                                </li>
        
                                <!-- User Footer -->
                                <li class="user-footer" style="padding: 10px 0; border-top: 1px solid #eee;">
                                    <div class="pull-left" style="width: 50%; padding-right: 5px;">
                                        <a href="{$_url}settings/users-view/{$_admin['id']}" class="btn btn-default btn-flat btn-block" style="font-size: 14px; color: #555;">
                                            <i class="ion ion-person"></i> {Lang::T('My Account')}
                                        </a>
                                    </div>
                                    <div class="pull-right" style="width: 50%; padding-left: 5px;">
                                        <a href="{$_url}logout" class="btn btn-danger btn-flat btn-block" style="font-size: 14px; color: #fff;">
                                            <i class="ion ion-power"></i> {Lang::T('Logout')}
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </header>
               
        <aside class="main-sidebar bg-white font-bold Mulish-font text-gray-500">
            <section class="sidebar">
                <ul class="sidebar-menu" data-widget="tree">
                    <!-- Dashboard -->
                    <li {if $_system_menu eq 'dashboard' }class="active" {/if}>
                        <a href="{$_url}dashboard">
                            <i class="ion ion-monitor"></i>
                            <span>{Lang::T('Dashboard')}</span>
                        </a>
                    </li>
                    {$_MENU_AFTER_DASHBOARD}
        
                    {$_MENU_AFTER_DASHBOARD}
                    {if !in_array($_admin['user_type'],['Report'])}
                        <li class="{if in_array($_system_menu, ['customers', 'map'])}active{/if} treeview">
                            <a href="#">
                                <i class="fa fa-users"></i> <span class="nav-text">{Lang::T('Clients')}
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-left pull-right"></i>
                                </span></span>
                            </a>
                            <ul class="treeview-menu">
                                <li {if $_system_menu eq 'customers' }class="active" {/if}><a href="{$_url}customers">{Lang::T('All Clients')}</a></li>
                                <li {if $_routes[1] eq 'hotspot' }class="active" {/if}><a href="{$_url}customers/hotspot">Hotspot Clients</a></li>
                                <li {if $_routes[1] eq 'pppoe' }class="active" {/if}><a href="{$_url}customers/pppoe">PPPOE Clients</a></li>
                                {$_MENU_CUSTOMERS}
                            </ul>
                        </li>

                        {$_MENU_AFTER_CUSTOMERS}
                        <li class="{if $_system_menu eq 'onlineusers'}active{/if} treeview">
                            <a href="#">
                                <i class="fa fa-signal"></i> <span class="nav-text">{Lang::T('Online Clients')}
                                <span class="pull-right-container">
                                    <i class="fa fa-angle-down pull-right"></i>
                                </span></span>
                            </a>
                            <ul class="treeview-menu">
                                <li {if $_routes[1] eq 'hotspot' }class="active" {/if}>
                                    <a href="{$_url}onlineusers/hotspot">
                                        <i class="fa fa-fire"></i> {Lang::T('Hotspot Client')}
                                    </a>
                                </li>
                                <li {if $_routes[1] eq 'pppoe' }class="active" {/if}>
                                    <a href="{$_url}plugin/pppoe">
                                        <i class="fa fa-plug"></i> {Lang::T('Pppoe Clients')}
                                    </a>
                                </li>
                                {$_MENU_ONLINEUSERS}
                            </ul>
                        </li>
                    {/if}

                    <!-- Services Menu -->
                    {if !in_array($_admin['user_type'],['Report'])}
                    <li class="{if $_system_menu eq 'plan'}active{/if} treeview">
                        <a href="#">
                            <i class="fa fa-ticket"></i> <span>{Lang::T('Services')}</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                        <ul class="treeview-menu">
                            <li {if $_routes[1] eq 'list' }class="active" {/if}><a href="{$_url}plan/list">{Lang::T('Active Users')}</a></li>
                            {if $_c['disable_voucher'] != 'yes'}
                                <li {if $_routes[1] eq 'voucher' }class="active" {/if}><a href="{$_url}plan/voucher">{Lang::T('Vouchers')}</a></li>
                                <li {if $_routes[1] eq 'refill' }class="active" {/if}><a href="{$_url}plan/refill">{Lang::T('Refill Customer')}</a></li>
                            {/if}
                            <li {if $_routes[1] eq 'recharge' }class="active" {/if}><a href="{$_url}plan/recharge">{Lang::T('Recharge Customer')}</a></li>
                            {if $_c['enable_balance'] == 'yes'}
                                <li {if $_routes[1] eq 'deposit' }class="active" {/if}><a href="{$_url}plan/deposit">{Lang::T('Refill Balance')}</a></li>
                            {/if}
                            {$_MENU_SERVICES}
                        </ul>
                    </li>
                    {/if}
                    {$_MENU_AFTER_SERVICES}
        
                    <!-- Network Menu (SuperAdmin / Admin) -->
                    {if in_array($_admin['user_type'],['SuperAdmin','Admin'])}
                    <li class="{if $_system_menu eq 'services'}active{/if} treeview">
                        <a href="#">
                            <i class="ion ion-cube"></i> <span>{Lang::T('Internet Plan')}</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                        <ul class="treeview-menu">
                            <li {if $_routes[1] eq 'hotspot' }class="active" {/if}><a href="{$_url}services/hotspot">Hotspot</a></li>
                            <li {if $_routes[1] eq 'pppoe' }class="active" {/if}><a href="{$_url}services/pppoe">PPPOE</a></li>
                            <li {if $_routes[1] eq 'list' }class="active" {/if}><a href="{$_url}bandwidth/list">{Lang::T('Bandwidth')}</a></li>
                            {if $_c['enable_balance'] == 'yes'}
                                <li {if $_routes[1] eq 'balance' }class="active" {/if}><a href="{$_url}services/balance">{Lang::T('Customer Balance')}</a></li>
                            {/if}
                            {$_MENU_PLANS}
                        </ul>
                    </li>
                    {/if}
                    {$_MENU_AFTER_PLANS}
        
                    <!-- Reports Menu -->
                    <li class="{if $_system_menu eq 'reports'}active{/if} treeview">
                        <a href="#">
                            <i class="ion ion-clipboard"></i> <span>{Lang::T('Reports')}</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                        <ul class="treeview-menu">
                            <li {if $_routes[1] eq 'daily-report' }class="active" {/if}><a href="{$_url}reports/daily-report">{Lang::T('Daily Reports')}</a></li>
                            <li {if $_routes[1] eq 'by-period' }class="active" {/if}><a href="{$_url}reports/by-period">{Lang::T('Period Reports')}</a></li>
                            <li {if $_routes[1] eq 'activation' }class="active" {/if}><a href="{$_url}reports/activation">{Lang::T('Activation History')}</a></li>
                            {$_MENU_REPORTS}
                        </ul>
                    </li>
                    {$_MENU_AFTER_REPORTS}
        
                    <!-- Message Menu -->
                    <li class="{if $_system_menu eq 'message'}active{/if} treeview">
                        <a href="#">
                            <i class="ion ion-android-chat"></i> <span>{Lang::T('Send Message')}</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                        <ul class="treeview-menu">
                            <li {if $_routes[1] eq 'send' }class="active" {/if}><a href="{$_url}message/send">{Lang::T('Single Customer')}</a></li>
                            <li {if $_routes[1] eq 'send_bulk' }class="active" {/if}><a href="{$_url}message/send_bulk">{Lang::T('Bulk Customers')}</a></li>
                            {$_MENU_MESSAGE}
                        </ul>
                    </li>
                    {$_MENU_AFTER_MESSAGE}
        
                    <!-- Network Settings for SuperAdmin / Admin -->
                    {if in_array($_admin['user_type'],['SuperAdmin','Admin'])}
                    <li class="{if $_system_menu eq 'network'}active{/if} treeview">
                        <a href="#">
                            <i class="ion ion-network"></i> <span>{Lang::T('Network')}</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                        <ul class="treeview-menu">
                            <li {if $_routes[0] eq 'routers' and $_routes[1] eq 'list' }class="active" {/if}><a href="{$_url}routers/list">{Lang::T('Routers')}</a></li>
                            <li {if $_routes[0] eq 'pool' and $_routes[1] eq 'list' }class="active" {/if}><a href="{$_url}pool/list">{Lang::T('IP Pool')}</a></li>
                            {$_MENU_NETWORK}
                        </ul>
                    </li>
                    {/if}
                    {$_MENU_AFTER_NETWORKS}
        
                    <!-- Settings Menu (General / Payment Gateway) -->
                    <li class="{if $_system_menu eq 'settings' || $_system_menu eq 'paymentgateway' }active{/if} treeview">
                        <a href="#">
                            <i class="ion ion-gear-a"></i> <span>{Lang::T('Settings')}</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                        <ul class="treeview-menu">
                            {if in_array($_admin['user_type'],['SuperAdmin','Admin'])}
                                <li {if $_routes[1] eq 'app' }class="active" {/if}><a href="{$_url}settings/app">{Lang::T('General Settings')}</a></li>
                                <li {if $_routes[1] eq 'localisation' }class="active" {/if}><a href="{$_url}settings/localisation">{Lang::T('Localisation')}</a></li>
                                <li {if $_routes[1] eq 'maintenance' }class="active" {/if}><a href="{$_url}settings/maintenance">{Lang::T('Maintenance Mode')}</a></li>
                                <li {if $_routes[1] eq 'notifications' }class="active" {/if}><a href="{$_url}settings/notifications">{Lang::T('User Notification')}</a></li>
                            {/if}
                            {if in_array($_admin['user_type'],['SuperAdmin','Admin','Agent'])}
                                <li {if $_routes[1] eq 'users' }class="active" {/if}><a href="{$_url}settings/users">{Lang::T('Administrator Users')}</a></li>
                            {/if}
                            {if in_array($_admin['user_type'],['SuperAdmin','Admin'])}
                                <li {if $_routes[1] eq 'dbstatus' }class="active" {/if}><a href="{$_url}settings/dbstatus">{Lang::T('Backup/Restore')}</a></li>
                                <li {if $_system_menu eq 'paymentgateway' }class="active" {/if}><a href="{$_url}paymentgateway">{Lang::T('Payment Gateway')}</a></li>
                                {$_MENU_SETTINGS}
                                <li {if $_routes[0] eq 'pluginmanager' }class="active" {/if}><a href="{$_url}pluginmanager"><i class="glyphicon glyphicon-tasks"></i>{Lang::T('Plugin Manager')} <small class="label pull-right">Free</small></a></li>
                            {/if}
                        </ul>
                    </li>
                    {$_MENU_AFTER_SETTINGS}
        
                    <!-- Logs (SuperAdmin / Admin) -->
                    {if in_array($_admin['user_type'],['SuperAdmin','Admin'])}
                    <li class="{if $_system_menu eq 'logs' }active{/if} treeview">
                        <a href="#">
                            <i class="ion ion-clock"></i> <span>{Lang::T('Logs')}</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                        <ul class="treeview-menu">
                            <li {if $_routes[1] eq 'list' }class="active" {/if}><a href="{$_url}logs/phpnuxbill">PhpNuxBill</a></li>
                            {if $_c['radius_enable']}
                                <li {if $_routes[1] eq 'radius' }class="active" {/if}><a href="{$_url}logs/radius">Radius</a></li>
                            {/if}
                            {$_MENU_LOGS}
                        </ul>
                    </li>
                    {/if}
                    {$_MENU_AFTER_LOGS}
        
                    <!-- Community Menu -->
                    {$_MENU_AFTER_COMMUNITY}
                </ul>
            </section>
        </aside>
        
        {if $_c['maintenance_mode'] == 1}
            <div class="notification-top-bar">
                <p>{Lang::T('The website is currently in maintenance mode, this means that some or all functionality may be
                unavailable to regular users during this time.')}<small> &nbsp;&nbsp;<a
                            href="{$_url}settings/maintenance">{Lang::T('Turn Off')}</a></small></p>
            </div>
        {/if}

        <div class="content-wrapper">
            <section class="content-header">
                <h1>
                    {$_title}
                </h1>
            </section>

            <section class="content">
                {if isset($notify)}
                    <script>
                        // Display SweetAlert toast notification
                        Swal.fire({
                            icon: '{if $notify_t == "s"}success{else}error{/if}',
                            title: '{$notify}',
                            position: 'top-end',
                            showConfirmButton: false,
                            timer: 5000,
                            timerProgressBar: true,
                            didOpen: (toast) => {
                                toast.addEventListener('mouseenter', Swal.stopTimer)
                                toast.addEventListener('mouseleave', Swal.resumeTimer)
                            }
                        });
                    </script>
{/if}