<!DOCTYPE html>
<html lang="en">
	<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		
		<title>Dashboard : HHDL Admin</title>
		<meta name="description" content="Static &amp; Dynamic Tables" />

		<meta name="description" content="overview &amp; stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="<?php echo base_url();?>assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="<?php echo base_url();?>assets/font-awesome/4.2.0/css/font-awesome.min.css" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
		<!-- page specific plugin styles -->

		<!-- text fonts -->
		<link href="https://fonts.googleapis.com/css2?family=Noto+Serif&display=swap" rel="stylesheet"> 

		<!-- ace styles -->
		<link rel="stylesheet" href="<?php echo base_url();?>assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
		<link rel="stylesheet" href="<?php echo base_url();?>assets/css/jquery-ui.custom.min.css" />
		<link rel="stylesheet" href="<?php echo base_url();?>assets/css/font-awesome.min.css" />
		<link rel="stylesheet" href="<?php echo base_url();?>assets/css/chosen.min.css" />
		<link rel="stylesheet" href="<?php echo base_url();?>assets/css/datepicker.min.css" />
		<link rel="stylesheet" href="<?php echo base_url();?>assets/css/bootstrap-timepicker.min.css" />
		<link rel="stylesheet" href="<?php echo base_url();?>assets/css/daterangepicker.min.css" />
		<link rel="stylesheet" href="<?php echo base_url();?>assets/css/bootstrap-datetimepicker.min.css" />
		<link rel="stylesheet" href="<?php echo base_url();?>assets/css/colorpicker.min.css" />
		<link rel="stylesheet" href="<?php echo base_url();?>assets/fonts/fonts.googleapis.com.css" />
		<link rel="stylesheet" href="<?php echo base_url();?>assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
        <link rel="stylesheet" href="<?php echo base_url();?>assets/css/dataTables.min.css" />
        <link rel="stylesheet" href="<?php echo base_url();?>assets/css/buttons.dataTables.min.css" />
        <link rel="stylesheet" href="<?php echo base_url();?>assets/css/bdlance_style.css" />

        <style>
            @media print {
                row{ display:none; }
            }
            body{
                font-family: 'Noto Serif', serif;
            }
        </style>

		<script src="<?php echo base_url();?>assets/js/ace-extra.min.js"></script>
		<script src="<?php echo base_url();?>assets/jsnew/jquery-2.1.4.min.js"></script>

		<script type="text/javascript">
            function printDiv(divName) {
                var printContents = document.getElementById(divName).innerHTML;
                var originalContents = document.body.innerHTML;
                document.body.innerHTML = printContents;
                window.print();
                document.body.innerHTML = originalContents;
            }



            function printDivmulti(divName,divName2) {
                var printContents = document.getElementById(divName).innerHTML;
                var printContents2 = document.getElementById(divName2).innerHTML;
                var originalContents = document.body.innerHTML;
                document.body.innerHTML = printContents+'<br/>'+printContents2;
                //document.body.innerHTML = printContents2;
                window.print();
                document.body.innerHTML = originalContents;
            }

        </script>

 <script type="text/javascript">
      function updateNotification(a) {
       		//var id = $("#updateNot1").val();
       		 var id=a;
              //alert(id);

       $.ajax({
           type: "POST",
           url: "<?php echo admin_url() ?>/notificationsetup/update_notification",
           dataType: "html",
           data: "id=" + id,
            beforeSend: function(){
           //// $('.city_list').empty().append("<div><img  style=\"padding-top:10px;padding-left:35px;\" src=\""+site_url_path+"img/pre-load.gif\" title=\"loading..\"></div>");
            },
           success: function(msg) {
               //$('.add_list').empty();
               //$('#updateNot').empty().append(msg);

           }
       });
   }
  </script>
  <script type="text/javascript">
      function ConfirmDelete(){
          var alert = confirm ('Are you sure you want to delete this Data');
          if(alert){
              return true ;
          }
          else{
              return false ;
          }

      }
  </script>


        <!--ajax crud option s-->

    <!--<link rel="stylesheet" type="text/css" href="http://ccare.hasanhomesltd.com/assets/ajaxcrud/css/bootstrap.css">-->
    <link rel="stylesheet" type="text/css" href="https://ccare.hasanhomesltd.com/assets/ajaxcrud/css/jquery.dataTables.css">
    <link rel="stylesheet" type="text/css" href="https://ccare.hasanhomesltd.com/assets/ajaxcrud/css/dataTables.bootstrap4.css">
    <style>
    .dataTables_wrapper .dataTables_paginate .paginate_button {
    	box-sizing: border-box;
    	display: inline-block;
    	min-width: 1.5em;
    	padding: 1px;
    	margin-left: 2px;
    	text-align: center;
    	text-decoration: none !important;
    	cursor: pointer;
    	color: #333 !important;
    	border: 1px solid transparent;
    	border-radius: 2px;
    }
    </style>
    
        <!--ajax crud option e-->
	</head>
	<body class="no-skin">
	<div id="navbar" class="navbar navbar-default">
			<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

			<div class="navbar-container" id="navbar-container">
				<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
					<span class="sr-only">Toggle sidebar</span>

					<span class="icon-bar"></span>

					<span class="icon-bar"></span>

					<span class="icon-bar"></span>
				</button>

				<div class="navbar-header pull-left">
					<a href="<?php echo admin_url()?>/home" class="navbar-brand">
						<small>
							<i class="ace-icon fa fa-home home-icon"></i>
							Hasan Homes & Developers ltd. >> Admin
						</small>
					</a>
				</div>
				<?php $adminLebel=$this->session->userdata('admin_level');?>
				<div class="navbar-buttons navbar-header pull-right" role="navigation">
					<ul class="nav ace-nav">
					<?php if($adminLebel==1 || $adminLebel==3) {?>
						<li class="green">
							<a href="javascript:void(0);" data-toggle="dropdown" class="dropdown-toggle" id="updateNot1"  onClick="updateNotification('<?php echo $this->session->userdata('employeeId');?>')">
								<i class="ace-icon fa fa-bell icon-animated-bell"></i>
                                 <span class="badge badge-important">
                                 		<?php
                                 			$notify=getNotification();
                                 			if(!empty($notify)){echo count($notify);}?></span>
							</a>

							<ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
								<li class="dropdown-header">

									<i class="ace-icon fa fa-exclamation-triangle"></i>
									<?php if(!empty($notify)){echo count($notify);}?> Notification
								</li>

								<li class="dropdown-content">
									<ul class="dropdown-menu dropdown-navbar">
                                                                            <?php
                                                                                //echo $count=count(getNotification());
                                                                                if(!empty($notify)){ foreach ($notify as $value)
                                                                                {
                                                                                ?>

										<li>
											<a href="#" class="clearfix">
												<span class="msg-body">
													<span class="msg-title">
                                                     <!--<a href="<?php echo admin_Url()?>/notificationsetup/update_notification/<?php echo $value['id'];?>"> </a>-->
                                                     <span class="blue"><p style="color:green;"><?php if(!empty($value['sender'])){ echo $value['sender'];}?>:</p></span>
                                                      <p style="color:red;"><b> <?php if(!empty($value['notification'])){ echo $value['notification'];}?></b></p>
													</span>

													<span class="msg-time">
														<i class="ace-icon fa fa-clock-o"></i>
                                                         <b>Date:&nbsp;<?php echo $value['date'];?></b>
													</span>
												</span>
											</a>
										</li>
                                                                            <?php }}?>
									</ul>
								</li>
							</ul>
						</li>
						<?php } ?>
						<li class="light-blue">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
                                                            <!-- <img class="nav-user-photo" src="<?php //echo base_url();?>assets/avatars/user.jpg" alt="Jason's Photo" /> -->
								<span class="user-info">
									<small>Welcome</small>
									<?php echo $this->session->userdata('admin_name'); ?>
								</span>

								<i class="ace-icon fa fa-caret-down"></i>
							</a>

							<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">

								<li>
									<a href="<?php echo admin_Url()?>/employeesetup/view_profile/<?php echo $this->session->userdata('employeeId');?>">
										<i class="ace-icon fa fa-user"></i>
										Profile
									</a>
								</li>

								<li>
									<a href="<?php echo admin_Url()?>/employeesetup/edit_employee/<?php echo $this->session->userdata('employeeId');?>/<?php echo "employeeChangeOwnProfile";?>">
										<i class="ace-icon fa fa-user" ></i>
										Edit Profile
									</a>
								</li>

								<li>
									<a href="<?php echo admin_Url() ?>/newpasswordsetup">
										<i class="ace-icon fa fa-cog"></i>
										Change Password
									</a>
								</li>
								<li>
									<a href="<?php echo admin_Url() ?>/logout">
										<i class="ace-icon fa fa-power-off"></i>
										Logout
									</a>
								</li>

								<li>
									 <a href="<?php echo admin_Url() ?>/balancesetup" >
										 <i class="menu-icon fa fa-list"></i>
										Balance
									</a>
								</li>

								<li class="divider"></li>


								<li>
									 <a href="<?php echo admin_url()?>/landcustomerRegistration/ViewLandCustomer">
										 <i class="menu-icon fa fa-list"></i>
										View  Customer
									</a>
								</li>
								  <?php if($adminLebel==1 || $adminLebel==3){?>
								<li>
									  <a href="<?php echo admin_url()?>/employeesetup/viewEmployeeList">
										 <i class="menu-icon fa fa-list"></i>
										View User
									</a>
								</li>
								<?php }?>

								<li class="divider"></li>
								<li>
									 <a href="<?php echo admin_url()?>/extraincomesetup/searchBydate">
										 <i class="menu-icon fa fa-list"></i>
										Income Report
									</a>
								</li>
								<li>
									  <a href="<?php echo admin_url()?>/expensesetup/searchBydate">
									 <i class="menu-icon fa fa-list"></i>
										Expense Report
									</a>
								</li>
								<li class="divider"></li>
								<li>
									    <a href="<?php echo admin_url()?>/unpaidCommission/view_unpaidCommission">
										 <i class="menu-icon fa fa-list"></i>
										View Unpaid Commission
									</a>
								</li>
								<li>
									 <a href="<?php echo admin_url()?>/commissionreferencesetup/view_CommissionReference">
										 <i class="menu-icon fa fa-list"></i>
										View Commission Reference
									</a>
								</li>

								<li class="divider"></li>
							</ul>
						</li>
					</ul>
				</div>
			</div><!-- /.navbar-container -->
        </div>