      <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="box">
             <div class="box-header">
               <h3 class="box-title"><a href="<?php echo site_url("admin/price/add");?>">ADD Price</a></h3>
             </div><!-- /.box-header -->
             <div class="box-body">
                <table id="example1" class="table table-bordered table-striped">
                    <thead>
                      <tr>
                        <th>ID</th>
						<th></th>
                        <th></th>
                        <th>Car</th>
                        <th>Service For</th>
                        <th>Route Code</th>
						<th>Location From</th>
                        <th>Location To</th>
                        <th>Price</th>
						<th>Over Stay</th>
                        <th>Createby</th>
                        <th>Createdate</th>
                      </tr>
                    </thead>
                    <tbody>
                    <?php 
					$i=0; 
					foreach($price as $v)
					{
						$i++;
						$routecode = getRoute($v['RID']);
						$locationfrom = getlocationname($routecode['locationfrom']);
						$locationto	 = getlocationname($routecode['locationto']);
					 	echo'
						<tr>
						  <td>'.$i.'</td>
						  <td><a href="'.site_url("admin/price/edit/".$v['id']."").'"><i class="fa fa-edit"></i>Edit</a></td>
						  <td><a href="'.site_url("admin/price/delete/".$v['id']."").'" class="confirmation"><i class="fa fa-remove"></i>Delete</a></td>
						  <td>'.$v['carname'].'</td>
						  <td>'.$v['servicename'].'</td>
						  <td>'.$v['routecode'].'</td>
						  <td>'.$locationfrom.'</td>
						  <td>'.$locationto.'</td>
						  <td style="color:red">'.$v['price'].'$</td>
						  <td style="color:red">'.$v['over_stay'].'$</td>
						  <td>'.$v['username'].'</td>
						  <td>'.$v['createdate'].'</td>
						
						</tr>
						';
					}
					?>
                      
                    </tbody>
                  </table>
                </div><!-- /.box-body -->
             </div><!-- /.box -->
            	
        </section>
       </div>
       
       <?php if($msg = $this->session->flashdata("message")): ?>
	   <script>
       	alert("<?php echo $msg?>");
       </script>
       <?php endif; ?>
	   
       