<div class="widget">
	<div class="widget-header">
		<h3><i class="fa fa-check-circle"></i> Seller Company Update</h3>
	</div>
	<div class="widget-content">
		<form id="frmmain" name="frmmain" data-parsley-validate novalidate>
			<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
			<?php echo csrf_field(); ?>          
			<div class="alert  alert-info " >
				<ul><li class="fa fa-cog  fa-1x fa-fw"></li>Kindly Update Company Details..</ul>
			</div>						
			<div class="alert alert-success print-success-msg" style="display:none">
				<ul></ul>
			</div>	
			<div class="alert alert-danger print-error-msg" style="display:none">
				<ul></ul>
			</div>
			<div class="form-group">
				<label for="text-input1">Company Name*</label>
				<input type="hidden" class="form-control" id="cmp_id" name="cmp_id" value="<?php echo e($company->cmp_id); ?>" >
				<input type="text" name="companyname" id="companyname" class="form-control" value="<?php echo e($company->cmp_name); ?>">
				<small class="text-danger" id="errcompanyname"></small>
			</div>
			<div class="form-group">
				<label for="text-input1">Business Type*</label>
				<select name="companytype" id="companytype" class="form-control" required>
					<option value="<?php echo e($company->cmp_type); ?>"><?php echo e($company->cmp_type); ?></option>
					<option value="Seller" selected>Seller</option>
					<option value="Buyer & Seller">Buyer & Seller</option>
				</select>
				<small class="text-danger" id="errcompanytype"></small>
			</div>
			<div class="form-group">
				<label>Description</label>
				<textarea class="form-control" name="description" id="description" rows="5" cols="30" ><?php echo e($company->cmp_description); ?></textarea>
				<small class="text-danger" id="errdescription" ></small>
			</div>
			<div class="form-group">
				<label for="multiselect1">Status*</label>
				<br/>
				<select name="status" id="status" class="form-control" required>
					<option value="<?php echo e($company->cmp_status); ?>"><?php echo e($company->cmp_status); ?></option>
					<option value="Active">Active</option>
					<option value="Inactive">Inactive</option>
				</select>
				<small class="text-danger" id="errstatus"></small>
			</div>
			<br/>
			<button class="btn btn-primary companyUpdate">Update</button>
		</form>
	</div>
</div>
<script>
	$('.companyUpdate').click(function(e)
	{
		$.ajax({
				type: "POST",
				url:"/purchaseeditcompanyUpdate",
				data: $('#frmmain').serialize(),
				success: function (data) 
				{
				   $('.update').html(data);
				}
			});
	})
</script>