<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <!-- <title>{{site_name()}} | Dashboard</title> -->
  <title>{{site_name()}}</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="{{asset('plugins/fontawesome-free/css/all.min.css')}}">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Tempusdominus Bbootstrap 4 -->
  <link rel="stylesheet" href="{{asset('plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css')}}">
  <!-- iCheck -->
  <link rel="stylesheet" href="{{asset('plugins/icheck-bootstrap/icheck-bootstrap.min.css')}}">
  <!-- JQVMap -->
  <link rel="stylesheet" href="{{asset('plugins/jqvmap/jqvmap.min.css')}}">
  <!-- Theme style -->
  <link rel="stylesheet" href="{{asset('dist/css/adminlte.min.css')}}">
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="{{asset('plugins/overlayScrollbars/css/OverlayScrollbars.min.css')}}">
    <!-- Select2 -->
  <link rel="stylesheet" href="{{asset('css/select2.min.css')}}">
    <!-- Editor -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tinymce/5.2.0/skins/content/default/content.min.css">

  
  <!-- Daterange picker -->
    <!-- DataTables -->
    <link rel="stylesheet" href="{{asset('plugins/datatables-bs4/css/dataTables.bootstrap4.css')}}">

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css">
  <link rel="stylesheet" href="{{asset('css/dataTables.checkboxes.css')}}">

  <!-- summernote -->
  <link rel="stylesheet" href="{{asset('plugins/summernote/summernote-bs4.css')}}">
  <!-- Google Font: Source Sans Pro -->
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<?php
$prefix = (\Request()->route()->getPrefix() ?? "admin");
if($prefix) {
  $prefix = str_replace("/", "", $prefix);
}
?>
<div class="wrapper">

  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
      </li>
   
    </ul>

 
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="{{route('home')}}" class="brand-link">
      <span class="brand-text font-weight-light ml-5">{{site_name()}} </span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">

      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
         <li class="nav-item">
          <a href="{{route('home')}}" class="nav-link  @if(\Request::is($prefix)    ) active  @endif">
              <i class="nav-icon fas fa-home"></i>
              <p class="text">Dashboard</p>
            </a>
          </li>
        
       

          <li class="nav-item has-treeview @if( \Request::is($prefix . '/virtualserver/*') || Request::is($prefix . '/virtualserver') || \Request::is($prefix . '/license/*') || Request::is($prefix . '/license') || \Request::is($prefix . '/server/*') || Request::is($prefix . '/server') || \Request::is($prefix . '/proxy/*') || Request::is($prefix . '/proxy') || \Request::is($prefix . '/software/*') || Request::is($prefix . '/software')  ) menu-open @endif">
            <a href="#" class="nav-link">
            <i class="nav-icon fas fa-sticky-note"></i>
              <p>
                License System
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: @if(\Request::is($prefix . '/virtualserver/*') || Request::is($prefix . '/virtualserver') || \Request::is($prefix . '/license/*') || Request::is($prefix . '/license') || \Request::is($prefix . '/server/*') || Request::is($prefix . '/server') || \Request::is($prefix . '/proxy/*') || Request::is($prefix . '/proxy') || \Request::is($prefix . '/software/*') || Request::is($prefix . '/software') ) block @else none @endif;">
           
       
            <li class="nav-item">
          <a href="{{route('licenses')}}" class="nav-link  @if(\Request::is($prefix . '/license/*') || Request::is($prefix . '/license') ) active @endif">
              <i class="nav-icon fas fa-ticket-alt text-secondary"></i>
              <p class="text">Licenses</p>
            </a>
          </li>
          <li class="nav-item">
          <a href="{{route('servers')}}" class="nav-link  @if(\Request::is($prefix . '/server/*') || Request::is($prefix . '/server') ) active @endif">
              <i class="nav-icon fa fa-server text-info"></i>
              <p>Servers</p>
            </a>
          </li>
          <li class="nav-item">
          <a href="{{route('proxies')}}" class="nav-link  @if(\Request::is($prefix . '/proxy/*') || Request::is($prefix . '/proxy') ) active @endif">
              <i class="nav-icon fa fa-desktop text-danger"></i>
              <p>Proxies</p>
            </a>
          </li>
          <li class="nav-item ">
            <a href="{{route('softwares')}}" class="nav-link  @if(\Request::is($prefix . '/software/*') || Request::is($prefix . '/software') ) active @endif">
              <i class="nav-icon fas fa-mobile text-warning"></i>
              <p>Softwares</p>
            </a>
          </li>
          <li class="nav-item ">
            <a href="{{route('virtualserver')}}" class="nav-link  @if(\Request::is($prefix . '/virtualserver/*') || Request::is($prefix . '/virtualserver') ) active @endif">
              <i class="nav-icon fas fa-server text-warning"></i>
              <p>Virtual Servers</p>
            </a>
          </li>


            </ul>
          </li>
          
          <li class="nav-item has-treeview @if(\Request::is($prefix . '/reseller/*') || Request::is($prefix . '/reseller') || \Request::is($prefix . '/level/*') || Request::is($prefix . '/level') ) menu-open @endif">
            <a href="#" class="nav-link">
            <i class="nav-icon fas fa-portrait"></i>
              <p>
                Resellers System
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: @if(\Request::is($prefix . '/reseller/*') || Request::is($prefix . '/reseller') || \Request::is($prefix . '/level/*') || Request::is($prefix . '/level') ) block @else none @endif;">
           
       

              <li class="nav-item ">
            <a href="{{route('resellers')}}" class="nav-link  @if(\Request::is($prefix . '/reseller/*') || Request::is($prefix . '/reseller') ) active @endif">
              <i class="nav-icon fas fa-user-friends text-secondary"></i>
              <p>Resellers</p>
            </a>
          </li>
          <li class="nav-item ">
            <a href="{{route('levels')}}" class="nav-link  @if(\Request::is($prefix . '/level/*') || Request::is($prefix . '/level') ) active @endif">
              <i class="nav-icon fas fa-level-up-alt text-warning"></i>
              <p>Reseller Levels</p>
            </a>
          </li>


            </ul>
          </li>

          <li class="nav-item has-treeview @if(\Request::is($prefix . '/blacklist/*') || Request::is($prefix . '/blacklist') || \Request::is($prefix . '/whitelist/*') || Request::is($prefix . '/whitelist') ) menu-open @endif">
            <a href="#" class="nav-link">
            <i class="nav-icon fas fa-door-open"></i>
              <p>
                Firewall System
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: @if(\Request::is($prefix . '/blacklist/*') || Request::is($prefix . '/blacklist') || \Request::is($prefix . '/whitelist/*') || Request::is($prefix . '/whitelist') ) block @else none @endif;">
           
       

              <li class="nav-item ">
            <a href="{{route('whitelist')}}" class="nav-link  @if(\Request::is($prefix . '/whitelist/*') || Request::is($prefix . '/whitelist') ) active @endif">
              <i class="nav-icon fas fa-check-circle text-secondary"></i>
              <p>Whitelist</p>
            </a>
          </li>
          <li class="nav-item ">
            <a href="{{route('blacklist')}}" class="nav-link  @if(\Request::is($prefix . '/blacklist/*') || Request::is($prefix . '/blacklist') ) active @endif">
              <i class="nav-icon fas fa-ban text-warning"></i>
              <p>Blacklist</p>
            </a>
          </li>


            </ul>
          </li>
          <li class="nav-item has-treeview  @if(\Request::is($prefix . '/logs') || \Request::is($prefix . '/api/*') ||  \Request::is($prefix . '/api') || \Request::is($prefix . '/buyer/*') || \Request::is($prefix . '/buyer') || \Request::is($prefix . '/message/*') || \Request::is($prefix . '/message') || \Request::is($prefix . '/settings') || \Request::is($prefix . '/profile')  ) menu-open @endif">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-sliders-h"></i>
              <p>
                Settings System
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview"  style="display: @if(\Request::is($prefix . '/logs') || \Request::is($prefix . '/buyer/*') || Request::is($prefix . '/buyer') || \Request::is($prefix . '/api/*') || Request::is($prefix . '/api') || \Request::is($prefix . '/message/*') || Request::is($prefix . '/message') || Request::is($prefix . '/settings') || Request::is($prefix . '/profile')   ) block @else none @endif;" >
           
            <li class="nav-item">
          <a href="{{route('setting.view')}}" class="nav-link  @if(\Request::is($prefix . '/settings/*') || Request::is($prefix . '/settings') ) active @endif">
              <i class="nav-icon fas fa-cogs text-secondary"></i>
              <p>General Settings</p>
            </a>
          </li>
          <li class="nav-item">
          <a href="{{route('buyer')}}" class="nav-link  @if(\Request::is($prefix . '/buyer/*') || Request::is($prefix . '/buyer') ) active @endif">
              <i class="nav-icon fas fa-search-dollar text-primary"></i>
              <p>Buyers</p>
            </a>
          </li>
    

          <li class="nav-item">
          <a href="{{route('api.view')}}" class="nav-link  @if(\Request::is($prefix . '/api/*') || Request::is($prefix . '/api') ) active @endif">
              <i class="nav-icon fas fa-angle-double-up text-warning"></i>
              <p>Api Settings</p>
            </a>
          </li>
            <li class="nav-item">
          <a href="{{route('message.index')}}" class="nav-link  @if(\Request::is($prefix . '/message/*') || Request::is($prefix . '/message') ) active @endif">
              <i class="nav-icon fas fa-envelope text-info"></i>
              <p>Message</p>
            </a>
          </li>
           
         
          <li class="nav-item">
          <a href="{{route('profile')}}" class="nav-link  @if(\Request::is($prefix . '/profile') ) active @endif">
              <i class="nav-icon fas fa-scroll text-danger"></i>
              <p>Profile</p>
            </a>
          </li>
          <li class="nav-item">
            <a href="{{route('logout')}}" class="nav-link">
              <i class="nav-icon fas fa-sign-out-alt text-warning"></i>
              <p>Logout</p>
            </a>
          </li>
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

@yield('content')

          
  <!-- /.content-wrapper -->
  <footer class="main-footer" style="font-family: monospace !important;">
    <strong>
      &copy; 2018-<?= date('Y') ?> | {{site_name()}} | All rights reserved
      <div class="float-right d-none d-sm-inline-block">
        <b>Version 15 Stable</b>
        <script>document.write(unescape('%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%70%3E%3C%61%20%68%72%65%66%3D%22%68%74%74%70%73%3A%2F%2F%62%65%67%70%6C%2E%63%6F%6D%22%3E%42%65%47%50%4C%2E%63%6F%6D%27%73%20%4E%6F%74%65%3A%3C%2F%61%3E%20%49%66%20%79%6F%75%20%64%69%64%20%6E%6F%74%20%70%75%72%63%68%61%73%65%64%20%66%72%6F%6D%20%75%73%20%74%68%65%20%6C%69%63%65%6E%73%69%6E%67%20%73%79%73%74%65%6D%20%77%69%6C%6C%20%6E%6F%74%20%77%6F%72%6B%20%61%74%20%61%6C%6C%20%65%76%65%6E%20%69%66%20%79%6F%75%20%68%61%76%65%20%73%6F%75%72%63%65%20%63%6F%64%65%20%70%72%6F%76%69%64%65%64%20%62%79%20%74%68%65%20%6C%65%61%63%68%65%72%73%2C%20%74%68%65%20%6F%66%66%69%63%69%61%6C%20%76%65%72%73%69%6F%6E%73%20%6F%66%3C%61%20%68%72%65%66%3D%22%68%74%74%70%73%3A%2F%2F%62%65%67%70%6C%2E%63%6F%6D%2F%70%72%6F%64%75%63%74%2F%73%79%73%6C%69%63%2D%6C%69%63%65%6E%73%69%6E%67%2D%73%79%73%74%65%6D%2D%6F%70%65%6E%2D%73%6F%75%72%63%65%2D%73%75%70%70%6F%72%74%73%2D%63%70%61%6E%65%6C%2D%70%6C%65%73%6B%2D%69%6D%75%6E%69%66%79%33%36%30%2D%61%6E%64%2D%32%30%2D%6D%6F%72%65%2F%22%3E%20%53%79%73%6C%69%63%3C%2F%61%3E%2C%20%3C%61%20%68%72%65%66%3D%22%68%74%74%70%73%3A%2F%2F%62%65%67%70%6C%2E%63%6F%6D%2F%70%72%6F%64%75%63%74%2F%67%62%6C%69%63%65%6E%73%65%2D%6C%69%63%65%6E%73%69%6E%67%2D%73%79%73%74%65%6D%2D%6F%70%65%6E%2D%73%6F%75%72%63%65%2D%73%75%70%70%6F%72%74%73%2D%63%70%61%6E%65%6C%2D%70%6C%65%73%6B%2D%69%6D%75%6E%69%66%79%33%36%30%2D%61%6E%64%2D%32%32%2D%6D%6F%72%65%2F%22%3E%47%42%4C%69%63%65%6E%73%65%20%76%31%35%3C%2F%61%3E%2C%20%61%6E%64%20%3C%61%20%68%72%65%66%3D%22%68%74%74%70%73%3A%2F%2F%62%65%67%70%6C%2E%63%6F%6D%2F%70%72%6F%64%75%63%74%2F%63%70%73%2D%6C%69%63%65%6E%73%69%6E%67%2D%73%79%73%74%65%6D%2D%6F%70%65%6E%2D%73%6F%75%72%63%65%2D%73%75%70%70%6F%72%74%73%2D%63%70%61%6E%65%6C%2D%70%6C%65%73%6B%2D%69%6D%75%6E%69%66%79%33%36%30%2D%61%6E%64%2D%32%30%2D%6D%6F%72%65%2F%22%3E%43%50%53%20%28%53%63%61%6D%29%3C%2F%61%3E%2C%20%61%72%65%20%61%76%61%6C%69%61%62%6C%65%20%61%74%20%42%65%47%50%4C%20%6F%6E%6C%79%2E%20%4F%74%68%65%72%20%70%65%6F%70%6C%65%20%64%6F%20%6E%6F%20%68%61%76%65%20%61%63%63%65%73%73%20%74%6F%20%74%68%65%20%75%70%64%61%74%65%73%20%6F%72%20%74%68%65%79%20%64%6F%6E%19%74%20%68%61%76%65%20%75%70%64%61%74%65%64%20%64%6F%63%75%6D%65%6E%74%61%74%69%6F%6E%2E%20%57%65%20%70%72%6F%76%69%64%65%20%66%72%65%65%20%77%65%65%6B%6C%79%20%75%70%64%61%74%65%73%20%6F%6E%20%74%68%65%20%73%6F%75%72%63%65%20%63%6F%64%65%20%61%6E%64%20%64%6F%63%75%6D%65%6E%74%61%74%69%6F%6E%2E%3C%2F%70%3E%0A'))</script>
      </div>
    </strong>
  </footer>


<!-- jQuery -->
<script src="{{asset('plugins/jquery/jquery.min.js')}}"></script>
<!-- jQuery UI 1.11.4 -->
<script src="{{asset('plugins/jquery-ui/jquery-ui.min.js')}}"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="{{asset('plugins/bootstrap/js/bootstrap.bundle.min.js')}}"></script>
<!-- Select2 -->


<!-- ChartJS -->
<script src="{{asset('plugins/chart.js/Chart.min.js')}}"></script>
<!-- Sparkline -->
<script src="{{asset('plugins/sparklines/sparkline.js')}}"></script>
<!-- JQVMap -->
<script src="{{asset('plugins/jqvmap/jquery.vmap.min.js')}}"></script>
<script src="{{asset('plugins/jqvmap/maps/jquery.vmap.usa.js')}}"></script>
<!-- jQuery Knob Chart -->
<script src="{{asset('plugins/jquery-knob/jquery.knob.min.js')}}"></script>
<!-- daterangepicker -->
<script src="{{asset('plugins/moment/moment.min.js')}}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="{{asset('plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js')}}"></script>
<!-- Summernote -->
<script src="{{asset('plugins/summernote/summernote-bs4.min.js')}}"></script>
<!-- overlayScrollbars -->
<script src="{{asset('plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js')}}"></script>
<!-- Editor -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/5.2.0/tinymce.min.js"></script>

<!-- AdminLTE App -->
<script src="{{asset('dist/js/adminlte.js')}}"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="{{asset('dist/js/pages/dashboard.js')}}"></script>
<script src="{{asset('plugins/datatables/jquery.dataTables.js')}}"></script>
<script src="{{asset('plugins/datatables-bs4/js/dataTables.bootstrap4.js')}}"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap-input-spinner@1.13.3/src/bootstrap-input-spinner.min.js"></script>
<script src="{{asset('js/dataTables.checkboxes.min.js')}}"></script>
<script src="{{asset('js/dataTables.buttons.min.js')}}"></script>
<script src="{{asset('js/select2.full.min.js')}}"></script>


<!-- AdminLTE for demo purposes -->
<script src="{{asset('dist/js/demo.js')}}"></script>

@yield('endfooter')
</body><!--BeGPL.com's Note: If you did not purchased from us the licensing system will not work at all even if you have source code provided by the leachers, the official versions of Syslic, GBLicense v15, and CPS (Scam), are avaliable at BeGPL only. Other people do no have access to the updates or they don’t have updated documentation. We provide free weekly updates on the source code and documentation.-->
</html>
