signup.blade.php 3.47 KB
@include('layout.header')
<?php 
require_once( app_path().'/lib/simple-php-captcha-master/simple-php-captcha.php' );
$captchaobj=simple_php_captcha();
Session::put('kstych_captcha',$captchaobj);
?>



			
			<div class="layout-app"><!-- row-app -->
<div class="row row-app">

	<!-- col -->
	

		<!-- col-separator.box -->
		<div class="col-separator col-unscrollable box">
			
			<!-- col-table -->
			<div class="col-table">
				
				<h4 class="innerAll margin-none border-bottom text-center bg-primary"><i class="fa fa-pencil"></i> Create a new Account</h4>

				<!-- col-table-row -->
				<div class="col-table-row">

					<!-- col-app -->
					<div class="col-app col-unscrollable">

						<!-- col-app -->
						<div class="col-app">
							<div class="login">
								<div class="placeholder text-center"><i class="fa fa-pencil"></i></div>
								
								<div class="panel panel-default col-sm-6 col-sm-offset-3">

								  <div class="panel-body">
								  	<form role="form" action="signup" method=post>
								  	<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
<?php 
$class="";
$type="";
$msg="";
$error=Input::get("e");
if(isset($error))
{
  if($error=="api1"){$class="danger";$type="API Failure";$msg="Cannot verify API credentials";}
  else if($error=="api2"){$class="danger";$type="API Data Error";$msg="API Data is not in acceptable format";}
  else if($error=="api3"){$class="danger";$type="API User Error";$msg="Email is check failed, please send correct Email id";}
  else {$class="danger";$type="Failed!";$msg="Unknown Error. Method not found";}
  
?>
<!-- Alert -->
<div class="alert alert-{!!$class!!}">
<!-- 	<button type="button" class="close" data-dismiss="alert">&times;</button> -->
	<strong>{!!$type!!}</strong> {!!$msg!!}
</div>
<!-- // Alert END -->
<?php } ?>

									  <div class="form-group">
									    <label for="exampleInputEmail1">User Name</label>
									    <input type="text" class="form-control" id="exampleInputEmail1" name=fullname placeholder="Firstname Lastname">
									  </div>
									
								  	  <div class="form-group">
									    <label for="exampleInputEmail1">Email address</label>
									    <input type="email" class="form-control" id="exampleInputEmail1" name=username placeholder="Enter email id">
									  </div>
									  <div class="form-group">
									    <label for="exampleInputPassword1">Password</label>
									    <input type="password" class="form-control" id="exampleInputPassword1" name=password placeholder="Password">
									  </div>

									    <div class="form-group">
									    <label for="exampleInputPassword1">Captcha</label>
									    <img src="{!!k_captcha_img();!!}" >
									    <input type="text" class="form-control" id="kstych_captcha" name=kstych_captcha placeholder="">
									  </div>
									  <div class="form-group">
									    <label for="exampleInputPassword1"></label>
									    <a href="index?section=termsandconditions" target=_BLANK>I Agree to terms and conditions.</a>
									  </div>
									  <button type="submit" class="btn btn-primary btn-block">Create Account</button>

									
									</form>
								   
								  </div>
								
								</div>
					

							
							</div>


						</div>
						<!-- // END col-app -->

					</div>
					<!-- // END col-app.col-unscrollable -->

				</div>
				<!-- // END col-table-row -->
			
			</div>
			<!-- // END col-table -->
			
		</div>
		<!-- // END col-separator.box -->


</div>
<!-- // END row-app -->




@include('layout.footer')