<div class="col-lg-6">
	<section class="panel">
		<header class="panel-heading" style="min-height:120px">
			<div class="col-lg-3"> <span> &nbsp; </span> </div>
			<div class="col-lg-6">
				<h4 class="text-center"><i class="fa fa-user truck_icon"></i><br/> <b> <?php echo $view_type;?> UOM</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();?>unit_ctrl/insert_units/<?php if(isset($unl_data['unl_id'])){ echo $unl_data['unl_id'];}?>">
				<div class="col-lg-12">
					
					<div class="form-group col-md-12">
						<label class="col-lg-4 col-sm-4">Unit</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="unl_unit" value="<?php if(isset($unl_data['unl_unit'])){ echo $unl_data['unl_unit'];}?>" required>
						</div>
					</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-6 ">
	<section class="panel">
		<header class="panel-heading" style="min-height:120px">
			<h4 class="text-center"><i class="fa fa-user truck_icon"></i><br/> <b>UOM List</b></h4>
		</header>
		<div class="panel-body">
			<section id="unseen">
				<table class="table table-bordered table-striped table-condensed">
					<thead>
						<tr>
							<th>Customer Code</th>
							<th>Operation</th>
						</tr>
					</thead>
					<tbody>
						<?php
							foreach($unl_list as $unl_row){
						?>
								<tr>
									<td> <?php echo $unl_row['unl_unit'];?> </td>
									<td>
										<a href="<?php echo base_url();?>unit_ctrl/units_list/<?php echo $unl_row['unl_id'];?>" class="btn btn-success fa fa-edit"></a>
									</td>
								</tr>
						<?php
							}
						?>
					</tbody>
				</table>
			</section>
		</div>
	</section>
</div>

