login.blade.php
4.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!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">×</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')