<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-truck truck_icon"></i><br/> <b> <?php echo $view_type;?> Transporter</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();?>transporter_ctrl/insert_transporter/<?php echo $tl_type;?>/<?php if(isset($tl_data['tl_id'])){ echo $tl_data['tl_id'];}?>">
				<div class="col-lg-12">
					<?php
						if(isset($tl_data['tl_id'])){
					?>
							<div class="form-group col-md-6">
								<label class="col-lg-4 col-sm-4">Transporter Code</label>
								<div class="col-lg-8">
									<input type="text" class="form-control" name="tl_code" value="<?php if(isset($tl_data['tl_code'])){ echo $tl_data['tl_code'];}?>" readonly required>
								</div>
							</div>
					<?php
						}
					?>
					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4">Transporter Name</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="tl_name" value="<?php if(isset($tl_data['tl_name'])){ echo $tl_data['tl_name'];}?>" required>
						</div>
					</div>
					<div class="form-group col-md-6">
						<label  class="col-lg-4 col-sm-4">Mobile Number</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="tl_mobile" value="<?php if(isset($tl_data['tl_mobile'])){ echo $tl_data['tl_mobile'];}?>" required>
						</div>
					</div>

					
					<div class="form-group col-md-6">
						<label  class="col-lg-4 col-sm-4">Email id</label>
						<div class="col-lg-8">
							<input type="email" class="form-control" name="tl_email" value="<?php if(isset($tl_data['tl_email'])){ echo $tl_data['tl_email'];}?>" required>
						</div>
					</div>
					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4 ">TIN No</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="tl_tin_no" value="<?php if(isset($tl_data['tl_tin_no'])){ echo $tl_data['tl_tin_no'];}?>" required>
						</div>
					</div>

					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4 ">VRN Np</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="tl_vrn_np" value="<?php if(isset($tl_data['tl_vrn_np'])){ echo $tl_data['tl_vrn_np'];}?>" required>
						</div>
					</div>

					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4">Country</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="tl_state" value="<?php if(isset($tl_data['tl_state'])){ echo $tl_data['tl_state'];}?>" required>
						</div>
					</div>
					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4 ">Province</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="tl_district" value="<?php if(isset($tl_data['tl_district'])){ echo $tl_data['tl_district'];}?>" required>
						</div>
					</div>
					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4 ">Place</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="tl_place" value="<?php if(isset($tl_data['tl_place'])){ echo $tl_data['tl_place'];}?>" required>
						</div>
					</div>
					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4 ">pincode</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="tl_pincode" value="<?php if(isset($tl_data['tl_pincode'])){ echo $tl_data['tl_pincode'];}?>" required>
						</div>
					</div>
					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4 ">Address1</label>
						<div class="col-lg-8">
							<textarea rows="1" class="form-control"  name="tl_address" required> <?php if(isset($tl_data['tl_address'])){ echo $tl_data['tl_address'];}?> </textarea>
						</div>
					</div>

					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4 ">Address2</label>
						<div class="col-lg-8">
							<textarea rows="1" class="form-control"  name="tl_address2" required> <?php if(isset($tl_data['tl_address2'])){ echo $tl_data['tl_address2'];}?> </textarea>
						</div>
					</div>

					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4 ">Contact Person Name</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="tl_co_name" value="<?php if(isset($tl_data['tl_co_name'])){ echo $tl_data['tl_co_name'];}?>" required>
						</div>
					</div>

					<div class="form-group col-md-6">
						<label class="col-lg-4 col-sm-4 ">Phone No.</label>
						<div class="col-lg-8">
							<input type="text" class="form-control" name="tl_phone" value="<?php if(isset($tl_data['tl_phone'])){ echo $tl_data['tl_phone'];}?>" required>
						</div>
					</div>
					<div class=" col-md-12 "> </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>