     <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Channellimo
            <small>Preview</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Forms</a></li>
            <li class="active">Price</li>
          </ol>
        </section>
        
        <section class="content">
        	<div class="col-lg-12">
             <form action="" method="post">
             	<div class="box box-primary col-lg-8">
                	<div class="box-header with-border">
						<h3 class="box-title">FORM EDIT</h3>
					</div>
                    
                    <div class="form-group col-lg-8">
                      <label for="to">Services For</label>
                        <select class="form-control" name="services">
                        <?php 
			  			$sql = $this->db->query('SELECT `id`, `typename` FROM `tblservices` where `status` =1');
			  			foreach ($sql->result() as $service)
			  			{  
			  			?>
             			 <option <?php echo $price->service_id == ''.$service->id.'' ? 'selected' : '' ?> value="<?php echo $service->id ?>"><?php echo $service->typename ?></option> 
              			<?php }?>
						</select>
                    </div>
                    
                    <div class="form-group col-lg-8">
						<label for="to">Car</label>
						<select class="form-control" name="car">
						  <?php 
							$sql = $this->db->query('SELECT `id`, `fullname` FROM `tblcar` order by `fullname`');
							if($my_car_id !=0){
								$car_id = $my_car_id;
							}else{
								$car_id = $car->id;
							}
							foreach ($sql->result() as $car)
							{  
						  ?>
						  <option <?php echo $car->id == ''.$car_id.'' ? 'selected' : '' ?> value="<?php echo $car->id ?>"><?php echo $car->fullname ?></option>
						  <?php }?>
						</select>
					</div>
                    
                    
                    <div class="form-group col-lg-8">
                      <label for="to">Routes Code</label>
                        <select class="form-control" name="routes">
                        <?php 
			  			$sql = $this->db->query('SELECT `id`, `routecode` FROM `tblroutes`');
			  			foreach ($sql->result() as $routes)
			  			{  
			  			?>
             			 <option <?php echo $price->RID == ''.$routes->id.'' ? 'selected' : '' ?> value="<?php echo $routes->id ?>"><?php echo $routes->routecode ?></option> 
              			<?php }?>
						</select>
                    </div>
                    
                    <div class="form-group col-lg-8">
                    <?php echo form_error('price','<div class="error">', '</div>'); ?>
					   <label for="name">Price</label>
					   <input id="price" name="price" class="form-control" type="text" placeholder="Enter Price" value="<?php echo $price->price;?>">
					</div>

					<div class="form-group col-lg-8">
                    <?php echo form_error('price','<div class="error">', '</div>'); ?>
					   <label for="name">Over Stay</label>
					   <input id="over_stay" name="over_stay" class="form-control" type="text" placeholder="Enter Over Stay" value="<?php echo $price->over_stay;?>">
					</div>
					
					<div class="form-group col-lg-8">
                    <?php echo form_error('price','<div class="error">', '</div>'); ?>
					   <label for="name">Full Day Price</label>
					   <input id="wholeday" name="wholeday" class="form-control" type="text" placeholder="Enter Full Day price" value="<?php echo $price->wholeday;?>">
					</div>
                    
                    <div class="form-group col-lg-8"> 
						<?php echo form_error('vat','<div class="error">', '</div>'); ?>
                        <label for="name">VAT</label>
                        <input id="vat" name="vat" class="form-control" type="text" placeholder="Enter VAT" value="<?php echo $price->vat;?>">
                    </div>
                    
                    <div class="form-group col-lg-8">
                     <input type="submit" name="update_price" value="Update" class="btn btn-primary"/>
                     <button type="reset" class="btn btn-danger">Reset</button>
                    </div>
                    
                    
                </div>
             </form>
            </div>
        </section>
     </div>

	<?php if($msg = $this->session->flashdata("message")): ?>
        <script>
     		alert("<?php echo $msg?>");
     	</script>
    <?php endif; ?>