<div class="col-lg-10 col-lg-offset-1">
	<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;?> Commodity</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();?>commodity_ctrl/insert_commodity/<?php if(isset($com_data['com_id'])){ echo $com_data['com_id'];}?>">
				<div class="col-lg-12">
					<?php
						if(isset($com_data['com_id'])){
					?>
							<div class="form-group col-md-6">
								<label class="col-lg-4 col-sm-4">Commodity Code</label>
								<div class="col-lg-8">
									<input type="text" class="form-control" name="com_code" value="<?php if(isset($com_data['com_code'])){ echo $com_data['com_code'];}?>" readonly required>
								</div>
							</div>
					<?php
						}
					?>
					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4">Commodity Name</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="com_name" value="<?php if(isset($com_data['com_name'])){ echo $com_data['com_name'];}?>" 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>


