<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title><?php echo $site_title.' - '.$page_title;?></title>

    <!-- Bootstrap -->
    <link href="<?php echo base_url('assets');?>/vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="<?php echo base_url('assets');?>/vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="<?php echo base_url('assets');?>/vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- iCheck -->
    <link href="<?php echo base_url('assets');?>/vendors/iCheck/skins/flat/green.css" rel="stylesheet">
    <!-- bootstrap-progressbar -->
    <link href="<?php echo base_url('assets');?>/vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
    <!-- JQVMap -->
    <link href="<?php echo base_url('assets');?>/vendors/jqvmap/dist/jqvmap.min.css" rel="stylesheet"/>
    
    <?php 
	if(isset($css_scripts)){ 
            foreach($css_scripts as $css){
    ?>
    	<link href="<?=site_url('assets/'.$css.'.css');?>" rel="stylesheet" type="text/css" />
    <?php
            } //endforeach
	} //endif
    ?>

    <!-- Custom Theme Style -->
    <link href="<?php echo base_url('assets');?>/build/css/custom.css" rel="stylesheet">
  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <!-- page content -->
        <div class="left_col" role="main">
            <?php $this->load->view($page); ?>
        </div>
        <!-- /page content -->
      </div>
    </div>

    <!-- Javascripts -->
    <?php 
	if(isset($js_scripts)){ 
            foreach($js_scripts as $js){
    ?>
    	<script src="<?=base_url('assets/'.$js.'.js');?>"></script>
    <?php
            } //endforeach
	} //endif
    ?>
        
    <!-- Custom Theme Scripts -->
    <script src="<?php echo base_url('assets');?>/build/js/custom.min.js"></script>
        
    <?php (isset($js_page) ? $this->load->view($js_page) : NULL);?>
  </body>
</html>
