<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;?> Shipping</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_shipping_details/<?php if(isset($shl_data['shl_id'])){ echo $shl_data['shl_id'];}?>">
				<div class="col-lg-12">
					
					<div class=" col-md-3">
						<input type="text" class="form-control" name="shl_name" placeholder="Name" value="<?php if(isset($shl_data['shl_name'])){ echo $shl_data['shl_name'];}?>" required>	
					</div>
					<div class="col-md-3">
						<input type="text" class="form-control" name="shl_address" placeholder="Address" value="<?php if(isset($shl_data['shl_address'])){ echo $shl_data['shl_address'];}?>" required>	
					</div>
					<div class="col-md-3">
						<input type="text" class="form-control" name="shl_c_name" placeholder="Contact Details" value="<?php if(isset($shl_data['shl_c_name'])){ echo $shl_data['shl_c_name'];}?>" required>	
					</div>	
					<div class="col-md-3">
						<input type="text" class="form-control" name="shl_c_phone" placeholder="Tel.Phone" value="<?php if(isset($shl_data['shl_c_phone'])){ echo $shl_data['shl_c_phone'];}?>" required>	
					</div>			
					<div class=" col-md-12"> &nbsp; 	 </div>
					<div class="form-group col-md-12">
						<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>Shipping 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> Address</th>
							<th> Contact Details</th>
							<th> Tel.Phone</th>
							<th>Operation</th>
						</tr>
					</thead>
					<tbody>
						<?php
							foreach($shl_list as $shl_row){
						?>
								<tr>
									<td> <?php echo $shl_row['shl_name'];?> </td>
									<td> <?php echo $shl_row['shl_address'];?> </td>
									<td> <?php echo $shl_row['shl_c_name'];?> </td>
									<td> <?php echo $shl_row['shl_c_phone'];?> </td>
									<td>
										<a href="<?php echo base_url();?>icd/Admin_icd_common_ctrl/shipping_list/<?php echo $shl_row['shl_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>