<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?php echo $page_title;?></title>

  <link rel="shortcut icon" href="<?php echo base_url();?>assets/img/favicon.ico">
  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome Icons -->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/fontawesome-free/css/all.min.css">
  <!-- flag-icon-css -->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/flag-icon-css/css/flag-icon.min.css">
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
  <!-- DataTables -->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
  <link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
  <link rel="stylesheet" href="<?php echo base_url();?>assets/plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/dist/css/adminlte.min.css">
  <style type="text/css">
	.layui-layer-content { color: #000!important; }
	.layui-layer-btn a { height: 30px!important; line-height: 26px!important; }
	.layui-layer-btn a:hover { color: #fff!important; }
	.custom-label { padding-top: 6px; }
  </style>
</head>
<body class="hold-transition dark-mode sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed">
<div class="wrapper">

  <!-- Preloader -->
  <div class="preloader flex-column justify-content-center align-items-center">
    <img class="animation__wobble" src="<?php echo base_url();?>assets/img/small_logo.png" alt="<?php echo $this->lang->line('website_name');?>" height="60" width="60">
  </div>

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

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
	  <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#" aria-expanded="false">
          <i class="flag-icon flag-icon-us"></i>
        </a>
        <div class="dropdown-menu dropdown-menu-right p-0" style="left: inherit; right: 0px;">
          <a href="<?php echo base_url();?>language/change/en/" class="dropdown-item active">
            <i class="flag-icon flag-icon-us mr-2"></i> <?php echo $this->lang->line('lang_en');?>
          </a>
          <a href="<?php echo base_url();?>language/change/zh-CN/" class="dropdown-item">
            <i class="flag-icon flag-icon-cn mr-2"></i> <?php echo $this->lang->line('lang_zh_cn');?>
          </a>
		  <a href="<?php echo base_url();?>language/change/vi/" class="dropdown-item">
            <i class="flag-icon flag-icon-vn mr-2"></i> <?php echo $this->lang->line('lang_vi');?>
          </a>
        </div>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-widget="fullscreen" href="#" role="button">
          <i class="fas fa-expand-arrows-alt"></i>
        </a>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="<?php echo base_url();?>home/" class="brand-link">
      <img src="<?php echo base_url();?>assets/img/small_logo.png" alt="<?php echo $this->lang->line('website_name');?>" class="brand-image img-circle elevation-3" style="opacity: .8">
      <span class="brand-text font-weight-light"><?php echo $this->lang->line('website_name');?></span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="<?php echo base_url();?>assets/dist/img/avatar5.png" class="img-circle elevation-2" alt="<?php echo $this->session->userdata('member_username');?>">
        </div>
        <div class="info">
          <a href="<?php echo base_url();?>profile/" class="d-block"><?php echo $this->session->userdata('member_username');?></a>
        </div>
      </div>

      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
		  <li class="nav-item">
            <a href="<?php echo base_url();?>home/" class="nav-link">
              <i class="nav-icon fas fa-home"></i>
              <p>
                <?php echo $this->lang->line('menu_home');?>
              </p>
            </a>
          </li>	   
		  <li class="nav-item">
            <a href="<?php echo base_url();?>profile/" class="nav-link <?php echo (($this->uri->segment(1) == 'profile') ? 'active' : '');?>">
              <i class="nav-icon fas fa-address-card"></i>
              <p>
                <?php echo $this->lang->line('hf_profile');?>
              </p>
            </a>
          </li>	  
		  <li class="nav-item">
            <a href="<?php echo base_url();?>register/" class="nav-link <?php echo (($this->uri->segment(1) == 'register') ? 'active' : '');?>">
              <i class="nav-icon fas fa-user-plus"></i>
              <p>
                <?php echo $this->lang->line('hf_registration');?>
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="<?php echo base_url();?>reinvest/" class="nav-link <?php echo (($this->uri->segment(1) == 'reinvest') ? 'active' : '');?>">
              <i class="nav-icon fas fa-cubes"></i>
              <p>
                <?php echo $this->lang->line('hf_reinvest');?>
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="<?php echo base_url();?>insurance/" class="nav-link <?php echo (($this->uri->segment(1) == 'insurance') ? 'active' : '');?>">
              <i class="nav-icon fas fa-user-shield"></i>
              <p>
                <?php echo $this->lang->line('hf_insurance');?>
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="<?php echo base_url();?>missbet/" class="nav-link <?php echo (($this->uri->segment(1) == 'missbet') ? 'active' : '');?>">
              <i class="nav-icon fas fa-times"></i>
              <p>
                <?php echo $this->lang->line('hf_miss_bet');?>
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="<?php echo base_url();?>topup/" class="nav-link <?php echo (($this->uri->segment(1) == 'topup') ? 'active' : '');?>">
              <i class="nav-icon fas fa-dollar-sign"></i>
              <p>
                <?php echo $this->lang->line('hf_topup');?>
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="<?php echo base_url();?>transfer/" class="nav-link <?php echo (($this->uri->segment(1) == 'transfer') ? 'active' : '');?>">
              <i class="nav-icon fas fa-share"></i>
              <p>
                <?php echo $this->lang->line('hf_transfer');?>
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="<?php echo base_url();?>convert/" class="nav-link <?php echo (($this->uri->segment(1) == 'convert') ? 'active' : '');?>">
              <i class="nav-icon fas fa-retweet"></i>
              <p>
                <?php echo $this->lang->line('hf_convert');?>
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="<?php echo base_url();?>withdrawal/" class="nav-link <?php echo (($this->uri->segment(1) == 'withdrawal') ? 'active' : '');?>">
              <i class="nav-icon fas fa-coins"></i>
              <p>
                <?php echo $this->lang->line('hf_withdrawal');?>
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="<?php echo base_url();?>network/" class="nav-link <?php echo (($this->uri->segment(1) == 'network') ? 'active' : '');?>">
              <i class="nav-icon fas fa-network-wired"></i>
              <p>
                <?php echo $this->lang->line('hf_network');?>
              </p>
            </a>
          </li>
		  <li class="nav-item" style="display: none;">
            <a href="<?php echo base_url();?>game/" class="nav-link <?php echo (($this->uri->segment(1) == 'game') ? 'active' : '');?>">
              <i class="nav-icon fas fa-gamepad"></i>
              <p>
                <?php echo $this->lang->line('home_game');?>
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="<?php echo base_url();?>income/" class="nav-link <?php echo (($this->uri->segment(1) == 'income') ? 'active' : '');?>">
              <i class="nav-icon fas fa-chart-pie"></i>
              <p>
                <?php echo $this->lang->line('home_income');?>
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="<?php echo base_url();?>announcement/" class="nav-link <?php echo (($this->uri->segment(1) == 'announcement') ? 'active' : '');?>">
              <i class="nav-icon fas fa-bullhorn"></i>
              <p>
                <?php echo $this->lang->line('home_announcement');?>
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="<?php echo base_url();?>logout/" class="nav-link">
              <i class="nav-icon fas fa-cog"></i>
              <p>
                <?php echo $this->lang->line('menu_logout');?>
              </p>
            </a>
          </li>
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">