


	 <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>

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

        });
        </script>
             <script type="text/javascript">
  
		
		 $(document).on("click", "#managebtndelete", function()
        {
          var itemid = $(this).data('id');
		  $("#itemid1").val(itemid); 
		  
		    var plotno = $(this).data('plotno');
		   $("#plotno1").val(plotno); 
		   
		   
        });
			
    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> 
				Add new Meter	
                    	</a></li>
			<li>
            	<a href="#list" data-toggle="tab"><i class="entypo-plus-circled"></i>
					All Meter
                    	</a></li>
				
						
							<li>
            	
								 <a href="<?php echo base_url(); ?>admin/viewpallmyplots">Back</a>

				</li>					 

						
						
		</ul>
    	<!------CONTROL TABS END------>
        
		<div class="tab-content">
            <!----TABLE LISTING STARTS-->
			
			<?php
			

					echo $this->session->flashdata('deletemsg'); 

			?>
			  <div class="tab-pane box " id="upload">
		
					
<div class="row">
	<div class="col-md-12">
		<div class="panel panel-primary" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" >
            		<i class="entypo-plus-circled"></i>
				Upload house for this plot only
            	</div>
            </div>
			<div class="panel-body">





				<?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'];	
	 
	 
				$data['branchid'] = $session_data['branchid'];
	 $branchid = $data['branchid'];



 $data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];
		 $data['usertype'] = $session_data['usertype'];
	 $usertype = $data['usertype'];	
				echo $this->session->flashdata('msg');
				
			      $addroom=$this->usermodel->populatuserpermissionsdataarray('accomodation','addroom',$userid);
			     $bulkroomupdate=$this->usermodel->populatuserpermissionsdataarray('accomodation','bulkroomupdate',$userid);

				echo $this->session->flashdata('msg'); 
                 echo form_open('admin/uploadhouse' , array('class' => 'form-horizontal form-groups-bordered validate', '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">
			  		<input type="hidden" name="plotno" value="<?php  echo $plotno ; ?>"id="plotno" class="form-control" required placeholder="Enter plot no">

    <label for="inputfile" class="col-sm-2 control-label">Upload file</label>
    <div class="col-sm-7">
		  		<input type="file" name="file" value="<?php echo set_value('file'); ?>"id="file" class="form-control" required placeholder="Enter Country Name">
     <span class="text-danger"><?php echo form_error('file'); ?></span>
   </div>
  </div>
   			
  	
             <?php 
   

	
  	//echo $plotno;
  	//echo  $houseno;
		 

             ?>
    
  
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-7">
     
	       <button type="submit" name="btn_uploadhouse"value="house" class="btn btn-primary">Upload list of Houses</button>

    </div>
  </div>
                    
                <?php echo form_close();?>
            </div>
        </div>
    </div>
</div>
			
			
			
			
			</div>
			
			
            <div class="tab-pane box " id="list">
				
     


 <div class="panel panel-primary" data-collapsed="0">
	<?php
			
		
                 echo form_open('admin/groupbycategory' , 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" name="plotno" value="<?php  echo $plotno ; ?>"id="plotno" class="form-control" required placeholder="Enter plot no">

<table id="example"  cellspacing="1" class="table  table" width="100%">
             <thead>
			
         <tr>
    	 <th> <input type="checkbox" onclick="selectAllCheckBoxes(this)" id="checkBoxUnik"/>All
</th>
    <th>Meter No </th>
	<th>Business No</th>

    <th>Status</th>     
    <th>Customer</th>       
	  
              <?php
			  if($category=="rental"){
				  
			  ?>
		 
		 		 
	  <th>Cost</th>  
    <th>Allocate</th>  
		     
         
              <?php
			  } 
			  ?>
   




	
<th> 
More
	
	<?php
 if( $bulkroomupdate==true){
	 ?>
<select class="form-control" name="categoryid" required>
 <option value="">--Select status--</option>
			                         <option value="vacant">vacant</option>
									   <option value="occupied">occupied</option>
									  
									  <option value="reserved">reserved</option>
									  										      <option value="freezed">freezed </option>
</select>
	 

	 
	 	<?php	
		}else{ }
  ?>
  
	


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

	 
			         <button type="submit"  value="all" name="groupbycategory" class="btn btn-info"> Bulk Update  </button>

	 
	 	<?php	
		}else{ }
  ?>
  




</th> 	
                 </tr>
             </thead>
<?php

 $grandtotal=0;
echo $this->session->flashdata('msg'); 
 if(!is_array($house)) 

 {



  
    
       echo '<div class="alert alert-warning text-center">There is no House found by now from system..</div>';
   
    }else {
?>
    
             <?php 
   

	  $allplotno;
  	foreach ($house as $c): 

		 

             ?>



             <tr>
                
            <?php 
		 $houseno=$c->houseno;
	 $plotno=$c->plotno;
 $houseid=$c->id;
?>
<td>
			<input name="selector[]" type="checkbox" onclick="unselectCheckBoxUnik()" class="checkBoxInLoop" value="<?php echo $c->id ; ?>">
				</td>  
             <td>
			                      <a class="btn btn-default" style="margin:0;"  id="more" href="<?php echo base_url();?>admin/editroom?randomitemidentifier=<?php   {echo  $houseid;}  ?>"><?php echo $c->houseno ; ?>  </a>

			 
			 
			 </td> 
				<td><?php echo $c->plotno ;

$allplotno=$c->plotno;				?></td> 


					<td><?php
					
			$mystatus=$c->status ;
			if($mystatus=="vacant"){
			
			?>
			<div class="btn-warning">
			<?php  echo $c->status ; 	?>
			</div>
			<?php
			}else if($mystatus=="occupied"){
				?>
			<div class="btn-success">
			<?php  echo $c->status ; 	?>
			</div>
			<?php
			
			}else if($mystatus=="freezed"){
			?>
			<div class="btn-primary">
			<?php  echo $c->status ; 	?>
			</div>
			<?php
			}
			
		
			?>
					
					</td> 
					
						         <td><?php 
					$tenantavalable = $this->accomodationmodel->tenantavailableonly($plotno,$houseno); 
					  $total=0;
					
					if(is_array($tenantavalable)) {

   foreach($tenantavalable as $tenantavalablerow){
	   $tenantid= $tenantavalablerow->tenantid ; 
				    $tenants = $this->accomodationmodel->gettenantbyid($tenantid);
 if(is_array($tenants)) {
   foreach($tenants as $tenantsrow){

    $names=$tenantsrow->lastname. " ".$tenantsrow->firstname ; 
   
   ?>
   
                     <a class="btn btn-warning"  id="more" href="<?php echo base_url();?>admin/edittenant?randomitemidentifier=<?php   {echo  $tenantid;}  ?>"><?php   {echo  $names;}  ?>  </a>

   
   <?php
    

}
    } else {
 
}

}



} else {
   // echo 'vacant.';
}
					
					


?>
				 
				 
		</td>
					
					
					
					
					
					
					
					
					

              
              <?php
			  if($category=="rental"){
				  
			  ?>
		 
		 
		 
		 				<td><?php echo $c->cost ; ?></td> 
            <td>
                     <a class="btn btn-info" id="more" href="<?php echo base_url();?>admin/allocate?randomitemidentifier=<?php   {echo  $houseno;}  ?>&randomitemidentifier1=<?php   {echo  $plotno;}  ?>&roomidentifier=<?php   {echo  $houseid;}  ?>">Allocate Meter </a>
         </td>
		   
		    
              <?php
			  } 
			  ?>

		 <td> 

 
 
					<div class="btn-group">
                                    <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
                                        More <span class="caret"></span>
                                    </button>
								
                                    <ul class="dropdown-menu dropdown-info pull-right" role="menu">
                                        
                                        <!-- teacher EDITING LINK -->
                                      
									
										
									
                                    
                                        
										
										   <?php
			  if($category=="rental"){
				  
			  ?>
		   
			    <li>
		                      <a class="btn btn-info"   id="more" href="<?php echo base_url();?>admin/rentinvoice?randomitemidentifier=<?php   {echo  $houseno;}  ?>&randomitemidentifier1=<?php   {echo  $plotno;}  ?>">Invoice  </a>
   </li>
		    <li class="divider"></li>
			   <li>
			                     <a class="btn btn-info"  id="more" href="<?php echo base_url();?>admin/receivepayment?randomitemidentifier=<?php   {echo  $houseno;}  ?>&randomitemidentifier1=<?php   {echo  $plotno;}  ?>&category=<?php echo $category; ?>">Pay  </a>
   </li>
		      <li class="divider"></li>
              <?php
			  } 
			  ?>
										
										
										
										
										
										
										
										
										
										
					
							
	   <li>

                     <a class="btn btn-info"  id="more" href="<?php echo base_url();?>admin/editroom?randomitemidentifier=<?php   {echo  $houseid;}  ?>">Update/Charges  </a>
         </li>
				                   
     <li class="divider"></li>

		<?php
										if($usertype=="admin"){
											
											?>
											  <li> 
										 <a class="btn btn-danger managebtn" id="managebtndelete"		 data-id='<?php echo  $c->id;?>'   data-plotno='<?php echo  $c->plotno;?>'  data-toggle='modal' data-target='#myModal<?php  $c->id; ?>'>	 


                                                <i class="glyphicon glyphicon-pencil"></i>
																Delete
                                                </a>
                                                        </li>
										<?php
										}
										?>								   
                                    </ul>
										
										
										    
										
                                </div>
</td>
		 
		 
		 
		 
		 	<?php echo form_close();?>
		 
		 
             </tr>

             <?php endforeach; ?>

              <?php }?>
			 

        </table>


</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/viewplot?randomitemidentifier=">
 <input type="hidden" id="itemid1"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>



		<!----CREATION FORM STARTS---->
			<div class="tab-pane box active" id="add" style="padding: 5px">
			
			



		
<div class="row">
	<div class="col-md-12">
		<div class="panel panel-primary" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" >
            		<i class="entypo-plus-circled"></i>
				Add new Meter
            	</div>
            </div>
			<div class="panel-body">





				<?PHP
				echo $this->session->flashdata('msg'); 
		
                 echo form_open('addhouse' , array('class' => 'form-horizontal form-groups-bordered validate', '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="inputhouseno" class="col-sm-2 control-label">Meter Number</label>
    <div class="col-sm-7">
			  		<input type="hidden" name="plotno" value="<?php  echo $plotno ; ?>"id="houseno" class="form-control" required placeholder="Enter Meter number">
			  		<input type="hidden" name="category" value="<?php  echo $category ; ?>"id="houseno" class="form-control" required placeholder="Enter category">

  		<input type="hidden" name="action" value="<?php echo set_value('action','insert'); ?>"id="action" class="form-control" required >

		  		<input type="text" name="houseno" value="<?php echo set_value('houseno'); ?>"id="houseno" class="form-control" required placeholder="Enter house number">
     <span class="text-danger"><?php echo form_error('houseno'); ?></span>
   </div>
  </div>
<?php
if($category=="rental"){

?>
  <div class="form-group">
    <label for="inputcost" class="col-sm-2 control-label">Meter Standing Charge</label>
    <div class="col-sm-7">
				<input type="text" name="cost" value="<?php echo set_value('cost'); ?>" id="cost" class="form-control" required placeholder="Enter Meter standing charge">
        <span class="text-danger"><?php echo form_error('cost'); ?></span>
	</div>
  </div>
  
  <?php
}else{
	?>
				<input type="hidden" name="cost" value="0" id="cost" class="form-control" required placeholder="Enter Rent">
	
	
	<?php
	
}
?>
<div class="form-group" style="display:none">
    <label for="inputcost" class="col-sm-2 control-label">Floor</label>
    <div class="col-sm-7">
	
	<select class="form-control" name="floor"  required>
		<option value=""  >---Select Floor---</option>
		<option value="Ground"  selected >Ground</option>
		<option value="1"  >1</option>
		<option value="2"  >2</option>
		<option value="3"  >3</option>
		<option value="4"  >4</option>
		<option value="5"  >5</option>
		<option value="6"  >6</option>
		<option value="7"  >7</option>
		<option value="8"  >8</option>
		<option value="9"  >9</option>

		<option value="10"  >10</option>
		<option value="11"  >11</option>
		<option value="12"  >12</option>
		<option value="13"  >13</option>
		<option value="14"  >14</option>
		<option value="15"  >15</option>
		<option value="16"  >16</option>
		<option value="17"  >17</option>
		<option value="18"  >18</option>
		<option value="19"  >19</option>
		<option value="20"  >20</option>
		<option value="20"  >20</option>
		<option value="21"  >21</option>
		<option value="22"  >22</option>
		<option value="23"  >23</option>
		<option value="24"  >24</option>
		<option value="25"  >25</option>
		<option value="26"  >26</option>
		<option value="27"  >27</option>
		<option value="28"  >28</option>
		<option value="29"  >29</option>
		<option value="30"  >30</option>
</select>
		
	
	
	
	
	
        <span class="text-danger"><?php echo form_error('floor'); ?></span>
	</div>
  </div>
 <div class="form-group" style="display:none">
						<label for="field-2" class="col-sm-2 control-label"> Type</label>
		                    <div class="col-sm-7">
		                        <select name="type"  required class="chzn-select" id="section_selector_holder">

									<option value="">--Select type--</option>
			                      
			                         <option value="Double">Shared</option>
									   <option  selected value="Single">Single</option>
									   									   									   <option value="Bed Sitter">Bed Sitter</option>




			                    </select>
								     <span class="text-danger"><?php echo form_error('status'); ?></span>
			                </div>
	</div>
  <div class="form-group" style="display:none">
						<label for="field-2" class="col-sm-2 control-label">status</label>
		                    <div class="col-sm-7">
		                        <select name="status" class="form-control" id="section_selector_holder">
		                            <option value="">--Select status--</option>
			                         <option selected="selected" value="vacant">vacant</option>
									   <option value="occupied">occupied</option>
			                    </select>
								     <span class="text-danger"><?php echo form_error('status'); ?></span>
			                </div>
	</div>
					
  		
					  <div class="form-group">
    <label for="inputsupplier" class="col-sm-2 control-label">Branch</label>
    <div class="col-sm-7">
				
				
				<select class="form-control" name="branchid"  id="branchid" required>
	
	
	<option value=""  >---Select Branch/Counter --</option>

									
								
<?php
	     $mybranch=$this->usermodel->populateall('branch','id',$branchid);


if(is_array($mybranch)) {

   foreach($mybranch as $branchrow){

   ?>
					<option selected="selected" value="<?=  $branchrow->id;   ?>"><?=  $branchrow->name; ?></option>




	<?php

}} else {
    echo 'No Branch available.';
}
	
?>
	
	
	
	
	
	
	<?php 
					 
					 		$maincategory = $this->usermodel->populateall('branch','companyid',$companyid);


							


if(is_array($maincategory)) {

   foreach($maincategory as $maincategoryrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $maincategoryrow->id;   ?>"><?=  $maincategoryrow->name; ?></option>



	<?php

}} else {
    echo 'No main counter available.';
}
	
?>
</select>
				
		</div>
  </div>
					
				<?php
				
					     $plotdetails=$this->usermodel->populateallarray('plot','id',$plotno);

		
				$vat=$plotdetails[0]["tax"];
				$vat2=$plotdetails[0]["vat2"];
				$commission=$plotdetails[0]["commission"];

				
				?>
				
    <div class="form-group" style="display:none">
    <label for="inputbeds" class="col-sm-2 control-label">No of Beds</label>
    <div class="col-sm-7">
				<input type="text" name="beds" value="1" id="beds" class="form-control"  placeholder="Enter No of Beds">
        <span class="text-danger"><?php echo form_error('beds'); ?></span>
	</div>
  </div>
      <div class="form-group">
    <label for="inputvat" class="col-sm-2 control-label">Tax</label>
    <div class="col-sm-7">
				<input type="text" name="vat" value="<?php echo $vat; ?>" id="vat" class="form-control" required placeholder="Enter vat">
        <span class="text-danger"><?php echo form_error('vat'); ?></span>
	</div>
  </div>
  
        <div class="form-group" style="display:none">
    <label for="inputvat" class="col-sm-2 control-label">Tax2(Levy)</label>
    <div class="col-sm-7">
				<input type="text" name="vat2" value="<?php echo $vat2; ?>" id="vat2" class="form-control"  placeholder="Enter vat2">
        <span class="text-danger"><?php echo form_error('vat2'); ?></span>
	</div>
  </div>
    <div class="form-group">
    <label for="inputcommission" class="col-sm-2 control-label">Commission</label>
    <div class="col-sm-7">
				<input type="text" name="commission" value="<?php echo $commission; ?>" id="commission" class="form-control"  placeholder="Enter commission">
        <span class="text-danger"><?php echo form_error('commission'); ?></span>
	</div>
  </div>
  <div class="form-group" style="display:none">

    <label for="inputhouseno" class="col-sm-2 control-label">Priority No</label>
    <div class="col-sm-7">


		  		<input type="text" name="priority" value="1"id="priority" class="form-control"  placeholder="Enter house priority number">
     <span class="text-danger"><?php echo form_error('priority'); ?></span>
   </div>
  </div>
 
  	<div class="form-group">
  	    <label for="inputwaterno" class="col-sm-2 control-label"></label>

				<div class="col-sm-2">Water Meter. No 
					<div class="form-group">

                     		  		<input type="text" name="waterno" value="<?php echo set_value('waterno'); ?>" class="form-control"  placeholder="Enter water Meter No">

					</div>
				</div>
				<div class="col-sm-2">Water rate
					<div class="form-group">
					

							  		<input type="text"  name="waterrate" value="<?php echo set_value('waterrate'); ?>" class="form-control"  placeholder="Enter water rate ">

					</div>
				</div>
			
				<div class="col-sm-3">
					Water Standing charge
					<div class="form-group">
			

							  		<input type="text"  name="watercharge" value="<?php echo set_value('watercharge'); ?>" class="form-control"  placeholder="Enter water standing charge ">

					</div>
				</div>
  
  </div>
  
  
  
  	<div class="form-group" style="display:none">
  	    <label for="inputwaterno" class="col-sm-2 control-label"></label>

				<div class="col-sm-2">Electricity Meter. No 
					<div class="form-group">

                     		  		<input type="text" name="electricityno" value="<?php echo set_value('electricityno'); ?>" class="form-control"  placeholder="Enter Electricity Meter No">

					</div>
				</div>
				<div class="col-sm-2">Electricity rate
					<div class="form-group">
					

							  		<input type="text"  name="electricityrate" value="<?php echo set_value('electricityrate'); ?>" class="form-control"  placeholder="Enter Electricity rate ">

					</div>
				</div>
			
				<div class="col-sm-3">
					Electricity Standing charge
					<div class="form-group">
			

							  		<input type="text"  name="electricitycharge" value="<?php echo set_value('electricitycharge'); ?>" class="form-control"  placeholder="Enter Electricity standing charge ">

					</div>
				</div>
  
  </div>
  
  
  
  	<div class="form-group" style="display:none">
  	    <label for="inputwaterno" class="col-sm-2 control-label"></label>

				<div class="col-sm-2">Bowhole Meter. No 
					<div class="form-group">

                     		  		<input type="text" name="bowholeno" value="<?php echo set_value('bowholeno'); ?>" class="form-control"  placeholder="Enter Bowhole Meter No">

					</div>
				</div>
				<div class="col-sm-2">Bowhole rate
					<div class="form-group">
					

							  		<input type="text"  name="bowholerate" value="<?php echo set_value('bowholerate'); ?>" class="form-control"  placeholder="Enter Bowhole rate ">

					</div>
				</div>
			
				<div class="col-sm-3">
					Bowhole Standing charge
					<div class="form-group">
			

							  		<input type="text"  name="bowholecharge" value="<?php echo set_value('bowholecharge'); ?>" class="form-control"  placeholder="Enter Bowhole standing charge ">

					</div>
				</div>
  
  </div>
  
  
  
  
    <div class="form-group" >
   <label for="inputmeternumber" class="col-sm-2 control-label">Meter Numbers Messages</label>
    <div class="col-sm-7">
	<input type="text" name="meternumber" value=""id="meternumber" class="form-control"  placeholder="Enter all the meter messages here">
     <span class="text-danger"><?php echo form_error('meternumber'); ?></span>
   </div>
  </div>
  
  
   <div class="form-group">
    <label for="inputphone3" class="col-sm-2 control-label">Description </label>
    <div class="col-sm-7">
	<textarea name="description" id="ttt" rows="2" placeholder="add Description" class="form-control"></textarea>
    <span class="text-danger"><?php echo form_error('description'); ?></span>
   </div>
  </div>
      <div class="form-group">
    <label for="inputpaymentdetails" class="col-sm-2 control-label">Sms Payment Details </label>
    <div class="col-sm-7">
	<textarea name="paymentdetails" id="paymentdetails" rows="2" placeholder="Enter SMS Room payment details" class="form-control"></textarea>
    <span class="text-danger"><?php echo form_error('paymentdetails'); ?></span>
   </div>
  </div>
    

  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-7">
     
	       <button type="submit" name="btn_house"value="house" class="btn btn-primary">Add Meter</button>

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


   </div>
</div>




			