<style>
	
	.editbutton1
	{
	margin-top:-80px;
	margin-left:-190px;
	}
</style>

<div class="row">
	<div class="col-md-12">
		<h4 class="pro-title">COMPANY PROFILE UPDATE</h4>
		<button class="btn btn-sm btn-default editbutton1">
			<i class="fa fa-edit"></i> BACK
		</button>
	</div><!--col-md-12 close-->
	
	<form id="frmmain" name="frmmain" data-parsley-validate novalidate>
		<div class="col-md-6">
			
			<div class="table-responsive responsiv-table">
				<table class="table bio-table">
					<tbody>
						<tr>      
							<td>Company name</td>
							<td>: <input type="text" id="Cname" name="Cname" value="<?php echo e($data['company']->frm_name); ?>"></td> 
						</tr>
						
						<tr>    
							<td>Create Date</td>
							<td>: <?php echo date('d-M-Y');?></td>       
						</tr>
						
						<tr>    
							<td>Address</td>
							<td>: <input type="text" id="Cadd" name="Cadd" value="<?php echo e($data['company']->frm_address); ?>"></td>       
						</tr>
						
						<tr>    
							<td>State</td>
							<td>: <input type="text" id="Cstate" name="Cstate" value="<?php echo e($data['company']-> 	frm_state); ?>"></td>       
						</tr>
						
						<tr>    
							<td>Contury</td>
							<td>:<input type="text" id="Ccountry" name="Ccountry" value="<?php echo e($data['company']->frm_country); ?>"></td>       
						</tr>
						
						
					</tbody>
				</table>
			</div><!--table-responsive close-->
		</div><!--col-md-6 close-->
		
		<div class="col-md-6">
			
			<div class="table-responsive responsiv-table">
				<table class="table bio-table">
					<tbody>
						<tr>  
							<td>Email Id</td>
							<td>:<input type="text" id="CEmail" name="CEmail" value="<?php echo e($data['company']->frm_email); ?>"></td> 
						</tr>
						<tr>    
							<td>City</td>
							<td>: <input type="text" id="Ccity" name="Ccity" value="<?php echo e($data['company']-> 	frm_city); ?>"></td>       
						</tr>
						<tr>    
							<td>Mobile</td>
							<td>: <input type="text" id="CMob" name="CMob" value="<?php echo e($data['company']->frm_ph1); ?>"></td>       
						</tr>
						<tr>    
							<td>Phone</td>
							<td>: <input type="text" id="CPhone" name="CPhone" value="<?php echo e($data['company']->frm_ph2); ?>"></td>       
						</tr>
						<tr>    
							<td>Status</td>
							<td>: <?php echo e($data['company']->frm_status); ?></td>       
						</tr>
						
						
					</tbody>
				</table>
			</div><!--table-responsive close-->
		</div><!--col-md-6 close-->
		<button class="btn btn-sm btn-default updatess">
			<i class="fa fa-edit"></i> UPDATE
		</button>
	</form>
</div>

<script>
	
	
	$('.editbutton1').click(function(e)
	{
		e.preventDefault();
		$('#sideMenu').load('firm'); 
		
	});
	
	$('.updatess').click(function(e)
	{
		e.preventDefault();
		$.ajax({
			type: "GET",
			url:"/updateProfileCompany",
			data: $('#frmmain').serialize(),
			success:function(data)
			{
				$('#sideMenu').load('firm'); 
			}
			
		});
	});
</script>