


	 <link href="<?php echo base_url(); ?>assets/select/chosen.min.css" rel="stylesheet" media="screen">
	
		   
		   		   <script src="<?php echo base_url(); ?>assets/select/chosen.jquery.min.js"></script>

				   <style>
.grid-container {
  display: grid;
  grid-template-columns: auto auto auto ;
    background-color:#ff5733  ;
color: white;
  padding: 10px;
 
  border: 1px solid rgba(50, 50, 5, 5);

 
}
.grid-item {
 
  padding:25px;

  text-align: left;
  		font-style: normal;font-size: 1.5em;

}


	


</style>
	
        <script>
        $(function() {
<!--             $(".datepicker").datepicker(); -->
<!--             $(".uniform_on").uniform() -->;
            $(".chzn-select").chosen();
   <!--          $('.textarea').wysihtml5(); -->

        });
        </script>
           <script type="text/javascript">
  
  
		 $(document).on("click", "#managebtncheckout", function()
        {
          var roomidentifier = $(this).data('id');
		  $("#roomidentifier").val(roomidentifier); 
		  
		    var houseno2 = $(this).data('houseno');
		  $("#houseno2").val(houseno2); 
		     var plotno2 = $(this).data('plotno');
		  $("#plotno2").val(plotno2); 
		   
        });
		
		
		 $(document).on("click", "#managebtndelete", function()
        {
          var itemid = $(this).data('id');
		  $("#roomid").val(itemid); 
		  
		  
		   
		   
        });
		
		
    function selectAllCheckBoxes(obj){
        $('input:checkbox:not(:disabled).checkBoxInLoop').prop('checked', jQuery(obj).prop('checked'));
    }

    function unselectCheckBoxUnik(){

        /*first you verify if the quantity of checkboxes equals number of checkboxes*/
        a = $('input:checkbox:not(:disabled).checkBoxInLoop:checked').size();
        b = $('input:checkbox:not(:disabled).checkBoxInLoop').size();

        /*if equals, mark a checkBoxUnik*/
        ((a == b)? $('#checkBoxUnik').prop("checked", true) : $('#checkBoxUnik').prop("checked", false));
    }

		
    </script>     

      




<ul class="nav nav-tabs bordered">
			<li class="active">
            	<a href="#add" data-toggle="tab"><i class="entypo-menu"></i> 
                    	</a></li>
						
							<li>
            	<a href="#list" data-toggle="tab"><i class="entypo-plus-circled"></i>
			
				 <a href="<?php echo base_url(); ?>admin/viewpallmyplots">	Go back</a>
                    	</a></li>
			
							<li>
        <a data-toggle='modal' data-target='#Checkout' class="btn btn-warning">Bulk check out</a>

                    	</li>
						<li>
						<!--
            				 <a class="btn btn-success"href="<?php echo base_url(); ?>admin/viewprndingmoneyreceived">	Pending MPESA</a>
-->
                    	</li>
		</ul>
    	<!------CONTROL TABS END------>
        
		
		<?php
					echo $this->session->flashdata('deletemsg'); 
		   $session_data = $this->session->userdata('logged_in');

   
 	$data['id'] = $session_data['id'];
        
		 $userid = $data['id'];
$data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];
		 $data['usertype'] = $session_data['usertype'];
	 $usertype = $data['usertype'];	
	      $viewhouse=$this->usermodel->populatuserpermissionsdataarray('accomodation','viewhouse',$userid);
	      $viewroomcleaned=$this->usermodel->populatuserpermissionsdataarray('accomodation','viewroomcleaned',$userid);

	      $checkin=$this->usermodel->populatuserpermissionsdataarray('accomodation','checkin',$userid);

	      $config=$this->usermodel->populatuserpermissionsdataarray('accomodation','config',$userid);

	      $postexpense=$this->usermodel->populatuserpermissionsdataarray('accomodation','postexpense',$userid);


	      $bankdeposits=$this->usermodel->populatuserpermissionsdataarray('accomodation','bankdeposits',$userid);


	      $housekeeping=$this->usermodel->populatuserpermissionsdataarray('accomodation','housekeeping',$userid);


	      $dailysales=$this->usermodel->populatuserpermissionsdataarray('accomodation','dailysales',$userid);


	      $customerregister=$this->usermodel->populatuserpermissionsdataarray('accomodation','customerregister',$userid);


	      $managehotel=$this->usermodel->populatuserpermissionsdataarray('accomodation','managehotel',$userid);


	      $assignrooms=$this->usermodel->populatuserpermissionsdataarray('accomodation','assignrooms',$userid);


	      $dailypayments=$this->usermodel->populatuserpermissionsdataarray('accomodation','dailypayments',$userid);


	      $dailycollections=$this->usermodel->populatuserpermissionsdataarray('accomodation','dailycollections',$userid);


	      $advancebooking=$this->usermodel->populatuserpermissionsdataarray('accomodation','advancebooking',$userid);


	      $managecustomer=$this->usermodel->populatuserpermissionsdataarray('accomodation','managecustomer',$userid);



	      $viewreports=$this->usermodel->populatuserpermissionsdataarray('accomodation','viewreports',$userid);


			?>
            <!----TABLE LISTING STARTS-->
          	<div class="row">

				
     	<div class="col-md-2">
				<div id="sidebar" class="hidden-print minibar ">
			
			<ul>
						
			 <li> <a id="non-printable"  class="btn btn-default" href="<?php echo base_url(); ?>admin/dailypayment">Daily payments</a></li>













		
<?php
if( $checkin==true){
 ?>
	 <li> <a id="non-printable"  class="btn btn-default" href="<?php echo base_url(); ?>admin/viewpallmyplots">All Rooms (Buttons)</a></li>

<?php	
}
 ?>
 
  <?php
if($bankdeposits==true){
 ?>
				<li>   <a id="non-printable"  class="btn btn-default" href="<?php echo base_url(); ?>user/viewbanks">Make Deposits</a> </li>

<?php	
}
 ?>
 
 
 
 
 <?php
if( $postexpense==true){
 ?>
				<li> <a id="non-printable"   class="btn btn-default" href="<?php echo base_url(); ?>user/viewexpenses"> Post expenses</a></li>

<?php	
}
 ?>


<?php
if( $viewroomcleaned==true){
 ?>
		 		<li> <a id="non-printable"   class="btn btn-default" href="<?php echo base_url(); ?>admin/viewhousekeeping"> View Rooms Cleaned</a></li>

<?php	
}
 ?>
 
  <?php
if( $housekeeping==true){
 ?>
	 	<!--
			<li> <a id="non-printable"   class="btn btn-default" href="<?php echo base_url(); ?>admin/viewpallmyroomstoclean"> House Keeping</a></li>
-->
<?php	
}
 ?>
 	

<?php
if( $dailysales==true){
 ?>

<li> <a id="non-printable"  class="btn btn-default"   href="<?php echo base_url(); ?>admin/salesreceipts"> Sales Receipts </a></li>

				<li> <a id="non-printable"  class="btn btn-default"   href="<?php echo base_url(); ?>admin/dailypayment"> Daily Payment </a></li>

<?php	
}
 ?>
 <?php
if( $customerregister==true){
 ?>
		<li> <a id="non-printable"  class="btn btn-default"   href="<?php echo base_url(); ?>admin/customerregister"> View Customer Register</a></li>

<?php	
}
 ?>
 <?php
if( $managehotel==true){
 ?>

      		    <li> <a id="non-printable"  class="btn btn-default"   href="<?php echo base_url(); ?>admin/viewallplots"> Manage  Hotel </a></li>
              <li> <a id="non-printable"  class="btn btn-default"  href="<?php echo base_url(); ?>admin/searchhouse">  Rooms Detailed</a></li>

<?php	
}
 ?>
 
 
 												 	<?php

	
 if( $viewhouse==true){
	 ?>



	 	<?php	

 }
  ?>
												  

		
 
 
 
 
 <?php
if( $dailypayments==true){
 ?>

<?php	
}
 ?>




 <?php
if( $dailycollections==true){
 ?>
 <!--
				<li>   <a id="non-printable"  class="btn btn-default" href="<?php echo base_url(); ?>user/viewmydailycollections">Daily collections</a> </li>
-->
<?php	
}
 ?>
 <?php
if( $advancebooking==true){
 ?>
 <!---
				<li> <a id="non-printable"  class="btn btn-default"  href="<?php echo base_url(); ?>admin/viewalladvance">Advance Bookings </a></li>  
-->
<?php	
}
 ?>

<?php
if( $managecustomer==true){
 ?>
  <!--
				 <li> <a id="non-printable"  class="btn btn-default"  href="<?php echo base_url(); ?>admin/viewalltenant">Manage Customer </a></li>  
-->
<?php	
}
 ?>
	
<?php
if( $viewreports==true){
	
 ?>
 				<li>   <a id="non-printable"  class="btn btn-default" href="<?php echo base_url(); ?>admin/salesreceipts">Sales Receipts</a> </li>

				<!--
				<li> <a id="non-printable"  class="btn btn-default"   href="<?php echo base_url(); ?>admin/dailypayment"> Daily Payment </a></li>
-->
     <li> <a id="non-printable"  class="btn btn-default"  href="<?php echo base_url(); ?>admin/searchbalance">Detailed sales report  </a></li> 

<?php	
}
 ?>
	
<?php
if( $config==true){
 ?>

   				<li> <a id="non-printable"   class="btn btn-default" href="<?php echo base_url(); ?>admin/viewallpaymentcharge"> payments  Charges</a></li>
<li> <a id="non-printable"  class="btn btn-default"  href="<?php echo base_url(); ?>admin/searchhouse">General Search </a></li>

<?php	
}
 ?>
	

					
			</ul>
		</div>
	</div>		
			<div class="col-md-10">


   


			<div class="grid-container">

     
			<div class="panel-body">

				<div class="danger" >
								<div class="widget-content nopadding table_holder table-responsive" >				

						<CENTER>				
				<U>WELCOME TO MAGEMENT WINDOW.</U><BR>
				PLEASE ENSURE THAT THE LODGE IS RUNNING SMOOTHLY
						</CENTER>	


				
 <ul class="grid-item" >
 
  <li id="lists" >
  Post deposit slips immediately after banking						

  </li>
  <li>
   Post expenses  immediately after buying the items. Ensure receipts are filed for for verification later

    </li>
    <li>
View and and print  Rooms cleaned report to confirm that all rooms sold have  actually been cleaned.

  
  </li>
View customer Register regularly and print as when required.

    <li>
View the deposited sales  Receipts report and compare with rooms cleaned reports

  
  </li>  
  <li>
View rooms detail screen periodically and confirm rooms shows as vacnt are actually so.

  </li>

    <li>
 Reconcile your cash/banking  by viewing or printing the sales receipts and expenses reports cash daily.	

  </li>  


</ul> 
				</div>
		
			</DIV>
		</DIV>


       </div>   
			 
			 

</div>






 <div id="myCheckout" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Check Out</h4>
      </div>
      <div class="modal-body">
        <h3>Are you sure you want to Check out this customer? </h3>
      </div>
      <div class="modal-footer">
	  	

     
		<?PHP
				$session_data = $this->session->userdata('adminlogged_in');
 echo $this->session->flashdata('deletemsg'); 

		
                 echo form_open('admin/myupdatechekout' , array('class' => 'form-horizontal ', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>  								  		

 <input type="hidden" id="table"name="table" class="table" placeholder="bookroom" value="bookroom">
 <input type="hidden" id="view2"name="view2" class="view2" placeholder="view2" value="">
 <input type="hidden" id="roomidentifier" name="roomidentifier" class="roomidentifier" placeholder="roomidentifier" value="">

 
 	<select class="form-control" name="status" required>
	<option  value=""  >--Select status-</option>
   <option value="vacant" >Vacant</option>
									  
 <option value="freezed"  selected="selected">Freezed</option>
																 									   <option value="Pending">Pending</option>



	
</select>
 <input type="hidden" id="view"name="view" class="view" placeholder="view" value="admin/viewpallmyplots">
 <input type="hidden" id="itemid1"name="itemid" class="itemid" placeholder="itemid" value=""><br>
           <input type="hidden" id="houseno2"name="houseno" class="form-control" placeholder="houseno"  value="">

          <input type="hidden" id="plotno2"name="plotno" class="form-control" placeholder="plotno"  value="">
 		   		  	         <button type="submit" name="updatecheckout" value="checkout" class="btn btn-success"> Yes  </button>

 <button type="button" class="btn btn-danger" data-dismiss="modal">No</button>


	<?php echo form_close();?>
      </div>
    </div>

  </div>

  </div>
		
		







  <div id="Checkout" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Check Out</h4>
      </div>
      <div class="modal-body">
        <h4>Are you sure you want to Check out all customers whoes check out time is below this date and time? </h4>
      </div>
      <div class="modal-footer">
	  	

     
		<?PHP
				$session_data = $this->session->userdata('adminlogged_in');
 echo $this->session->flashdata('msg'); 
    $closedatedate=date("Y-m-d 10:01:01");

		
                 echo form_open('admin/updatebulkchekout' , array('class' => 'form-horizontal ', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>  								  		

 <div class="form-group">
    <label for="inputidno" class="col-sm-2 control-label">Check-Out  Time</label>
    <div class="col-sm-7">
				<input type="text" name="checkoutdate" value="<?php echo set_value('checkoutdate',$closedatedate); ?>" id="idno" class="form-control" required placeholder="Enter End  Date">
        <span class="text-danger"><?php echo form_error('checkoutdate'); ?></span>
	</div>
  </div>
 <input type="hidden" id="table"name="table" class="table" placeholder="bookroom" value="bookroom">

 
 <input type="hidden" id="view"name="view" class="view" placeholder="view" value="admin/viewpallmyplots">

 		   		  	         <button type="submit" name="bulkcheckout" value="checkout" class="btn btn-success"> Yes  </button>

 <button type="button" class="btn btn-danger" data-dismiss="modal">No</button>


	<?php echo form_close();?>
      </div>
    </div>

  </div>

  </div>






<div id="myModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Delete</h4>
      </div>
      <div class="modal-body">
        <h3>Are you sure you want to delete this item? </h3>
      </div>
      <div class="modal-footer">
	  	

     
		<?PHP
				$session_data = $this->session->userdata('adminlogged_in');
 echo $this->session->flashdata('deletemsg'); 

		
                 echo form_open('user/deletebyid' , array('class' => 'form-horizontal ', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
 <input type="hidden" id="table"name="table" class="table" placeholder="view" value="house">

 <input type="hidden" id="view"name="view" class="view" placeholder="view" value="admin/viewpallmyplots">
 <input type="hidden" id="roomid"name="itemid" class="itemid" placeholder="itemid" value=""><br>
          <input type="hidden" id="plotno1"name="plotno" class="form-control" placeholder="plotno"  value="">
 <button type="button" class="btn btn-success" data-dismiss="modal">No</button>
 		  	         <button type="submit" name="btn_delete" value="deletebyid" class="btn btn-danger"> Delete  </button>

	<?php echo form_close();?>
      </div>
    </div>

  </div>

  </div>

</div>





			