<?php  
$branch_data = @$this->db->select("*")->where("id",$this->user_model->getBranch())->where("is_delete",0)->get("branch")->result_array()[0];
$branch_name = $branch_data['name'];
$branch_title = empty($branch_data['name'])?"Prudmac":$branch_data['name'];
$branch_logo = $branch_data['b_logo'];
?>
<!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">
    <link rel="shortcut icon" type="image/x-icon" href="<?php echo base_url(); ?>assets/images/misklogo.jpg">
     <link rel="stylesheet" href="<?php echo base_url(); ?>assets/styles/kendo.common.min.css" />
    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/styles/kendo.default.min.css" />
    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/styles/kendo.default.mobile.min.css" />

    <title><?php echo $branch_title; ?> | Prudmac</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">
    <!-- 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">
    <!-- jVectorMap -->
    <link href="<?php echo base_url(); ?>assets/css/maps/jquery-jvectormap-2.0.3.css" rel="stylesheet"/>
    <link href="<?php echo base_url(); ?>assets/css/style.css" rel="stylesheet"/>
    
    <!-- bootstrap-toggle-master -->
    <link href="<?php echo base_url(); ?>assets/vendors/bootstrap-toggle-master/css/bootstrap2-toggle.min.css" rel="stylesheet">
    

    <!-- Custom Theme Style -->
    <link href="<?php echo base_url(); ?>assets/build/css/custom.min.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>assets/css/jquery-customselect.css" rel="stylesheet">
<!--  -->
<!--Import Google Icon Font-->
    <link href='http://fonts.googleapis.com/css?family=Lato&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css'>
    
    <!--Import Multi Step Indicator css-->
    <link href="<?php echo base_url();?>assets/formwizard/css/gsi-step-indicator.min.css" rel="stylesheet" />
      <link href="<?php echo base_url();?>assets/multi_select/jquery.multiselect.css" rel="stylesheet" />
    <!--Import  Step Form Wizard css-->
    <link href="<?php echo base_url();?>assets/formwizard/css/tsf-step-form-wizard.min.css" rel="stylesheet" />
    <!--Import  demo css-->
    <link href="<?php echo base_url();?>assets/formwizard/css/demo.min.css" rel="stylesheet" />

    <!--Select2 css-->
    <link href="<?php echo base_url();?>assets/css/select2.min.css" rel="stylesheet" />

    <link href="<?php echo base_url();?>assets/formwizard/plugin/parsley/css/parsley.min.css" rel="stylesheet" />

    <!-- Jquery UI-daterangepicker css-->
    <link href="<?php echo base_url(); ?>assets/vendors/datepicker/jquery-ui.min.css" rel="stylesheet" />

    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/multi_select/jquery.multiselect.css">
    <link rel="stylesheet" href="<?php echo base_url(); ?>assets/template.css">
    <!-- Jquery -->
    <script src="<?php echo base_url(); ?>assets/vendors/jquery/dist/jquery.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/multi_select/jquery.multiselect.js"></script>
    <script src="<?php echo base_url(); ?>assets/ckeditor/ckeditor.js"></script>
    <script src="<?php echo base_url(); ?>assets/ckeditor/plugins/ckeditor_wiris/integration/WIRISplugins.js?viewer=image"></script>
    <script src="<?php echo base_url(); ?>assets/ckeditor/samples/js/ck_init.js"></script>
    <style>
        #cke_editor {
          display:none !important;
        }
/*#sidebar {*/
/* //   width: 230px;*/
/*    background: #1B4B84;*/
/*    height: 100%;*/
/*    font-size: 13px;*/
/*    font-weight: 300;*/
/*}*/
/*.ani-width {*/
/*    transition: width 70ms;*/
/*}*/
/*.box-content {*/
/*    display: table-cell;*/
/*    vertical-align: top;*/
/*    height: 100%;*/
/*    float: none;*/
/*    overflow-x: hidden;*/
/*}*/

/*#sidebar-scroll{*/
/*   // height: 406px;*/
/*    position: relative;*/
/*    overflow: visible;*/
/*}*/
/*.mCustomScrollbar {*/
/*    -ms-touch-action: pinch-zoom;*/
/*    touch-action: pinch-zoom;*/
/*}*/

/*html {*/
/*    overflow: scroll;*/
/*    overflow-x: hidden;*/
/*}*/
/*::-webkit-scrollbar {*/
    width: 0px;  /* remove scrollbar space */
    background: transparent;  /* optional: just make scrollbar invisible */
/*}*/
/* optional: show position indicator in red */
/*::-webkit-scrollbar-thumb {*/
/*    background: #FF0000;*/
/*}*/

    </style>
    <script>
    var jq = jQuery.noConflict();
     jq(document).ready(function(){
            jq(document).ajaxStart(function() {
                jq('#ajaxload').show();
            });
            jq(document).ajaxStop(function() {
                 jq('#ajaxload').hide();
                 setTimeout(function() {
                   com.wiris.js.JsPluginViewer.parseElement(jq('body')[0]);
                 }, 1001);
            });
      });
    </script>
<!--  -->
  </head>

  <body class="nav-md" id="main_frame">
     <div id="editor" class="hidden" >
       
    </div> 
    <div class="container body">
      
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view ">
            <div class="navbar nav_title" style="border: 0;">
              <a href="<?php echo base_url(); ?>home" class="site_title">
                <?php if($this->user_model->is_super()){ ?>
                
                <span>Prudmac</span>
                <?php }else{ ?>
                <img style="width:50px;" src="<?php echo base_url().$branch_logo; ?>" />
                <span style="font-size:15px;"><small><?php echo $this->user_model->limitText($branch_name,25,false); ?></small></span>
                <?php } ?>
              </a>
            </div>

            <div class="clearfix"></div>

            <br />
            

