
	



<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
<title>VPN PANEL — Fast and Secure</title>
<link rel="shortcut icon" href="uploads/images/1718083500.png" type="image/x-icon">
<link rel="icon" href="uploads/images/1718083500.png" type="image/x-icon">

<link rel="stylesheet" href="/dist/modules/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />

<link rel="stylesheet" href="/dist/modules/bootstrap-social/bootstrap-social.css">
<link href="https://cdn.datatables.net/v/bs4/dt-1.13.6/b-2.4.2/r-2.5.0/sr-1.3.0/datatables.min.css" rel="stylesheet">
<link rel="stylesheet" href="/dist/modules/select2/dist/css/select2.min.css">
<link rel="stylesheet" href="/dist/modules/summernote/summernote-bs4.css">

<link rel="stylesheet" href="/dist/css-default/style.css">
<link rel="stylesheet" href="/dist/css-default/components.css">
<style>
/*

WAG KA NA IIYAK HAHAHAHA 😂😂
TORNADO2X NAAAAA HAHAHAHA 😂😂
NAPAG-UTUSAN LANG HAHAHAHA 😂😂
HINDI NAMAN NAGPAPABAYAD SI STISLA HAHAHAHA 😂😂
MAGKA-IBA CODES NATIN HAHAHAHA 😂😂

-Firenet 🔥🔥🔥🔥

*/

[data-theme="light"]  {
  filter: invert(0%) hue-rotate(0deg);
}

[data-theme="dark"] {
  filter: invert(100%) hue-rotate(180deg);
}

[data-theme="dark"] img{
  filter: invert(100%) hue-rotate(180deg);
}

.fa-spin-hover:not(:hover) {
   animation: none;
}

.progress2 {
    display: -ms-flexbox;
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: .25rem;
}

.faz {
   width: 35px;
   height: 35px;
   background-color: var(--primary);
   border-radius: 50%;
   box-shadow: 0 4px 10px 0 #666;
   
   font-size: 15px;
   line-height: 35px;
   color: white;
   text-align: center;
   
   position: fixed;
   right: 20px;
   bottom: 20px;
   z-index: 5000;
   
  transition: all 0.1s ease-in-out;
}

.faz:hover {
   box-shadow: 0 4px 14px 0 #666;
   transform: scale(1.05);
   color: #F0F0F0 !important;
}
 
.faz2 {
   width: 35px;
   height: 35px;
   background-color: var(--primary);
   border-radius: 50%;
   box-shadow: 0 4px 10px 0 #666;
   
   font-size: 15px;
   line-height: 35px;
   color: white;
   text-align: center;
   
   position: fixed;
   right: 20px;
   bottom: 120px;
   z-index: 5000;
   
  transition: all 0.1s ease-in-out;
}

.faz2:hover {
   box-shadow: 0 4px 14px 0 #666;
   transform: scale(1.05);
}

.btn-circle.btn-sm{
    width:50px;height:50px;
    padding:7px 10px;
    border-radius:25px;
    font-size:10px;
    text-align:center;
    position:fixed;
    bottom:8px;right:8px
}

.hehe{
    color:#ffff;
    background-image:-webkit-linear-gradient(30deg,#f35626,#feab3a);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    -webkit-animation:10s linear infinite hue
}

.avatar{
    background: none !important;
}

.input-file { visibility: hidden; position: absolute;}

@-webkit-keyframes hue{
    from{
        -webkit-filter:hue-rotate(0deg)
    }
    to{
        -webkit-filter:hue-rotate(-360deg)
        
    }
    
}

*{
    scrollbar-width:auto;
    scrollbar-color:#9b9b9b #ffffff
}
::-webkit-scrollbar{
    width:10px
}

::-webkit-scrollbar-track{
    background:#fff
}

::-webkit-scrollbar-thumb{
    background-color:#9b9b9b;
    border-radius:10px;
    border:3px solid #fff
}

.golden-border {
  border: 1.5px solid gold;   /* golden border */
  border-radius: 50%;       /* makes it circular */
  padding: 2px;             /* space between image and border */
  display: inline-block;    /* ensures proper rendering */
}

.golden-border img {
  border-radius: 50%;       /* makes the image circular inside */
  display: block;           /* removes unwanted spacing */
}

.pri-border {
  border: 1.5px solid grey;   /* golden border */
  border-radius: 50%;       /* makes it circular */
  padding: 2px;             /* space between image and border */
  display: inline-block;    /* ensures proper rendering */
}

.pri-border img {
  border-radius: 50%;       /* makes the image circular inside */
  display: block;           /* removes unwanted spacing */
}

.xx-border {
  border: 1.5px solid var(--primary);;   /* golden border */
  border-radius: 50%;       /* makes it circular */
  padding: 2px;             /* space between image and border */
  display: inline-block;    /* ensures proper rendering */
}

.xx-border img {
  border-radius: 50%;       /* makes the image circular inside */
  display: block;           /* removes unwanted spacing */
}

.card.card-statistic-69 .card-body {
    font-size: 16px !important;
}

.language-button {
  width: 35px;
   height: 35px;
   background-color: var(--primary);
   border-radius: 50%;
   box-shadow: 0 4px 10px 0 #666;
   
   font-size: 15px;
   line-height: 35px;
   color: white;
   text-align: center;
   
   position: fixed;
   right: 20px;
   bottom: 70px;
   z-index: 5000;
   
  transition: all 0.1s ease-in-out;
        }
        
.language-button:hover {
    box-shadow: 0 4px 14px 0 #666;
    transform: scale(1.05);
    color: #F0F0F0 !important;   
}

        /* Animation class */
        .language-button.clicked {
            animation: bounce 0.4s;
        }

        @keyframes bounce {
            0%   { transform: scale(1); }
            30%  { transform: scale(1.2); }
            50%  { transform: scale(0.9); }
            70%  { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .dropdown-container {
            position: fixed;
            bottom: 110px;
            right: 30px;
            background: white;
            border: 1px solid #ccc;
            border-radius: 2px;
            display: none;
            box-shadow: 0 4px 6px rgba(0,0,0,0.3);
            overflow-y: auto;
            max-height: 400px;
            width: 250px;
            z-index: 5000;
        }

        .dropdown-option {
            display: flex;
            align-items: center;
            padding: 10px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .dropdown-option:hover {
            background: #f1f1f1;
        }

        .dropdown-option img {
            width: 20px;
            height: 20px;
            margin-right: 10px;
            object-fit: cover;
        }
        
        .goog-te-gadget img{
    display:none !important;
}

body > .skiptranslate {
    display: none;
}
body {
    top: 0px !important;
}
</style>
</head>
<body>

<div class="main-wrapper">

<div class="navbar-bg"></div>
<nav class="navbar navbar-expand-lg main-navbar">
<ul class="navbar-nav mr-auto  mr-3">
<li><a href="#" data-toggle="sidebar" class="nav-link nav-link-lg"><i class="fas fa-bars"></i></a></li>
</ul>
<ul class="navbar-nav navbar-right">
<li class="dropdown"><a href="#" data-toggle="dropdown" class="nav-link dropdown-toggle nav-link-lg nav-link-user">
<img class="rounded-circle mr-1" src="profile/1/1705554385.png" alt="adminme">
<div class="d-sm-none d-lg-inline-block">Hi, adminme</div></a>
<div class="dropdown-menu dropdown-menu-right">
<a href="profile-settings" class="dropdown-item has-icon">
<i class="fas fa-user-cog"></i> Profile
</a>
<div class="dropdown-divider"></div>
<a href="javascript:void(0)" class="dropdown-item has-icon text-danger btn-logout">
<i class="fas fa-sign-out-alt"></i> Logout
</a>
</div>
</li>
</ul>
</nav>
<div class="main-sidebar sidebar-style-2">
<aside id="sidebar-wrapper">





<div class="sidebar-brand">
<a href="/">
<img alt="image" src="uploads/images/1718083500.png" style="width:3.5rem;"><br>
<span class="hehe">VPN PANEL</span>
</a>
</div>
<div class="sidebar-brand sidebar-brand-sm">
<a href="/">
<img alt="image" src="uploads/images/1718083500.png" style="width:2rem;">
</a>
</div>


<ul class="sidebar-menu">
<li class="menu-header">Main</li>
<li><a class="nav-link" href="dashboard"><i class="fas fa-tachometer-alt"></i> <span>Dashboard</span></a></li>
<li class="dropdown">
<a href="" class="nav-link has-dropdown"><i class="fas fa-user-plus"></i><span>Create</span></a>
<ul class="dropdown-menu">
<li><a class="nav-link" href="add-user">User</a></li>
<li><a class="nav-link" href="add-reseller">Reseller</a></li>
</ul>
</li>
<li class="dropdown">
<a href="" class="nav-link has-dropdown"><i class="fas fa-users-cog"></i><span>Manage</span></a>
<ul class="dropdown-menu">
<li><a class="nav-link" href="view-user">User List</a></li>
<li><a class="nav-link" href="view-reseller">Reseller List</a></li>
</ul>
</li>
<li class="dropdown">
<a href="" class="nav-link has-dropdown"><i class="fas fa-clipboard-list"></i><span>Logs</span></a>
<ul class="dropdown-menu">
<li><a class="nav-link" href="log-activity">Activity Log</a></li>
<li><a class="nav-link" href="log-bulk">Bulk Log</a></li>
<li><a class="nav-link" href="log-credit">Credits Log</a></li>
<li><a class="nav-link" href="log-deleted">Delete Log</a></li>
</ul>
</li>
<li><a class="nav-link" href="privacy-policy"><i class="fas fa-shield-alt"></i> <span>Privacy Policy</span></a></li>
<li class="menu-header">Panel</li>
<li><a class="nav-link" href="server"><i class="fas fa-server"></i> <span>Servers</span></a></li>
<li><a class="nav-link" href="dns"><i class="fas fa-cloud"></i> <span>Dns</span></a></li>
<!--li><a class="nav-link" href="notification"><i class="fas fa-bell"></i> <span>Notification</span></a></li-->
<li><a class="nav-link" href="application"><i class="fab fa-android"></i> <span>Application</span></a></li>
<li><a class="nav-link" href="json"><i class="fas fa-code"></i> <span>Json</span></a></li>
<li><a class="nav-link" href="settings"><i class="fas fa-cog"></i> <span>Settings</span></a></li>

<div class="mt-4 mb-4 p-3 hide-sidebar-mini">
<a href="javascript:void(0)" class="btn btn-outline-primary btn-sm btn-block btn-icon-split btn-genuine" style="white-space: initial;">
🦄ENHANCED EDITION
</a>
</div>
</ul>
</aside>
</div>
<div id="google_translate_element" style="display: none;"></div>
<a href="#" onclick="return false;" type="button" class="language-button" id="toggleDropdown"><i class="fa fa-language" aria-hidden="true"></i></a>

<div class="dropdown-container" id="dropdownMenu">
        <div class="dropdown-option" data-lang="bn">        <img src="/dist/img/flags/bd.svg" alt="বাংলা">        <span translate="no">Bengali</span>    </div>    <div class="dropdown-option" data-lang="hy">        <img src="/dist/img/flags/am.svg" alt="Հայերեն">        <span translate="no">Armenian</span>    </div>    <div class="dropdown-option" data-lang="ar">        <img src="/dist/img/flags/sa.svg" alt="العربية">        <span translate="no">Arabic</span>    </div>    <div class="dropdown-option" data-lang="am">        <img src="/dist/img/flags/et.svg" alt="አማርኛ">        <span translate="no">Amharic</span>    </div>    <div class="dropdown-option" data-lang="sq">        <img src="/dist/img/flags/al.svg" alt="Shqip">        <span translate="no">Albanian</span>    </div>    <div class="dropdown-option" data-lang="af">        <img src="/dist/img/flags/xx.svg" alt="Afrikaans">        <span translate="no">Afrikaans</span>    </div>    <div class="dropdown-option" data-lang="bs">        <img src="/dist/img/flags/ba.svg" alt="Bosanski">        <span translate="no">Bosnian</span>    </div>    <div class="dropdown-option" data-lang="bg">        <img src="/dist/img/flags/bg.svg" alt="Български">        <span translate="no">Bulgarian</span>    </div>    <div class="dropdown-option" data-lang="ca">        <img src="/dist/img/flags/es.svg" alt="Català">        <span translate="no">Catalan</span>    </div>    <div class="dropdown-option" data-lang="hr">        <img src="/dist/img/flags/hr.svg" alt="Hrvatski">        <span translate="no">Croatian</span>    </div>    <div class="dropdown-option" data-lang="cs">        <img src="/dist/img/flags/cz.svg" alt="Čeština">        <span translate="no">Czech</span>    </div>    <div class="dropdown-option" data-lang="da">        <img src="/dist/img/flags/dk.svg" alt="Dansk">        <span translate="no">Danish</span>    </div>    <div class="dropdown-option" data-lang="nl">        <img src="/dist/img/flags/nl.svg" alt="Nederlands">        <span translate="no">Dutch</span>    </div>    <div class="dropdown-option" data-lang="en">        <img src="/dist/img/flags/us.svg" alt="English">        <span translate="no">English</span>    </div>    <div class="dropdown-option" data-lang="eo">        <img src="/dist/img/flags/xx.svg" alt="Esperanto">        <span translate="no">Esperanto</span>    </div>    <div class="dropdown-option" data-lang="et">        <img src="/dist/img/flags/ee.svg" alt="Eesti">        <span translate="no">Estonian</span>    </div>    <div class="dropdown-option" data-lang="tl">        <img src="/dist/img/flags/ph.svg" alt="Filipino">        <span translate="no">Filipino</span>    </div>    <div class="dropdown-option" data-lang="fi">        <img src="/dist/img/flags/fi.svg" alt="Suomi">        <span translate="no">Finnish</span>    </div>    <div class="dropdown-option" data-lang="fr">        <img src="/dist/img/flags/fr.svg" alt="Français">        <span translate="no">French</span>    </div>    <div class="dropdown-option" data-lang="de">        <img src="/dist/img/flags/de.svg" alt="Deutsch">        <span translate="no">German</span>    </div>    <div class="dropdown-option" data-lang="el">        <img src="/dist/img/flags/gr.svg" alt="Ελληνικά">        <span translate="no">Greek</span>    </div>    <div class="dropdown-option" data-lang="gu">        <img src="/dist/img/flags/in.svg" alt="ગુજરાતી">        <span translate="no">Gujarati</span>    </div>    <div class="dropdown-option" data-lang="hi">        <img src="/dist/img/flags/in.svg" alt="हिन्दी">        <span translate="no">Hindi</span>    </div>    <div class="dropdown-option" data-lang="hu">        <img src="/dist/img/flags/hu.svg" alt="Magyar">        <span translate="no">Hungarian</span>    </div>    <div class="dropdown-option" data-lang="is">        <img src="/dist/img/flags/is.svg" alt="Íslenska">        <span translate="no">Icelandic</span>    </div>    <div class="dropdown-option" data-lang="id">        <img src="/dist/img/flags/id.svg" alt="Bahasa Indonesia">        <span translate="no">Indonesian</span>    </div>    <div class="dropdown-option" data-lang="it">        <img src="/dist/img/flags/it.svg" alt="Italiano">        <span translate="no">Italian</span>    </div>    <div class="dropdown-option" data-lang="ja">        <img src="/dist/img/flags/jp.svg" alt="日本語">        <span translate="no">Japanese</span>    </div>    <div class="dropdown-option" data-lang="jw">        <img src="/dist/img/flags/id.svg" alt="ꦧꦱꦗꦮ">        <span translate="no">Javanese</span>    </div>    <div class="dropdown-option" data-lang="kn">        <img src="/dist/img/flags/in.svg" alt="ಕನ್ನಡ">        <span translate="no">Kannada</span>    </div>    <div class="dropdown-option" data-lang="km">        <img src="/dist/img/flags/kh.svg" alt="ខ្មែរ">        <span translate="no">Khmer</span>    </div>    <div class="dropdown-option" data-lang="ko">        <img src="/dist/img/flags/kr.svg" alt="한국어">        <span translate="no">Korean</span>    </div>    <div class="dropdown-option" data-lang="la">        <img src="/dist/img/flags/xx.svg" alt="Latina">        <span translate="no">Latin</span>    </div>    <div class="dropdown-option" data-lang="lv">        <img src="/dist/img/flags/lv.svg" alt="Latviešu">        <span translate="no">Latvian</span>    </div>    <div class="dropdown-option" data-lang="lt">        <img src="/dist/img/flags/lt.svg" alt="Lietuvių">        <span translate="no">Lithuanian</span>    </div>    <div class="dropdown-option" data-lang="mk">        <img src="/dist/img/flags/mk.svg" alt="Македонски">        <span translate="no">Macedonian</span>    </div>    <div class="dropdown-option" data-lang="ml">        <img src="/dist/img/flags/in.svg" alt="മലയാളം">        <span translate="no">Malayalam</span>    </div>    <div class="dropdown-option" data-lang="mr">        <img src="/dist/img/flags/in.svg" alt="मराठी">        <span translate="no">Marathi</span>    </div>    <div class="dropdown-option" data-lang="my">        <img src="/dist/img/flags/mm.svg" alt="မြန်မာ">        <span translate="no">Myanmar (Burmese)</span>    </div>    <div class="dropdown-option" data-lang="ne">        <img src="/dist/img/flags/np.svg" alt="नेपाली">        <span translate="no">Nepali</span>    </div>    <div class="dropdown-option" data-lang="no">        <img src="/dist/img/flags/no.svg" alt="Norsk">        <span translate="no">Norwegian</span>    </div>    <div class="dropdown-option" data-lang="pl">        <img src="/dist/img/flags/pl.svg" alt="Polski">        <span translate="no">Polish</span>    </div>    <div class="dropdown-option" data-lang="pt">        <img src="/dist/img/flags/br.svg" alt="Português">        <span translate="no">Portuguese</span>    </div>    <div class="dropdown-option" data-lang="pa">        <img src="/dist/img/flags/in.svg" alt="ਪੰਜਾਬੀ">        <span translate="no">Punjabi</span>    </div>    <div class="dropdown-option" data-lang="ro">        <img src="/dist/img/flags/ro.svg" alt="Română">        <span translate="no">Romanian</span>    </div>    <div class="dropdown-option" data-lang="ru">        <img src="/dist/img/flags/ru.svg" alt="Русский">        <span translate="no">Russian</span>    </div>    <div class="dropdown-option" data-lang="sr">        <img src="/dist/img/flags/rs.svg" alt="Српски">        <span translate="no">Serbian</span>    </div>    <div class="dropdown-option" data-lang="si">        <img src="/dist/img/flags/lk.svg" alt="සිංහල">        <span translate="no">Sinhala</span>    </div>    <div class="dropdown-option" data-lang="sk">        <img src="/dist/img/flags/sk.svg" alt="Slovenčina">        <span translate="no">Slovak</span>    </div>    <div class="dropdown-option" data-lang="sl">        <img src="/dist/img/flags/si.svg" alt="Slovenščina">        <span translate="no">Slovenian</span>    </div>    <div class="dropdown-option" data-lang="es">        <img src="/dist/img/flags/es.svg" alt="Español">        <span translate="no">Spanish</span>    </div>    <div class="dropdown-option" data-lang="su">        <img src="/dist/img/flags/id.svg" alt="Basa Sunda">        <span translate="no">Sundanese</span>    </div>    <div class="dropdown-option" data-lang="sw">        <img src="/dist/img/flags/ke.svg" alt="Kiswahili">        <span translate="no">Swahili</span>    </div>    <div class="dropdown-option" data-lang="sv">        <img src="/dist/img/flags/se.svg" alt="Svenska">        <span translate="no">Swedish</span>    </div>    <div class="dropdown-option" data-lang="ta">        <img src="/dist/img/flags/in.svg" alt="தமிழ்">        <span translate="no">Tamil</span>    </div>    <div class="dropdown-option" data-lang="te">        <img src="/dist/img/flags/in.svg" alt="తెలుగు">        <span translate="no">Telugu</span>    </div>    <div class="dropdown-option" data-lang="th">        <img src="/dist/img/flags/th.svg" alt="ไทย">        <span translate="no">Thai</span>    </div>    <div class="dropdown-option" data-lang="tr">        <img src="/dist/img/flags/tr.svg" alt="Türkçe">        <span translate="no">Turkish</span>    </div>    <div class="dropdown-option" data-lang="uk">        <img src="/dist/img/flags/ua.svg" alt="Українська">        <span translate="no">Ukrainian</span>    </div>    <div class="dropdown-option" data-lang="ur">        <img src="/dist/img/flags/pk.svg" alt="اردو">        <span translate="no">Urdu</span>    </div>    <div class="dropdown-option" data-lang="vi">        <img src="/dist/img/flags/vn.svg" alt="Tiếng Việt">        <span translate="no">Vietnamese</span>    </div>    <div class="dropdown-option" data-lang="cy">        <img src="/dist/img/flags/gb.svg" alt="Cymraeg">        <span translate="no">Welsh</span>    </div>    <div class="dropdown-option" data-lang="xh">        <img src="/dist/img/flags/za.svg" alt="isiXhosa">        <span translate="no">Xhosa</span>    </div>    <div class="dropdown-option" data-lang="yi">        <img src="/dist/img/flags/xx.svg" alt="ייִדיש">        <span translate="no">Yiddish</span>    </div>    <div class="dropdown-option" data-lang="zu">        <img src="/dist/img/flags/za.svg" alt="isiZulu">        <span translate="no">Zulu</span>    </div>
</div>
<a class="faz" href="#" onclick="return false;" type="button" data-theme-toggle><i id="xtoggle"></i></a>


<div class="main-content">
<section class="section">
<div class="section-header">
<h1>Dashboard</h1>
</div>
<div class="section-body">

  

<div class="fetch-duration alert alert-primary alert-dismissible fade">
<div class="alert-body">
<button class="close" data-dismiss="alert">
<span>&times;</span>
</button>
<div class="media-title"><strong>PANEL DURATION: </strong><span class="text-uppercase panel-duration"></span></div>
</div>
</div>

<div class="fetch-update alert alert-primary alert-dismissible fade">
<div class="alert-body">
<button class="close" data-dismiss="alert">
<span>&times;</span>
</button>
<i class="fas fa-star-half-alt"></i> What's new on version <code><span class="panel-version"></span></code> :
<ul class="panel-update-list"></ul>
</div>
</div>

</div>

<div class="row">

<div class="col-lg-3 col-md-6 col-sm-6">
    <div class="card card-statistic-2 card-primary">
        <div class="card-icon shadow-primary bg-primary">
            <i class="fas fa-user-tie"></i>
        </div>
        <div class="card-wrap">
            <div class="card-header">
                <h4>Reseller</h4>
            </div>
        <div class="card-body stats-reseller"></div>
        </div>
    </div>
</div>

<div class="col-lg-3 col-md-6 col-sm-6">
    <div class="card card-statistic-2 card-primary">
        <div class="card-icon shadow-primary bg-primary">
            <i class="fas fa-users"></i>
        </div>
        <div class="card-wrap">
            <div class="card-header">
                <h4>Users</h4>
            </div>
            <div class="card-body stats-user"></div>
        </div>
    </div>
</div>

<div class="col-lg-3 col-md-6 col-sm-6">
    <div class="card card-statistic-2 card-primary">
        <div class="card-icon shadow-primary bg-primary">
            <i class="fas fa-signal"></i>
        </div>
        <div class="card-wrap">
            <div class="card-header">
                <h4>Online</h4>
            </div>
            <div class="card-body stats-online"></div>
        </div>
    </div>
</div>


<div class="col-lg-3 col-md-6 col-sm-6">
    <div class="card card-statistic-2 card-primary">
        <div class="card-icon shadow-primary bg-primary">
            <i class="fas fa-server"></i>
        </div>
        <div class="card-wrap">
            <div class="card-header">
                <h4>Servers</h4>
            </div>
            <div class="card-body stats-server"></div>
        </div>
    </div>
</div>


    
</div>

<div class="row">
    <div class="col-lg-4 col-md-6 col-sm-6 d-flex">
        <div class="card card-primary flex-fill">
            <div class="card-header">
                <h4>TOP SALES RESELLERS</h4>
            </div>
            <div class="card-body">
            <table class="table table-striped table-sm top-reseller">
            <thead>
            </thead>
            <tbody>
            </tbody>
            </table>
            </div>
        </div>
    </div>
    <div class="col-lg-4 col-md-6 col-sm-6 d-flex">
        <div class="card card-primary flex-fill">
            <div class="card-header">
                <h4>TOP BANDWIDTH USERS</h4>
            </div>
            <div class="card-body">
            <table class="table table-striped table-sm top-user">
            <thead>
            </thead>
            <tbody>
            </tbody>
            </table>
            </div>
        </div>
    </div>
    <div class="col-lg-4 col-md-6 col-sm-6 d-flex">
        <div class="card card-primary flex-fill">
            <div class="card-header">
                <h4>TOP BANDWIDTH SERVERS</h4>
            </div>
            <div class="card-body">
            <table class="table table-striped table-sm top-server">
            <thead>
            </thead>
            <tbody>
            </tbody>
            </table>
            </div>
        </div>
    </div>
</div>
 
<div class="row">
    
<div class="col-lg-3 col-md-6 col-sm-6">
    <div class="card card-primary">
    <div class="card-header">
    <h4>Profile</h4>
    </div>
    <div class="card-body">
    <ul class="list-unstyled user-progress list-unstyled-border list-unstyled-noborder">
    <li class="media">
    <img class="mr-3 rounded-circle" width="50" src="profile/1/1705554385.png" alt="adminme">
    <div class="media-body">
    <div class="media-title text-uppercase profile-username"></div>
    <div class="text-job text-muted">Username</div>
    </div>
    </li>
    <li class="media">
    <img class="mr-3 rounded-circle" width="50" src="profile/1/1705554385.png" alt="Upline">
    <div class="media-body">
    <div class="media-title text-uppercase profile-upline"></div>
    <div class="text-job text-muted">Upline</div>
    </div>
    </li>
    <li class="media">
    <img alt="image" class="mr-3 rounded-circle" width="50" src="/dist/img/dashboard/credits.png">
    <div class="media-body">
    <div class="media-title text-uppercase profile-credits"></div>
    <div class="text-job text-muted">Credits</div>
    </div>
    </li>
    </ul>
    </div>
    </div>
    
            <div class="card card-primary">
            <div class="card-header">
                <h4>Domain Status</h4>
            </div>
            <div class="card-body">
                <div class="form-group">
                    <label class="text-primary">Domain</label>
                    <input class="form-control stats-domain" type="text" readonly>
                </div>
                <div class="form-group">
                    <label class="text-primary">Created</label>
                    <input class="form-control stats-created" type="text" readonly>
                </div>
                <div class="form-group">
                    <label class="text-primary">Expired</label>
                    <input class="form-control stats-expired" type="text" readonly>
                </div>
            </div>
        </div>
                
</div>

<div class="col-lg-3 col-md-6 col-sm-6">
    <div class="card card-primary">
    <div class="card-header">
    <h4>Users</h4>
    </div>
    <div class="card-body">
    <canvas id="userchart"></canvas>
    </div>
    </div>
</div>

<div class="col-lg-6 col-md-6 col-sm-6">
<div class="card card-primary">
<div class="card-header">
<h4>Recent Activity</h4>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-sm table-activity">
<thead>
<tr>
    <th scope="col">Time</th>
    <th scope="col">Device</th>
    <th scope="col">Action</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>


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

<div class="modal fade modalize" role="dialog" aria-labelledby="smallmodal">
<div class="modal-dialog modal-md" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body">
<div class="modal-error"></div>
<div class="modal-html"></div>
</div>
</div>
</div>
</div>

<script src="/dist/modules/jquery.min.js"></script>
<script src="/dist/modules/popper.js"></script>
<script src="/dist/modules/tooltip.js"></script>
<script src="/dist/modules/bootstrap/js/bootstrap.min.js"></script>
<script src="/dist/modules/nicescroll/jquery.nicescroll.min.js"></script>
<script src="/dist/modules/moment.min.js"></script>
<script src="/dist/modules/sweetalert/sweetalert.min.js"></script>
<script src="/dist/modules/time.js"></script>
<script src="/dist/js/stisla.js"></script>

<script src="/dist/modules/chart.min.js"></script>
<script src="https://cdn.datatables.net/v/bs4/dt-1.13.6/b-2.4.2/r-2.5.0/sl-1.7.0/datatables.min.js"></script>
<script src="/dist/modules/select2/dist/js/select2.full.min.js"></script>
<script src="/dist/modules/jquery-ui/jquery-ui.min.js"></script>
<script src="/dist/modules/summernote/summernote-bs4.min.js"></script>

<script src="/dist/js/clipboard.min.js"></script>
<script src="/dist/js/scripts.js"></script>
<script src="/dist/js/custom-select.js"></script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script>
function modalize(title, body)
	{
	    $(".modalize").modal({
            backdrop: 'static',
            keyboard: false  // to prevent closing with Esc button (if you want this too)
        })
        $(".modalize").modal('show');
		$(".modal-title").text(title);
		$(".modal-error").html('');
		$(".modal-html").html(body);
	}
	
function normal_modalize(title, body)
	{
	    $(".normal-modalize").modal({
            backdrop: 'static',
            keyboard: false  // to prevent closing with Esc button (if you want this too)
        })
        $(".normal-modalize").modal('show');
		$(".normal-modal-title").text(title);
		$(".normal-modal-error").html('');
		$(".normal-modal-html").html(body);
	}

$(function() {
	var clippy = new ClipboardJS('.btn-copy');
	clippy.on('success', function(e) {
		swal({
			title: 'Details copied successfuly!',
			icon: 'success'
		}); e.clearSelection();
	}); var token = $("#app").data("token");
	
	$(".btn-logout").click(function() {
		swal({
			title: 'Are you sure?',
			icon: 'warning',
			buttons: ["Cancel", "Proceed"],
			dangerMode: true
		}).then((doLogout) => {
			if (doLogout) {
				location.replace("/logout");
			}
		});
	})
	
    $('.btn-genuine').click(function () {
        modalize('Made with \u2764️ by Master Build','Thank you for choosing my vpn panel and for supporting me.')
    })
})

$(document).on('click', '.upload-field', function(){
            var file = $(this).parent().parent().parent().find('.input-file');
            file.trigger('click');
        });

        $(document).on('change', '.input-file', function(){
            $(this).parent().find('.form-control').val($(this).val().replace(/C:\\fakepath\\/i, ''));
        });
        
/**
* Utility function to calculate the current theme setting.
* Look for a local storage value.
* Fall back to system setting.
* Fall back to light mode.
*/
function calculateSettingAsThemeString({ localStorageTheme, systemSettingDark }) {
  if (localStorageTheme !== null) {
    return localStorageTheme;
  }

  if (systemSettingDark.matches) {
    return "dark";
  }

  return "light";
}

/**
* Utility function to update the button text and aria-label.
*/
function updateButton({ buttonEl, isDark }) {
  const newCta = isDark ? "fa fa-sun" : "fa fa-moon";
  // use an aria-label if you are omitting text on the button
  // and using a sun/moon icon, for example
  $('#xtoggle').attr("class",newCta);
}

/**
* Utility function to update the theme setting on the html tag
*/
function updateThemeOnHtmlEl({ theme }) {
  document.querySelector("html").setAttribute("data-theme", theme);
}


/**
* On page load:
*/

/**
* 1. Grab what we need from the DOM and system settings on page load
*/
const button = document.querySelector("[data-theme-toggle]");
const localStorageTheme = localStorage.getItem("theme");
const systemSettingDark = window.matchMedia("(prefers-color-scheme: dark)");

/**
* 2. Work out the current site settings
*/
let currentThemeSetting = calculateSettingAsThemeString({ localStorageTheme, systemSettingDark });

/**
* 3. Update the theme setting and button text accoridng to current settings
*/
updateButton({ buttonEl: button, isDark: currentThemeSetting === "dark" });
updateThemeOnHtmlEl({ theme: currentThemeSetting });

/**
* 4. Add an event listener to toggle the theme
*/
button.addEventListener("click", (event) => {
  const newTheme = currentThemeSetting === "dark" ? "light" : "dark";

  localStorage.setItem("theme", newTheme);
  updateButton({ buttonEl: button, isDark: newTheme === "dark" });
  updateThemeOnHtmlEl({ theme: newTheme });

  currentThemeSetting = newTheme;
}); 

<!-- Load Google Translate -->
function googleTranslateElementInit() {
    new google.translate.TranslateElement({
        pageLanguage: 'en'
    }, 'google_translate_element');
}

    const toggleButton = document.getElementById('toggleDropdown');
    const dropdownMenu = document.getElementById('dropdownMenu');

    toggleButton.addEventListener('click', () => {
        toggleButton.classList.add('clicked');
        setTimeout(() => {
            toggleButton.classList.remove('clicked');
        }, 400);
        dropdownMenu.style.display = dropdownMenu.style.display === 'block' ? 'none' : 'block';
    });

    document.querySelectorAll('.dropdown-option').forEach(option => {
        option.addEventListener('click', () => {
            const lang = option.dataset.lang;
            translateLanguage(lang);
            dropdownMenu.style.display = 'none';
            // Save selected language
            localStorage.setItem('firenetLang', lang);
        });
    });

    window.addEventListener('click', (e) => {
        if (!toggleButton.contains(e.target) && !dropdownMenu.contains(e.target)) {
            dropdownMenu.style.display = 'none';
        }
    });

    function translateLanguage(lang) {
        const select = document.querySelector(".goog-te-combo");
        if (select) {
            select.value = lang;
            select.dispatchEvent(new Event('change'));
        } else {
            // Retry if Google Translate is not ready yet
            setTimeout(() => translateLanguage(lang), 500);
        }
    }

    // Apply saved language on page load

    const savedLang = localStorage.getItem('firenetLang');
    translateLanguage(savedLang);
</script>
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onloadTurnstileCallback" defer></script>
<script>
$('document').ready(function()
{
    function modalize(title, body) {
        $(".modalize").modal({
            backdrop: "static"
        });
        $(".modal-title").html(title);
        $(".modal-html").html(body);
    }
    
    

	
    function getDashboard(){
    	$.ajax({
            url: "https://mastervpn.net/serverside/data/get_dashboard.php",
            type: "GET",
            dataType: "JSON",
    		cache: false,
            success: function(data)
            {
    			if(data.response == 1)
    			{
    				$('.stats-reseller').text(data.reseller);
    				$('.stats-user').text(data.user);
    				$('.stats-online').text(data.online);
    				$('.stats-server').text(data.servercount);
    				$('.profile-username').text(data.profile_username);
    				$('.profile-upline').text(data.profile_upline);
    				$('.profile-credits').text(data.profile_credits);
    				$('.table-activity').append(data.activity);
    				$(".profile-servers").html(data.servers)
    				$('.panel-duration').text(data.licdur);
    				
    				$('.top-reseller').append(data.topresellers);
    				$('.top-user').append(data.topbandwidthusers);
    				$('.top-server').append(data.topbandwidthservers);
    				
    				$('.stats-domain').val(data.domain_name);
    				$('.stats-created').val(data.domain_created);
    				$('.stats-expired').val(data.domain_expired);
    				
    				var myChart = new Chart($("#userchart"), {
                        type: 'doughnut',
                        data: {
                            datasets: [{
                                data: [data.trial, data.normal, data.bulk, ],
                                backgroundColor: ['#fc544b', '#63ed7a', '#6777ef', ],
                                label: 'Dataset 1'
                            }],
                            labels: ['Trial', 'Normal', 'Bulk'],
                        },
                        options: {
                            responsive: true,
                            legend: {
                                position: 'bottom',
                            },
                        }
                    });
    			}
    			if(data.response == 2)
    			{
    				swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                        button: false,
                        closeOnClickOutside: false,
                        timer: 3000
                    }).then(() => {
                        location.reload()
                    });
    			}
    			if(data.response == 0){
    				swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                        button: false,
                        closeOnClickOutside: false,
                        timer: 3000
                    }).then(() => {
                        location.reload()
                    });
    			}
            },
            error: function (jqXHR, textStatus, errorThrown)
            {
                swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                    button: false,
                    closeOnClickOutside: false,
                    timer: 3000
                }).then(() => {
                    location.reload()
                });
            }
        });
    }

    function getNotification(){
        $.ajax({
            url: "https://mastervpn.net/serverside/data/get_notification.php",
            type: "GET",
            dataType: "JSON",
    		cache: false,
            success: function(data)
            {
                var notifications = '';
    			if(data.response == 1)
    			{
    			    if (data.notiftotal === 0) {
    			        $(".notification-toggle").removeClass("beep");
    				    notifications = `<a href="javascript:void(0)" class="dropdown-item dropdown-item-unread">
                                        	<div class="dropdown-item-icon bg-primary text-white">
                                        		<i class="far fa-smile"></i>
                                        	</div>
                                        	<div class="dropdown-item-desc"> No available notifications to show for now. <div class="time text-primary">Stay safe and secure.</div>
                                        	</div>
                                        </a>`;
    			    }else{
    			        $(".notification-toggle").addClass("beep");
    			        notifications = data.notifica;
    			    }
    			    $(".profile-notifications").html(notifications);
    			}
    			if(data.response == 2)
    			{
    				swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                        button: false,
                        closeOnClickOutside: false,
                        timer: 3000
                    }).then(() => {
                        location.reload()
                    });
    			}
    			if(data.response == 0){
    				swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                        button: false,
                        closeOnClickOutside: false,
                        timer: 3000
                    }).then(() => {
                        location.reload()
                    });
    			}
            },
            error: function (jqXHR, textStatus, errorThrown)
            {
                swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                    button: false,
                    closeOnClickOutside: false,
                    timer: 3000
                }).then(() => {
                    location.reload()
                });
            }
        });
    }
    
    $(".notificationlist").on("click", ".view-notification", function() {
        var id = $(this).data("id");
        var type = $(this).data("type");
        var date = $(this).data("date");
    
        $.ajax({
            url: "https://mastervpn.net/serverside/data/read_notification.php",
            data: "id="+id,
            type: "GET",
            dataType: "JSON",
    		cache: false,
            success: function(data)
            {
    			if(data.response == 1){
            		modalize(`<span class="badge badge-primary">`+type+`</span> Posted `+date+` `, data.content);
            	}
            	if(data.response == 2){
            		modalMessage('danger','Error', data.msg);
            	}
            	if(data.response == 3){
            		modalMessage('danger','Error', data.errormsg);
            	}
            },
            error: function (jqXHR, textStatus, errorThrown)
            {
                swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                    button: false,
                    closeOnClickOutside: false,
                    timer: 3000
                }).then(() => {
                    location.reload()
                });
            },
            complete: function(){
    
    		}
        });
        
    })
    
    function getVersion(){
        $.ajax({
            url: "https://mastervpn.net/serverside/data/get_version.php",
            type: "GET",
            dataType: "JSON",
        	cache: false,
            success: function(data)
            {
        		if(data.response == 1){
                	if (data.length > 0) {
                        $('.fetch-update').show().addClass('show')
                        $('.fetch-duration').show().addClass('show')
            		    $('.panel-version').text(data.version);
                    	$('.panel-update-list').append(data.content);
                    }
                    if (data.length < 1){
                        $('.fetch-update').show().addClass('d-none')
                        $('.fetch-duration').show().addClass('show')
                    }
                                        if (data.versiontitle) {
                        var htmlContent = document.createElement("div");
                            htmlContent.innerHTML = data.versionmsg;
                        swal({
                            title: data.versiontitle,
                            content: htmlContent,
                            icon: data.versiontype,
                            closeOnClickOutside: false,
                            button: true
                        })
                    }
                                    }
                if(data.response == 2){
                	swal(`Failed`, `Failed getting version details.`, `warning`, {
                        button: true,
                        closeOnClickOutside: false
                    })
                }
            },
            error: function (jqXHR, textStatus, errorThrown)
            {
                swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                    button: false,
                    closeOnClickOutside: false,
                    timer: 3000
                }).then(() => {
                    location.reload()
                });
            },
            complete: function(){
        
        	}
        });
    }
    
    function getF(){
        $.ajax({
            url: "https://mastervpn.net/serverside/data/get_data.php",
            type: "GET",
            dataType: "JSON",
        	cache: false,
            success: function(data)
            {
        		if(data.response == 1){
        		    getVersion()
                }
                if(data.response == 2){
                	swal(`Error`, data.licmsg, `error`, {
                        button: false,
                        closeOnClickOutside: false,
                        timer: 5000
                    }).then(() => {
                        location.reload()
                    });
                }
                if(data.response == 3){
                	swal(`Error`, data.licmsg, `error`, {
                        button: false,
                        closeOnClickOutside: false,
                        timer: 5000
                    }).then(() => {
                        location.reload()
                    });
                }
            },
            error: function (jqXHR, textStatus, errorThrown)
            {
                swal(`Error`, `Error parsing data.`, `error`, {
                    button: false,
                    closeOnClickOutside: false,
                    timer: 3000
                }).then(() => {
                    location.reload()
                });
            },
            complete: function(){
        
        	}
        });
    }
getF()
getDashboard()
});
</script>
<script>
$('document').ready(function()
{
    function modalize(title, body) {
		$(".modalize").modal({
			backdrop: "static"
		});
		$(".modal-title").html(title);
		$(".modal-html").html(body);
	}
	
    function getNotification(){
        $.ajax({
            url: "https://mastervpn.net/serverside/data/get_notification.php",
            type: "GET",
            dataType: "JSON",
    		cache: false,
            success: function(data)
            {
                var notifications = '';
    			if(data.response == 1)
    			{
    			    if (data.notiftotal === 0) {
    			        $(".notification-toggle").removeClass("beep");
    				    notifications = `<a href="javascript:void(0)" class="dropdown-item dropdown-item-unread">
                                        	<div class="dropdown-item-icon bg-primary text-white">
                                        		<i class="far fa-smile"></i>
                                        	</div>
                                        	<div class="dropdown-item-desc"> No available notifications to show for now. <div class="time text-primary">Stay safe and secure.</div>
                                        	</div>
                                        </a>`;
    			    }else{
    			        $(".notification-toggle").addClass("beep");
    			        notifications = data.notifica;
    			    }
    			    $(".profile-notifications").html(notifications);
    			}
    			if(data.response == 2)
    			{
    				swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                        button: false,
                        closeOnClickOutside: false,
                        timer: 3000
                    }).then(() => {
                        location.reload()
                    });
    			}
    			if(data.response == 0){
    				swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                        button: false,
                        closeOnClickOutside: false,
                        timer: 3000
                    }).then(() => {
                        location.reload()
                    });
    			}
            },
            error: function (jqXHR, textStatus, errorThrown)
            {
                swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                    button: false,
                    closeOnClickOutside: false,
                    timer: 3000
                }).then(() => {
                    location.reload()
                });
            }
        });
    }
    
    $(".notificationlist").on("click", ".view-notification", function() {
        var id = $(this).data("id");
        var type = $(this).data("type");
        var date = $(this).data("date");
    
        $.ajax({
            url: "https://mastervpn.net/serverside/data/read_notification.php",
            data: "id="+id,
            type: "GET",
            dataType: "JSON",
    		cache: false,
            success: function(data)
            {
    			if(data.response == 1){
            		modalize(`<span class="badge badge-primary">`+type+`</span> Posted `+date+` `, data.content);
            	}
            	if(data.response == 2){
            		modalMessage('danger','Error', data.msg);
            	}
            	if(data.response == 3){
            		modalMessage('danger','Error', data.errormsg);
            	}
            },
            error: function (jqXHR, textStatus, errorThrown)
            {
                swal(`Failed`, `Failed getting data from AJAX.`, `warning`, {
                    button: false,
                    closeOnClickOutside: false,
                    timer: 3000
                }).then(() => {
                    location.reload()
                });
            },
            complete: function(){
    
    		}
        });
        
    })
    
getNotification()
    setInterval(function () {
        getNotification()
    }, 5000);
});
</script>
</body>
</html>