Skip to content

Commit 61aab3f

Browse files
committed
feat: localization support added
1 parent f0d4b8f commit 61aab3f

15 files changed

+824
-56
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<title>{{ config('app.name') }}</title>
7+
8+
<!-- Tell the browser to be responsive to screen width -->
9+
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
10+
11+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
12+
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="
13+
crossorigin="anonymous"/>
14+
15+
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
16+
17+
</head>
18+
<body class="hold-transition login-page">
19+
<div class="login-box">
20+
<div class="login-logo">
21+
<a href="{{ url('/home') }}"><b>{{ config('app.name') }}</b></a>
22+
</div>
23+
<!-- /.login-logo -->
24+
25+
<!-- /.login-box-body -->
26+
<div class="card">
27+
<div class="card-body login-card-body">
28+
<p class="login-box-msg">{{ __('auth.login.title') }}</p>
29+
30+
<form method="post" action="{{ url('/login') }}">
31+
@csrf
32+
33+
<div class="input-group mb-3">
34+
<input type="email"
35+
name="email"
36+
value="{{ old('email') }}"
37+
placeholder="Email"
38+
class="form-control @error('email') is-invalid @enderror">
39+
<div class="input-group-append">
40+
<div class="input-group-text"><span class="fas fa-envelope"></span></div>
41+
</div>
42+
@error('email')
43+
<span class="error invalid-feedback">{{ $message }}</span>
44+
@enderror
45+
</div>
46+
47+
<div class="input-group mb-3">
48+
<input type="password"
49+
name="password"
50+
placeholder="Password"
51+
class="form-control @error('password') is-invalid @enderror">
52+
<div class="input-group-append">
53+
<div class="input-group-text">
54+
<span class="fas fa-lock"></span>
55+
</div>
56+
</div>
57+
@error('password')
58+
<span class="error invalid-feedback">{{ $message }}</span>
59+
@enderror
60+
61+
</div>
62+
63+
<div class="row">
64+
<div class="col-8">
65+
<div class="icheck-primary">
66+
<input type="checkbox" id="remember">
67+
<label for="remember">{{ __('auth.remember_me') }}</label>
68+
</div>
69+
</div>
70+
71+
<div class="col-4">
72+
<button type="submit" class="btn btn-primary btn-block">{{ __('auth.sign_in') }}</button>
73+
</div>
74+
75+
</div>
76+
</form>
77+
78+
<p class="mb-1">
79+
<a href="{{ route('password.request') }}">{{ __('auth.login.forgot_password') }}</a>
80+
</p>
81+
<p class="mb-0">
82+
<a href="{{ route('register') }}" class="text-center">{{ __('auth.login.register_membership') }}</a>
83+
</p>
84+
</div>
85+
<!-- /.login-card-body -->
86+
</div>
87+
88+
</div>
89+
<!-- /.login-box -->
90+
91+
<script src="{{ mix('js/app.js') }}"></script>
92+
93+
</body>
94+
</html>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<title>{{ config('app.name') }}</title>
7+
8+
<!-- Tell the browser to be responsive to screen width -->
9+
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
10+
11+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
12+
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="
13+
crossorigin="anonymous"/>
14+
15+
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
16+
17+
</head>
18+
<body class="hold-transition login-page">
19+
<div class="login-box">
20+
<div class="login-logo">
21+
<a href="{{ url('/home') }}"><b>{{ config('app.name') }}</b></a>
22+
</div>
23+
24+
<div class="card">
25+
<div class="card-body login-card-body">
26+
<p class="login-box-msg">{{ __('auth.confirm_passwords.title') }}</p>
27+
28+
<form method="POST" action="{{ route('password.confirm') }}">
29+
@csrf
30+
31+
<div class="input-group mb-3">
32+
<input type="password"
33+
name="password"
34+
class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}"
35+
placeholder="Password"
36+
required autocomplete="current-password">
37+
<div class="input-group-append">
38+
<div class="input-group-text"><span class="fas fa-lock"></span></div>
39+
</div>
40+
@if ($errors->has('password'))
41+
<span class="error invalid-feedback">{{ $errors->first('password') }}</span>
42+
@endif
43+
</div>
44+
45+
46+
<div class="row">
47+
<div class="col-12">
48+
<button type="submit" class="btn btn-primary btn-block">{{ __('auth.confirm_password') }}</button>
49+
</div>
50+
<!-- /.col -->
51+
</div>
52+
</form>
53+
54+
<p class="mt-3 mb-1">
55+
<a href="{{ route('password.request') }}">{{ __('auth.confirm_passwords.forgot_your_password') }}</a>
56+
</p>
57+
</div>
58+
<!-- /.login-card-body -->
59+
</div>
60+
61+
</div>
62+
63+
<script src="{{ mix('js/app.js') }}"></script>
64+
65+
</body>
66+
</html>
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<title>{{ config('app.name') }}</title>
7+
8+
<!-- Tell the browser to be responsive to screen width -->
9+
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
10+
11+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
12+
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="
13+
crossorigin="anonymous"/>
14+
15+
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
16+
17+
</head>
18+
<body class="hold-transition login-page">
19+
<div class="login-box">
20+
<div class="login-logo">
21+
<a href="{{ url('/home') }}"><b>{{ config('app.name') }}</b></a>
22+
</div>
23+
24+
<!-- /.login-logo -->
25+
<div class="card">
26+
<div class="card-body login-card-body">
27+
<p class="login-box-msg">{{ __('auth.forgot_password.title') }}</p>
28+
29+
@if (session('status'))
30+
<div class="alert alert-success">
31+
{{ session('status') }}
32+
</div>
33+
@endif
34+
35+
<form action="{{ route('password.email') }}" method="post">
36+
@csrf
37+
38+
<div class="input-group mb-3">
39+
<input type="email"
40+
name="email"
41+
class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}"
42+
placeholder="Email">
43+
<div class="input-group-append">
44+
<div class="input-group-text"><span class="fas fa-envelope"></span></div>
45+
</div>
46+
@if ($errors->has('email'))
47+
<span class="error invalid-feedback">{{ $errors->first('email') }}</span>
48+
@endif
49+
</div>
50+
51+
<div class="row">
52+
<div class="col-12">
53+
<button type="submit" class="btn btn-primary btn-block">{{ __('auth.forgot_password.send_pwd_reset') }}</button>
54+
</div>
55+
<!-- /.col -->
56+
</div>
57+
</form>
58+
59+
<p class="mt-3 mb-1">
60+
<a href="{{ route("login") }}">{{ __('auth.sign_in') }}</a>
61+
</p>
62+
<p class="mb-0">
63+
<a href="{{ route("register") }}" class="text-center">{{ __('auth.registration.title') }}</a>
64+
</p>
65+
</div>
66+
<!-- /.login-card-body -->
67+
</div>
68+
</div>
69+
<!-- /.login-box -->
70+
71+
<script src="{{ mix('js/app.js') }}"></script>
72+
73+
</body>
74+
</html>
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<title>{{ config('app.name') }}</title>
7+
8+
<!-- Tell the browser to be responsive to screen width -->
9+
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
10+
11+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
12+
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="
13+
crossorigin="anonymous"/>
14+
15+
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
16+
17+
</head>
18+
<body class="hold-transition login-page">
19+
<div class="login-box">
20+
<div class="login-logo">
21+
<a href="{{ url('/home') }}"><b>{{ config('app.name') }}</b></a>
22+
</div>
23+
24+
<div class="card">
25+
<div class="card-body login-card-body">
26+
<p class="login-box-msg">{{ __('auth.reset_password.title') }}</p>
27+
28+
<form action="{{ route('password.update') }}" method="POST">
29+
@csrf
30+
31+
@php
32+
if (!isset($token)) {
33+
$token = \Request::route('token');
34+
}
35+
@endphp
36+
37+
<input type="hidden" name="token" value="{{ $token }}">
38+
39+
<div class="input-group mb-3">
40+
<input type="email"
41+
name="email"
42+
class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}"
43+
placeholder="Email">
44+
<div class="input-group-append">
45+
<div class="input-group-text"><span class="fas fa-envelope"></span></div>
46+
</div>
47+
@if ($errors->has('email'))
48+
<span class="error invalid-feedback">{{ $errors->first('email') }}</span>
49+
@endif
50+
</div>
51+
52+
<div class="input-group mb-3">
53+
<input type="password"
54+
name="password"
55+
class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}"
56+
placeholder="Password">
57+
<div class="input-group-append">
58+
<div class="input-group-text"><span class="fas fa-lock"></span></div>
59+
</div>
60+
@if ($errors->has('password'))
61+
<span class="error invalid-feedback">{{ $errors->first('password') }}</span>
62+
@endif
63+
</div>
64+
65+
<div class="input-group mb-3">
66+
<input type="password"
67+
name="password_confirmation"
68+
class="form-control"
69+
placeholder="Confirm Password">
70+
<div class="input-group-append">
71+
<div class="input-group-text"><span class="fas fa-lock"></span></div>
72+
</div>
73+
@if ($errors->has('password_confirmation'))
74+
<span class="error invalid-feedback">{{ $errors->first('password_confirmation') }}</span>
75+
@endif
76+
</div>
77+
78+
<div class="row">
79+
<div class="col-12">
80+
<button type="submit" class="btn btn-primary btn-block">{{ __('auth.reset_password.reset_pwd_btn') }}</button>
81+
</div>
82+
<!-- /.col -->
83+
</div>
84+
</form>
85+
</div>
86+
<!-- /.login-card-body -->
87+
</div>
88+
89+
</div>
90+
91+
<script src="{{ mix('js/app.js') }}"></script>
92+
93+
</body>
94+
</html>

0 commit comments

Comments
 (0)