login.blade.php 4.81 KB
<!DOCTYPE html>
<html class="app">
<head>
	<title>{!! Config::get("app.name") !!} - {!! Config::get('app.app_title') !!}</title>
	
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<meta name="author" content="Siddharth Upmanyu">

	<?php if(isset($logo_s))$fico=$logo_s;else $fico="favicon.png"; ?>
	<link rel="icon" href="../assets/images/{!!$fico!!}" type="image/x-icon" />
	<link rel="shortcut icon" href="../assets/images/{!!$fico!!}" type="image/x-icon" />
	
	<link rel="stylesheet" href="../style?skin=<?php if(isset($skin))echo $skin; ?>" />
	<script type="text/javascript" src="../jshead"></script>

</head>
<body class="">

			
			<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"><i class="fa fa-lock"></i> Login to your 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-lock"></i></div>
								<div class="panel panel-default col-sm-6 col-sm-offset-3">

								  <div class="panel-body">
								  	<form role="form" action="mdialerlogin" method=get>
								  	<input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
								  	<input type=hidden name=qstr value="{!!base64_encode($_SERVER['QUERY_STRING'])!!}" />

<?php 
$class="";
$type="";
$msg="";
if(isset($error))
{
  if($error=="activationsuccess"){$class="success";$type="Verified!";$msg="Congratulations, your account is now active, please login to continue.";}
  else if($error=="authfailed"){$class="danger";$type="Login Failed!";$msg="Incorrect Email id or password.";}
  else if($error=="Unverified"){$class="danger";$type="Verification Required!";$msg="We have sent a verification mail to your email id, please follow instructions in the mail.";}
  else if($error=="alreadyverified"){$class="warning";$type="Already Verified!";$msg="You have already verified your account.";}
  else if($error=="msie"){$class="info";$type="Internet Explorer Detected!";$msg="This application doesnot work with MS Internet explorer, please download <a href='http://firefox.com' target=_BLANK>Mozilla Firefox</a> or <a href='http://google.com/chrome' target=_BLANK>Google Chrome</a> to use.";}
  else if($error=="forgotpassword"){$class="info";$type="Password Reminder Sent";$msg="Please check your email for instructions to login to your account. Thankyou";}
  else if($error=="passwordchanged"){$class="success";$type="Password Changed successfully";$msg="You can now login with your new password below!";}
  else if($error=="resetexpired"){$class="danger";$type="Link Expired";$msg="The Link You used is now Expired!";}
  else if($error=="Disabled"){$class="danger";$type="Disabled";$msg="This user account has been disabled, please contact Support!";}
  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">Login</label>
									    <input type="text" class="form-control" id="exampleInputEmail1" name=username placeholder="Enter emailid">
									  </div>
									  <div class="form-group">
									    <label for="exampleInputPassword1">Password</label>
									    <input type="password" class="form-control" id="exampleInputPassword1" name=password placeholder="Password">
									  </div>

									  <button type="submit" class="btn btn-primary btn-block">Login</button>
<!-- 									  <button type="button" onclick='document.location="signup";' class="btn btn-primary btn-block">Signup</button> -->

									 <!-- <div class="form-control">
									    <label>
									      <input type="checkbox"> Remember my details
									    </label>
									  </div>-->

									</form>
								   
								  </div>
								
								</div>
<!--								<div class="col-sm-2 col-sm-4 col-sm-offset-4 text-center">
									<a href="signup" class="btn btn-info">Create a new account? <i class="fa fa-pencil"></i> </a>
								</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')