Skip to content

Commit

Permalink
feat: localization support added
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulgolakiya committed Jul 22, 2022
1 parent f0d4b8f commit 61aab3f
Show file tree
Hide file tree
Showing 15 changed files with 824 additions and 56 deletions.
94 changes: 94 additions & 0 deletions adminlte-stubs/auth-localized/login.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ config('app.name') }}</title>

<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="
crossorigin="anonymous"/>

<link href="{{ mix('css/app.css') }}" rel="stylesheet">

</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="{{ url('/home') }}"><b>{{ config('app.name') }}</b></a>
</div>
<!-- /.login-logo -->

<!-- /.login-box-body -->
<div class="card">
<div class="card-body login-card-body">
<p class="login-box-msg">{{ __('auth.login.title') }}</p>

<form method="post" action="{{ url('/login') }}">
@csrf

<div class="input-group mb-3">
<input type="email"
name="email"
value="{{ old('email') }}"
placeholder="Email"
class="form-control @error('email') is-invalid @enderror">
<div class="input-group-append">
<div class="input-group-text"><span class="fas fa-envelope"></span></div>
</div>
@error('email')
<span class="error invalid-feedback">{{ $message }}</span>
@enderror
</div>

<div class="input-group mb-3">
<input type="password"
name="password"
placeholder="Password"
class="form-control @error('password') is-invalid @enderror">
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
</div>
</div>
@error('password')
<span class="error invalid-feedback">{{ $message }}</span>
@enderror

</div>

<div class="row">
<div class="col-8">
<div class="icheck-primary">
<input type="checkbox" id="remember">
<label for="remember">{{ __('auth.remember_me') }}</label>
</div>
</div>

<div class="col-4">
<button type="submit" class="btn btn-primary btn-block">{{ __('auth.sign_in') }}</button>
</div>

</div>
</form>

<p class="mb-1">
<a href="{{ route('password.request') }}">{{ __('auth.login.forgot_password') }}</a>
</p>
<p class="mb-0">
<a href="{{ route('register') }}" class="text-center">{{ __('auth.login.register_membership') }}</a>
</p>
</div>
<!-- /.login-card-body -->
</div>

</div>
<!-- /.login-box -->

<script src="{{ mix('js/app.js') }}"></script>

</body>
</html>
66 changes: 66 additions & 0 deletions adminlte-stubs/auth-localized/passwords/confirm.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ config('app.name') }}</title>

<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="
crossorigin="anonymous"/>

<link href="{{ mix('css/app.css') }}" rel="stylesheet">

</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="{{ url('/home') }}"><b>{{ config('app.name') }}</b></a>
</div>

<div class="card">
<div class="card-body login-card-body">
<p class="login-box-msg">{{ __('auth.confirm_passwords.title') }}</p>

<form method="POST" action="{{ route('password.confirm') }}">
@csrf

<div class="input-group mb-3">
<input type="password"
name="password"
class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}"
placeholder="Password"
required autocomplete="current-password">
<div class="input-group-append">
<div class="input-group-text"><span class="fas fa-lock"></span></div>
</div>
@if ($errors->has('password'))
<span class="error invalid-feedback">{{ $errors->first('password') }}</span>
@endif
</div>


<div class="row">
<div class="col-12">
<button type="submit" class="btn btn-primary btn-block">{{ __('auth.confirm_password') }}</button>
</div>
<!-- /.col -->
</div>
</form>

<p class="mt-3 mb-1">
<a href="{{ route('password.request') }}">{{ __('auth.confirm_passwords.forgot_your_password') }}</a>
</p>
</div>
<!-- /.login-card-body -->
</div>

</div>

<script src="{{ mix('js/app.js') }}"></script>

</body>
</html>
74 changes: 74 additions & 0 deletions adminlte-stubs/auth-localized/passwords/email.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ config('app.name') }}</title>

<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="
crossorigin="anonymous"/>

<link href="{{ mix('css/app.css') }}" rel="stylesheet">

</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="{{ url('/home') }}"><b>{{ config('app.name') }}</b></a>
</div>

<!-- /.login-logo -->
<div class="card">
<div class="card-body login-card-body">
<p class="login-box-msg">{{ __('auth.forgot_password.title') }}</p>

@if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif

<form action="{{ route('password.email') }}" method="post">
@csrf

<div class="input-group mb-3">
<input type="email"
name="email"
class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}"
placeholder="Email">
<div class="input-group-append">
<div class="input-group-text"><span class="fas fa-envelope"></span></div>
</div>
@if ($errors->has('email'))
<span class="error invalid-feedback">{{ $errors->first('email') }}</span>
@endif
</div>

<div class="row">
<div class="col-12">
<button type="submit" class="btn btn-primary btn-block">{{ __('auth.forgot_password.send_pwd_reset') }}</button>
</div>
<!-- /.col -->
</div>
</form>

<p class="mt-3 mb-1">
<a href="{{ route("login") }}">{{ __('auth.sign_in') }}</a>
</p>
<p class="mb-0">
<a href="{{ route("register") }}" class="text-center">{{ __('auth.registration.title') }}</a>
</p>
</div>
<!-- /.login-card-body -->
</div>
</div>
<!-- /.login-box -->

<script src="{{ mix('js/app.js') }}"></script>

</body>
</html>
94 changes: 94 additions & 0 deletions adminlte-stubs/auth-localized/passwords/reset.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ config('app.name') }}</title>

<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="
crossorigin="anonymous"/>

<link href="{{ mix('css/app.css') }}" rel="stylesheet">

</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="{{ url('/home') }}"><b>{{ config('app.name') }}</b></a>
</div>

<div class="card">
<div class="card-body login-card-body">
<p class="login-box-msg">{{ __('auth.reset_password.title') }}</p>

<form action="{{ route('password.update') }}" method="POST">
@csrf

@php
if (!isset($token)) {
$token = \Request::route('token');
}
@endphp

<input type="hidden" name="token" value="{{ $token }}">

<div class="input-group mb-3">
<input type="email"
name="email"
class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}"
placeholder="Email">
<div class="input-group-append">
<div class="input-group-text"><span class="fas fa-envelope"></span></div>
</div>
@if ($errors->has('email'))
<span class="error invalid-feedback">{{ $errors->first('email') }}</span>
@endif
</div>

<div class="input-group mb-3">
<input type="password"
name="password"
class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}"
placeholder="Password">
<div class="input-group-append">
<div class="input-group-text"><span class="fas fa-lock"></span></div>
</div>
@if ($errors->has('password'))
<span class="error invalid-feedback">{{ $errors->first('password') }}</span>
@endif
</div>

<div class="input-group mb-3">
<input type="password"
name="password_confirmation"
class="form-control"
placeholder="Confirm Password">
<div class="input-group-append">
<div class="input-group-text"><span class="fas fa-lock"></span></div>
</div>
@if ($errors->has('password_confirmation'))
<span class="error invalid-feedback">{{ $errors->first('password_confirmation') }}</span>
@endif
</div>

<div class="row">
<div class="col-12">
<button type="submit" class="btn btn-primary btn-block">{{ __('auth.reset_password.reset_pwd_btn') }}</button>
</div>
<!-- /.col -->
</div>
</form>
</div>
<!-- /.login-card-body -->
</div>

</div>

<script src="{{ mix('js/app.js') }}"></script>

</body>
</html>
Loading

0 comments on commit 61aab3f

Please sign in to comment.