<script src="assets/js/plugins/parsley-validation/parsley.min.js"></script>  
		<!-- MAIN CONTENT WRAPPER -->
		
			<!-- top general alert -->
			<div class="alert alert-danger top-general-alert">
				<span>If you <strong>can't see the logo</strong> on the top left, please reset the style on right style switcher (for upgraded theme only).</span>
				<button type="button" class="close">&times;</button>
			</div>
			<!-- end top general alert -->
			<div class="row">
				<div class="col-lg-12 ">
					<ul class="breadcrumb">
						<li><i class="fa fa-home"></i><a href="/home">Home</a></li>
						<li><a class="modules">Modules</a></li>
						<li class="active">Create module</li>
					</ul>
				</div>
				
			<!-- main -->
			<div class="content">
				
				<div class="main-content">
					<div class="row">
						<div class="col-md-3"></div>
						<div class="col-md-6">
							<!-- ADVANCED VALIDATION -->
							<div class="widget">
								<div class="widget-header">
									<h3><i class="fa fa-check-circle"></i> Create Module</h3></div>
								<div class="widget-content">
									<form id="advancedform" data-parsley-validate novalidate>
										<div class="form-group">
											<label for="text-input1">Module Name</label>
											<input type="text" id="text-input1" name="text-input1" class="form-control" required data-parsley-minlength="8" Placeholder="Enter Module name EX:DEVELOPER>Modules">
										</div>
										<div class="form-group">
											<label for="text-input2">Module Url</label>
											<input type="text" id="text-input2"name="text-input2" class="form-control" required data-parsley-range="[5,10]"Placeholder="Enter Module url">
										</div>
										<div class="form-group">
											<label for="text-input3">Class</label>
											<input type="text" name="text-input3" id="text-input3" class="form-control" required data-parsley-minlength="5"Placeholder="Enter Module class">
										</div>
										<div class="form-group">
											<label for="text-input4">Icon</label>
											<input type="text" name="text-input4" id="text-input4" class="form-control" required data-parsley-range="[5,30]"Placeholder="Enter Module icon">
										</div>
										
										<input type="hidden" id="_token" name="_token" class="form-control" placeholder="Enter your email address" value="{{csrf_token()}}">
										
										<br/>
										<button type="submit" class="btn btn-primary createNew">SUBMIT</button>
									</form>
								</div>
							</div>
							<!-- END ADVANCED VALIDATION -->
						</div>
					</div>
				</div>
			</div>
			<!-- /main -->
<script>
$('.modules').click(function(e)
{
	$('#sideMenu').load('Modules');
});
i=0;
$('.createNew').click(function(e)
{
	$.ajax({
		url:'/createMod',
		type:'post',
		data:$('#advancedform').serialize(),
		success: function(data) {
			$('#sideMenu').load('Modules');
		}
	});
});
</script>