<div class="col-lg-10 col-lg-offset-1">
	<section class="panel">
		<header class="panel-heading" style="min-height:50px">
			<div class="col-lg-3"> <span> &nbsp; </span> </div>
			<div class="col-lg-6">
				<h4 class="text-center"> <b> <?php echo $view_type;?> Vessel</b></h4>
			</div> 
			<div class="col-lg-3"><span> &nbsp; </span></div>
		</header>
		<div class="clear"></div>
		<div class="panel-body">
			<form class="form-horizontal"method="post" action="<?php echo base_url();?>icd/Admin_icd_common_ctrl/insert_vessel_details/<?php if(isset($vl_data['vl_id'])){ echo $vl_data['vl_id'];}?>">
				<div class="col-lg-12">
					
					<div class=" col-md-10">
						<input type="text" class="form-control" name="vl_name" placeholder="Vessel Name" value="<?php if(isset($vl_data['vl_name'])){ echo $vl_data['vl_name'];}?>" required>	
					</div>			
					<div class="form-group col-md-2">
						<div class="col-lg-offset-10 col-lg-2">
                            <button type="submit" class="btn btn-success pull-right">Save</button>
                        </div>
					</div>
				</div>
				
			</form>
		</div>
	</section>
</div>

<div class="col-lg-10 col-lg-offset-1">
	<section class="panel">
		<header class="panel-heading">
			<h4 class="text-center"><b>Vessel List</b></h4>
		</header>
		<div class="panel-body">
			<section id="unseen">
				<table class="table table-bordered table-striped table-condensed">
					<thead>
						<tr>
							<th> Name</th>
							<th>Operation</th>
						</tr>
					</thead>
					<tbody>
						<?php
							foreach($vl_list as $vl_row){
						?>
								<tr>
									<td> <?php echo $vl_row['vl_name'];?> </td>
									<td>
										<a href="<?php echo base_url();?>icd/Admin_icd_common_ctrl/vessel_list/<?php echo $vl_row['vl_id'];?>" class="btn btn-success fa fa-edit"></a>
										
										<a href="" class="btn btn-danger fa fa-times"></a>
									</td>
								</tr>
						<?php
							}
						?>
					</tbody>
				</table>
			</section>
		</div>
	</section>
</div>