	<ul class="nav nav-tabs bordered">
			<li class="active">
            	<a href="#list" data-toggle="tab"><i class="entypo-menu"></i> 
					All Payment Method
                    	</a></li>
			<li>
            	<a href="#add" data-toggle="tab"><i class="entypo-plus-circled"></i>
					Add Payment Method
                    	</a></li>
		</ul>
    	<!------CONTROL TABS END------>
        
		<div class="tab-content">
            <!----TABLE LISTING STARTS-->
            <div class="tab-pane box active" id="list">
				
     


 <div class="panel panel-primary" data-collapsed="0">
 
<table id="example"  cellspacing="1" class="table  table" width="100%">
             <thead>
		
         <tr>
    
    <th>Method Name </th>

           
	<th>Description</th> 
	<th>Date created</th> 
	<th>Update</th> 
<th>Manage</th>



                 </tr>
             </thead>
<?php
echo $this->session->flashdata('msg'); 
 if(!is_array($paymentmethod)) 

 {


   echo "<tr  style='margin-bottom:0px;margin-top:0px;' '>";
      echo "<td colspan='1'>";
    
       echo '<div class="alert alert-warning text-center">There is no payment method found by now from system..</div>';
    echo "</td>";
   echo "</tr>";
    }else {
?>
    
             <?php 
  
  	foreach ($paymentmethod as $c): 

		 

             ?>



             <tr>
                
            <?php 
		$id=$c->id;


?>

             <td><?php echo $c->method ; ?></td> 
				<td><?php echo $c->description ; ?></td> 

				
                     <td><?php echo $c->createdat; ?></td>   
                     <td>
                     <a class="btn btn-primary" id="more" href="<?php echo base_url();?>admin/editpaymentmethod?randomitemidentifier=<?php   {echo  $id;}  ?>">Update </a>
         </td>
		                      <td>
	   <a class="btn btn-primary" id="more" href="<?php echo base_url();?>admin/allpaymentsection?randomitemidentifier=<?php   {echo  $id;}  ?>">Payment Type </a>
         </td>
             </tr>

             <?php endforeach; ?>

              <?php }?>

        </table>

</div>

</div>
<div class="tab-pane box" 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 Payment Method
            	</div>
            </div>
			<div class="panel-body">





				<?PHP
				echo $this->session->flashdata('msg'); 
		
                 echo form_open('addpaymentmethod' , 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="inputmethod" class="col-sm-2 control-label">Payment Method</label>
    <div class="col-sm-7">
		  		<input type="text" name="method" value="<?php echo set_value('method'); ?>"id="method" class="form-control" required placeholder="Enter house number">
     <span class="text-danger"><?php echo form_error('method'); ?></span>
   </div>
  </div>
   			
  		<input type="hidden" name="action" value="<?php echo set_value('action','insert'); ?>"id="action" class="form-control" required placeholder="Enter action">

  
   <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="5" placeholder="add Description" class="form-control"></textarea>
    <span class="text-danger"><?php echo form_error('description'); ?></span>
   </div>
  </div>
    
  
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-7">
     
	       <button type="submit" name="btn_paymentmethod"value="paymentmethod" class="btn btn-primary">Add Method</button>

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


    </div>
</div>




