
<main class="app-content">
<div class="app-title">
  <div>
	 
    <h1><i class="fa fa-th-list"></i> </h1>
  </div>
  <ul class="app-breadcrumb breadcrumb">
    <li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i></li>
    <li class="breadcrumb-item"> <</li>
    <li class="breadcrumb-item active"><a href="#"></a></li>
  </ul>
</div>
<div class="row">
  
  <div class="col-md-12">
    <div class="col-md-8">
      <div class="tile">
        <h3 class="tile-title"></h3>
    <?php 
    if(isset($data['0']))
    {
      foreach($data as $row)
      {
        ?>
        <form method="post" action="">
        <div class="tile-body">
         
            <div class="form-group">
              <label class="control-label">Title</label>
              <input class="form-control" type="text" name="planName" value="<?php echo $row->plan_name?>" placeholder="title">
            </div>
            <input type="hidden" name="pln_id" value="<?php echo $row->id?>"/>
            <div class="form-group">
              <label class="control-label">Price</label>
              <input class="form-control" type="text" name="price" value="<?php echo $row->price?>" placeholder="Price">
            </div>
            <!--<div class="form-group">
             
              <label class="control-label">Duration</label>
             <select name="duration" id="" class="form-control">
               <option value="">Select</option>
               <?php //$opt=$row->duration?>
               <option value="Monthly" <?php //if($opt=='Month') echo 'selected' ;?>>Month</option>
               <option value="Year" <?php// if($opt=='Year') echo 'selected';?>>Year</option>
               <option value="One Time" <?php// if($opt=='One Time') echo 'selected';?>>One Time</option>
             </select>
            </div>-->
           
            <h3 class="tile-title">Features</h3>
            
            <div class="form-group">
              <div class="row">
                <div class="col-md-9">
<div class="form-group label-floating is-empty padding_input_right fm_grp">
                                                
<div id="sample">

												 
<textarea cols="90" row="30"  id="edi" name="description" placeholder="Description"><?php echo $row->descp?></textarea>
<script>

CKEDITOR.replace('edi');

</script>										
</div>
<span class="material-input"></span>
 </div>
</div>
              <div class="form-group">
              <label class="control-label">Status</label>
				  <select  name="status" >
					 <?php $sts=$row->status?>
					  <option value="Y" name="Y" <?php if($sts=='Y')echo 'selected'; ?>>Active</option>
					  <option value="N" name="N" <?php if($sts=='N')echo 'selected'; ?>>In Active</option>
				  </select>
            </div>
            
           
                  </div>
                </div>
              </div>
             
            </div>
          
        </div>
       
        <div class="tile-footer">
		
          <input class="btn btn-primary" type="submit" name="update" value="Update">
			
			&nbsp;&nbsp;&nbsp;
	
			<a class="btn btn-secondary" href="#"><i class="fa fa-fw fa-lg fa-times-circle"></i>Cancel</a>
        </div>
			</form>
        <?php

      }
    }
    else
    {
      ?>
      
    <h1><i class="fa fa-th-list"></i> <?php if(isset($ser['0'])){
      foreach($ser as $s)
      {
        echo $s->service_name;
      }
    } ?></h1>
  </div>
 
</div>
<div class="row">
  
  <div class="col-md-12">
    <div class="col-md-8">
      <div class="tile">
        <h3 class="tile-title"> <?php if(isset($ser['0'])){
      foreach($ser as $s)
      {
        echo $s->service_name;
      
      }
    } ?></h3>
 <form method="post" action="<?php echo base_url()?>add_plan">
        <div class="tile-body">
         
            <div class="form-group">
              <label class="control-label">Title</label>
              <input class="form-control" type="text" name="planName" value="" placeholder="title">
            </div>
            <input type="hidden" name="ser_id" value="<?php if(isset($ser['0'])){
            echo   $ser['0']->id;
            } ?>"/>
            <div class="form-group">
              <label class="control-label">Price</label>
              <input class="form-control" type="text" name="price" value="" placeholder="Price">
            </div>
            <div class="form-group">
             
              <label class="control-label">Duration</label>
             <select name="duration" id="" class="form-control">
               <option value="">Select</option>
               <option value="Monthly" <?php //if($opt=='Month') echo 'selected' ;?>>Month</option>
               <option value="Year" <?php //if($opt=='Year') echo 'selected';?>>Year</option>
              
             </select>
            </div>
           
            <h3 class="tile-title">Features</h3>
            
            <div class="form-group">
              <div class="row">
                <div class="col-md-9">
<div class="form-group label-floating is-empty padding_input_right fm_grp">
                                                
<div id="sample">

												 
<textarea cols="90" row="30"  id="edi" name="description" placeholder="Description"><?php// echo $pl['descp'];?></textarea>
<script>

CKEDITOR.replace('edi');

</script>										
</div>
<span class="material-input"></span>
 </div>
</div>
              <div class="form-group">
              <label class="control-label">Status</label>
				  <select  name="status" >
					 
					  <option value="Y" name="Y">Active</option>
					  <option value="N" name="N">In Active</option>
				  </select>
            </div>
            
           
                  </div>
                </div>
              </div>
             
            </div>
          
        </div>
       
        <div class="tile-footer">
		
          <button class="btn btn-primary" type="submit" name="submit_btn"><i class="fa fa-fw fa-lg fa-check-circle"></i>Add Now</button>
			
			&nbsp;&nbsp;&nbsp;
	
			<a class="btn btn-secondary" href="#"><i class="fa fa-fw fa-lg fa-times-circle"></i>Cancel</a>
        </div>
			</form>
      <?php
    }
    ?>
		 

      </div>
    </div>
  </div>
</div>
</main>
<!-- Essential javascripts for application to work-->
<script src="<?php echo base_url()?>assets/js/jquery-3.3.1.min.js"></script>
<script src="<?php echo base_url()?>assets/js/popper.min.js"></script>
<script src="<?php echo base_url()?>assets/js/bootstrap.min.js"></script>
<script src="<?php echo base_url()?>assets/js/main.js"></script>
<!-- The javascript plugin to display page loading on top-->
<script src="<?php echo base_url()?>assets/js/plugins/pace.min.js"></script>
<!-- Page specific javascripts-->
<!-- Google analytics script-->
<script type="text/javascript">
if(document.location.hostname == 'pratikborsadiya.in') {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-72504830-1', 'auto');
ga('send', 'pageview');
}
</script>
<script src="<?php echo base_url()?>assets/js/demo/datatables-demo.js"></script>
</body>
</html>