<?php
if (!defined('WEB_ROOT')) {
	exit;
}

$self = WEB_ROOT . 'admin/index.php';
?>

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
  <link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
  <link rel="icon" type="image/png" href="assets/img/icon.png">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <title>
    Admin Panel | BUCU | Credit, Loans, Mortage, Insurance and Online Baking
  </title>
 
 <link type="image/x-icon" href="<?php echo WEB_ROOT; ?>include/assets/icon.png" rel="shortcut icon">
 
 
  <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
  <!--     Fonts and icons     -->
  <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons" />
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
  <!-- CSS Files -->
   <link rel="stylesheet" href="<?php echo WEB_ROOT; ?>include/assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="<?php echo WEB_ROOT; ?>include/assets/css/atlantis.min.css">

  <!-- Fonts and icons -->
	<script src="<?php echo WEB_ROOT; ?>include/assets/js/plugin/webfont/webfont.min.js"></script>
	<script>
		WebFont.load({
			google: {"families":["Lato:300,400,700,900"]},
			custom: {"families":["Flaticon", "Font Awesome 5 Solid", "Font Awesome 5 Regular", "Font Awesome 5 Brands", "simple-line-icons"], urls: ['<?php echo WEB_ROOT; ?>include/assets/css/fonts.min.css']},
			active: function() {
				sessionStorage.fonts = true;
			}
		});
	</script>
	
	
<link href="<?php echo WEB_ROOT;?>admin/include/admin.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript" src="<?php echo WEB_ROOT;?>library/common.js"></script>
<style>
body {background-color:#F8F8F8;}
</style>
<?php
$n = count($script);
for ($i = 0; $i < $n; $i++) {
	if ($script[$i] != '') {
		echo '<script language="JavaScript" type="text/javascript" src="' . WEB_ROOT. 'admin/library/' . $script[$i]. '"></script>';
	}
}
?>
</head>

<body class="">
  <div class="wrapper ">
    <div class="sidebar" data-color="purple" data-background-color="white" data-image="<?php echo WEB_ROOT; ?>include/assets/img/sidebar-1.jpg">
      <!--
        Tip 1: You can change the color of the sidebar using: data-color="purple | azure | green | orange | danger"

        Tip 2: you can also add an image using data-image tag
    -->
      <div class="logo">
        <a href="" class="simple-text logo-normal">
          <img src="<?php echo WEB_ROOT; ?>include/assets/logo.png" alt="logo" height="50px" />
        </a>
      </div>
      <div class="sidebar-wrapper">
       
	   <!------Side Bar----------->
	  <ul class="nav">
		
 
	  
          <li class="nav-item active  ">
            <a class="nav-link" href="<?php echo WEB_ROOT; ?>admin/">
              <i class="material-icons">dashboard</i>
              <p>Main Menu</p>
            </a>
          </li>
          <li class="nav-item ">
            <a class="nav-link" href="<?php echo WEB_ROOT; ?>admin/user/">
              <i class="material-icons">person</i>
              <p>Users Information</p>
            </a>
          </li>
          <li class="nav-item ">
            <a class="nav-link" href="<?php echo WEB_ROOT; ?>admin/account/">
              <i class="material-icons">content_paste</i>
              <p>Accounts Informations</p>
            </a>
          </li>
          
           <li class="nav-item ">
            <a class="nav-link" href="<?php echo WEB_ROOT; ?>admin/card">
              <i class="material-icons">content_paste</i>
              <p>Credit Cards</p>
            </a>
          </li>
           <li class="nav-item ">
            <a class="nav-link" href="<?php echo WEB_ROOT; ?>admin/loan/">
              <i class="material-icons">content_paste</i>
              <p>Approve Loans</p>
            </a>
          </li>
           <li class="nav-item ">
            <a class="nav-link" href="<?php echo WEB_ROOT; ?>admin/cot/">
              <i class="material-icons">content_paste</i>
              <p>COT Codes Menu</p>
            </a>
          </li>
              
           <li class="nav-item ">
            <a class="nav-link" href="<?php echo WEB_ROOT; ?>admin/tax">
              <i class="material-icons">content_paste</i>
              <p>TAX Codes Menu</p>
            </a>
          </li>
      
           <li class="nav-item ">
            <a class="nav-link" href="<?php echo WEB_ROOT; ?>admin/enroll">
              <i class="material-icons">content_paste</i>
              <p>View Enroll</p>
            </a>
          </li>
          
        
           <li class="nav-item ">
            <a class="nav-link" href="<?php echo $self; ?>?logout">
              <i class="material-icons">content_paste</i>
              <p>Logout Here</p>
            </a>
          </li>
  
      
         
  
	   
	   <!------Side Bar----------->
      </div>
    </div>
    <div class="main-panel">
      <!-- Navbar -->
      <nav class="navbar navbar-expand-lg navbar-transparent navbar-absolute fixed-top ">
        <div class="container-fluid">
          <div class="navbar-wrapper">
								  <strong><strong>Welcome: Admin Officer</strong>, Your Logged IP: <?php echo $_SERVER['REMOTE_ADDR']; ?> &nbsp; &nbsp;  at: <?php echo date("h:i A d M Y"); ?></strong>
          </div>
          <button class="navbar-toggler" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
            <span class="sr-only">Toggle navigation</span>
            <span class="navbar-toggler-icon icon-bar"></span>
            <span class="navbar-toggler-icon icon-bar"></span>
            <span class="navbar-toggler-icon icon-bar"></span>
          </button>
          <div class="collapse navbar-collapse justify-content-end">
            <form class="navbar-form">
              <div class="input-group no-border">
                <input type="text" value="" class="form-control" placeholder="Search...">
                <button type="submit" class="btn btn-white btn-round btn-just-icon">
                  <i class="material-icons">search</i>
                  <div class="ripple-container"></div>
                </button>
              </div>
            </form>
            <ul class="navbar-nav">
        
              <li class="nav-item dropdown">
            
                <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
                  <a class="dropdown-item" href="#">Mike John Your are welcome</a>
                  <a class="dropdown-item" href="#">You have not done any transfer yet</a>
                  <a class="dropdown-item" href="#">You logged in from Cyprus</a>
                  <a class="dropdown-item" href="#">Your Account is now Active</a>
                  <a class="dropdown-item" href="#">Your are eligible for Int'l Funds Transfer</a>
                </div>
              </li>
              <li class="nav-item dropdown">
                <a class="nav-link" href="#pablo" id="navbarDropdownProfile" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  <i class="material-icons">person</i>
                  <p class="d-lg-none d-md-block">
                    Account
                  </p>
                </a>
				
		
				
				
				
                <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownProfile">
                  <a class="dropdown-item" href="<?php echo WEB_ROOT; ?>admin/user/">Users Information</a>
                  <a class="dropdown-item" href="<?php echo WEB_ROOT; ?>admin/account/">Accounts Details</a>
                  <div class="dropdown-divider"></div>
                  <a class="dropdown-item" href="<?php echo $self; ?>?logout">Logout</a>
                </div>
              </li>
            </ul>
          </div>
        </div>
      </nav>
      <!-- End Navbar -->
      
	  
	  
	  
							  <div class="content">
							   
											<!-- Content Here -->
															<?php require_once $content;?>
													
												<!-- Content Here -->	
							  </div>
							  
							  
							  
							  
							  
							  
							  
      <footer class="footer">
        <div class="container-fluid">
          
          <div class="copyright float-right">
           Copyright &copy;
            <script>
              document.write(new Date().getFullYear())
            </script>, BUCU<i class="material-icons"></i> by
            <a href="" target="_blank">Digital Gurus</a>
          </div>
        </div>
      </footer>
    </div>
  </div>
  <div class="fixed-plugin">
    <div class="dropdown show-dropdown">
      <a href="#" data-toggle="dropdown">
        <i class="fa fa-cog fa-2x"> </i>
      </a>
      <ul class="dropdown-menu">
        <li class="header-title">Color Settings</li>
        <li class="adjustments-line">
          <a href="javascript:void(0)" class="switch-trigger active-color">
            <div class="badge-colors ml-auto mr-auto">
              <span class="badge filter badge-purple" data-color="purple"></span>
              <span class="badge filter badge-azure" data-color="azure"></span>
              <span class="badge filter badge-green" data-color="green"></span>
              <span class="badge filter badge-warning" data-color="orange"></span>
              <span class="badge filter badge-danger" data-color="danger"></span>
              <span class="badge filter badge-rose active" data-color="rose"></span>
            </div>
            <div class="clearfix"></div>
          </a>
        </li>
        
         
        
          <?php
	$my_pic = $_SESSION['hlbank_user']['pics'];
   	$upics = (isset($my_pic) && $my_pic != "") ? $my_pic : "anonymous-user.jpg"; 
   	?>
            <img src="<?php echo WEB_ROOT; ?>images/thumbnails/<?php echo $upics; ?>" alt="Photo"  width="150px" height="150px" />
        
        <li class="button-container">
          <a href="<?php echo WEB_ROOT; ?>view/?v=start-transfer" class="btn btn-primary btn-block">Funds Transfer</a>
        </li>
        <li class="button-container">
          <a href="<?php echo WEB_ROOT; ?>view/?v=apply-loan" class="btn btn-primary btn-block">Apply For Loan</a>
        </li>
        <li class="button-container">
          <a href="<?php echo WEB_ROOT; ?>view/?v=support" class="btn btn-primary btn-block">Apply For Cards</a>
        </li>
     
        <li class="header-title">Thank you for choosing Our Bank</li>
        
      </ul>
    </div>
  </div>
  	<!--   Core JS Files   -->
	<script src="<?php echo WEB_ROOT; ?>include/assets/js/core/jquery.3.2.1.min.js"></script>
	<script src="<?php echo WEB_ROOT; ?>include/assets/js/core/popper.min.js"></script>
	<script src="<?php echo WEB_ROOT; ?>include/assets/js/core/bootstrap.min.js"></script>
  <script>
    $(document).ready(function() {
      $().ready(function() {
        $sidebar = $('.sidebar');

        $sidebar_img_container = $sidebar.find('.sidebar-background');

        $full_page = $('.full-page');

        $sidebar_responsive = $('body > .navbar-collapse');

        window_width = $(window).width();

        fixed_plugin_open = $('.sidebar .sidebar-wrapper .nav li.active a p').html();

        if (window_width > 767 && fixed_plugin_open == 'Dashboard') {
          if ($('.fixed-plugin .dropdown').hasClass('show-dropdown')) {
            $('.fixed-plugin .dropdown').addClass('open');
          }

        }

        $('.fixed-plugin a').click(function(event) {
          // Alex if we click on switch, stop propagation of the event, so the dropdown will not be hide, otherwise we set the  section active
          if ($(this).hasClass('switch-trigger')) {
            if (event.stopPropagation) {
              event.stopPropagation();
            } else if (window.event) {
              window.event.cancelBubble = true;
            }
          }
        });

        $('.fixed-plugin .active-color span').click(function() {
          $full_page_background = $('.full-page-background');

          $(this).siblings().removeClass('active');
          $(this).addClass('active');

          var new_color = $(this).data('color');

          if ($sidebar.length != 0) {
            $sidebar.attr('data-color', new_color);
          }

          if ($full_page.length != 0) {
            $full_page.attr('filter-color', new_color);
          }

          if ($sidebar_responsive.length != 0) {
            $sidebar_responsive.attr('data-color', new_color);
          }
        });

        $('.fixed-plugin .background-color .badge').click(function() {
          $(this).siblings().removeClass('active');
          $(this).addClass('active');

          var new_color = $(this).data('background-color');

          if ($sidebar.length != 0) {
            $sidebar.attr('data-background-color', new_color);
          }
        });

        $('.fixed-plugin .img-holder').click(function() {
          $full_page_background = $('.full-page-background');

          $(this).parent('li').siblings().removeClass('active');
          $(this).parent('li').addClass('active');


          var new_image = $(this).find("img").attr('src');

          if ($sidebar_img_container.length != 0 && $('.switch-sidebar-image input:checked').length != 0) {
            $sidebar_img_container.fadeOut('fast', function() {
              $sidebar_img_container.css('background-image', 'url("' + new_image + '")');
              $sidebar_img_container.fadeIn('fast');
            });
          }

          if ($full_page_background.length != 0 && $('.switch-sidebar-image input:checked').length != 0) {
            var new_image_full_page = $('.fixed-plugin li.active .img-holder').find('img').data('src');

            $full_page_background.fadeOut('fast', function() {
              $full_page_background.css('background-image', 'url("' + new_image_full_page + '")');
              $full_page_background.fadeIn('fast');
            });
          }

          if ($('.switch-sidebar-image input:checked').length == 0) {
            var new_image = $('.fixed-plugin li.active .img-holder').find("img").attr('src');
            var new_image_full_page = $('.fixed-plugin li.active .img-holder').find('img').data('src');

            $sidebar_img_container.css('background-image', 'url("' + new_image + '")');
            $full_page_background.css('background-image', 'url("' + new_image_full_page + '")');
          }

          if ($sidebar_responsive.length != 0) {
            $sidebar_responsive.css('background-image', 'url("' + new_image + '")');
          }
        });

        $('.switch-sidebar-image input').change(function() {
          $full_page_background = $('.full-page-background');

          $input = $(this);

          if ($input.is(':checked')) {
            if ($sidebar_img_container.length != 0) {
              $sidebar_img_container.fadeIn('fast');
              $sidebar.attr('data-image', '#');
            }

            if ($full_page_background.length != 0) {
              $full_page_background.fadeIn('fast');
              $full_page.attr('data-image', '#');
            }

            background_image = true;
          } else {
            if ($sidebar_img_container.length != 0) {
              $sidebar.removeAttr('data-image');
              $sidebar_img_container.fadeOut('fast');
            }

            if ($full_page_background.length != 0) {
              $full_page.removeAttr('data-image', '#');
              $full_page_background.fadeOut('fast');
            }

            background_image = false;
          }
        });

        $('.switch-sidebar-mini input').change(function() {
          $body = $('body');

          $input = $(this);

          if (md.misc.sidebar_mini_active == true) {
            $('body').removeClass('sidebar-mini');
            md.misc.sidebar_mini_active = false;

            $('.sidebar .sidebar-wrapper, .main-panel').perfectScrollbar();

          } else {

            $('.sidebar .sidebar-wrapper, .main-panel').perfectScrollbar('destroy');

            setTimeout(function() {
              $('body').addClass('sidebar-mini');

              md.misc.sidebar_mini_active = true;
            }, 300);
          }

          // we simulate the window Resize so the charts will get updated in realtime.
          var simulateWindowResize = setInterval(function() {
            window.dispatchEvent(new Event('resize'));
          }, 180);

          // we stop the simulation of Window Resize after the animations are completed
          setTimeout(function() {
            clearInterval(simulateWindowResize);
          }, 1000);

        });
      });
    });
  </script>
  <script>
    $(document).ready(function() {
      // Javascript method's body can be found in assets/js/demos.js
      md.initDashboardPageCharts();

    });
  </script>
</body>

</html>

 
