This commit is contained in:
Dr Masroor Ehsan 2025-01-21 00:00:20 +06:00
parent 43a4e9eb72
commit c84897d021
2 changed files with 82 additions and 109 deletions

View File

@ -38,8 +38,8 @@ document.addEventListener('DOMContentLoaded', function (e) {
message: 'Please enter email / username' message: 'Please enter email / username'
}, },
stringLength: { stringLength: {
min: 6, min: 4,
message: 'Username must be more than 6 characters' message: 'Username must be more than 4 characters'
} }
} }
}, },

View File

@ -1,5 +1,4 @@
@php @php
use Illuminate\Support\Facades\Route;
$configData = App\Services\ThemeHelper::appClasses(); $configData = App\Services\ThemeHelper::appClasses();
$customizerHidden = 'customizer-hide'; $customizerHidden = 'customizer-hide';
@endphp @endphp
@ -8,79 +7,67 @@
@section('title', 'Login') @section('title', 'Login')
@section('vendor-style')
@vite([
'resources/assets/vendor/libs/@form-validation/form-validation.scss'
])
@endsection
@section('page-style') @section('page-style')
{{-- Page Css files --}} @vite([
@vite('resources/assets/vendor/scss/pages/page-auth.scss') 'resources/assets/vendor/scss/pages/page-auth.scss'
])
@endsection
@section('vendor-script')
@vite([
'resources/assets/vendor/libs/@form-validation/popular.js',
'resources/assets/vendor/libs/@form-validation/bootstrap5.js',
'resources/assets/vendor/libs/@form-validation/auto-focus.js'
])
@endsection
@section('page-script')
@vite([
'resources/assets/js/pages-auth.js'
])
@endsection @endsection
@section('content') @section('content')
<div class="authentication-wrapper authentication-cover"> <div class="position-relative">
<!-- Logo --> <div class="authentication-wrapper authentication-basic container-p-y p-4 p-sm-0">
<a href="{{ url('/') }}" class="auth-cover-brand d-flex align-items-center gap-2"> <div class="authentication-inner py-6">
<span
class="app-brand-logo demo">@include('_partials.macros',["width"=>25,"withbg"=>'var(--bs-primary)'])</span>
<span class="app-brand-text demo text-heading fw-semibold">{{ config('variables.templateName') }}</span>
</a>
<!-- /Logo -->
<div class="authentication-inner row m-0">
<!-- /Left Section -->
<div class="d-none d-lg-flex col-lg-7 col-xl-8 align-items-center justify-content-center p-12 pb-2">
<img src="{{ asset('assets/img/illustrations/auth-login-illustration-'.$configData['style'].'.png') }}"
class="auth-cover-illustration w-100" alt="auth-illustration"
data-app-light-img="illustrations/auth-login-illustration-light.png"
data-app-dark-img="illustrations/auth-login-illustration-dark.png"/>
<img src="{{ asset('assets/img/illustrations/auth-cover-login-mask-'.$configData['style'].'.png') }}"
class="authentication-image" alt="mask"
data-app-light-img="illustrations/auth-cover-login-mask-light.png"
data-app-dark-img="illustrations/auth-cover-login-mask-dark.png"/>
</div>
<!-- /Left Section -->
<!-- Login --> <!-- Login -->
<div <div class="card p-md-7 p-1">
class="d-flex col-12 col-lg-5 col-xl-4 align-items-center authentication-bg position-relative py-sm-12 px-12 py-6"> <!-- Logo -->
<div class="w-px-400 mx-auto pt-5 pt-lg-0"> <div class="app-brand justify-content-center mt-5">
<h4 class="mb-1">Welcome to {{ config('variables.templateName') }}! 👋</h4> <a href="{{url('/')}}" class="app-brand-link gap-2">
<p class="mb-5">Please sign-in to your account and start the adventure</p> <span class="app-brand-logo demo">@include('_partials.macros',["width"=>25,"withbg"=>'var(--bs-primary)'])</span>
<span class="app-brand-text demo text-heading fw-semibold">{{config('variables.templateName')}}</span>
</a>
</div>
<!-- /Logo -->
@if (session('status')) <div class="card-body mt-1">
<div class="alert alert-success mb-3" role="alert"> <h4 class="mb-2">Welcome to {{config('variables.templateName')}}! 👋</h4>
<div class="alert-body"> <p class="mb-8">Please sign-in to your account and start the adventure</p>
{{ session('status') }}
</div> <form id="formAuthentication" class="mb-5" action="{{ route('login.store') }}" method="POST">
</div>
@endif
<form id="formAuthentication" class="mb-5" action="{{ route('login') }}" method="POST">
@csrf @csrf
<div class="form-floating form-floating-outline mb-5"> <div class="form-floating form-floating-outline mb-5">
<input type="text" class="form-control @error('username') is-invalid @enderror" <input type="text" class="form-control" id="username" name="username" placeholder="Enter your username" autofocus>
id="login-username" name="username" autofocus <label for="username">Username</label>
value="{{ old('username') }}">
<label for="login-username">Username</label>
@error('username')
<span class="invalid-feedback" role="alert">
<span class="fw-medium">{{ $message }}</span>
</span>
@enderror
</div> </div>
<div class="mb-5"> <div class="mb-5">
<div class="form-password-toggle"> <div class="form-password-toggle">
<div class="input-group input-group-merge @error('password') is-invalid @enderror"> <div class="input-group input-group-merge">
<div class="form-floating form-floating-outline"> <div class="form-floating form-floating-outline">
<input type="password" id="login-password" <input type="password" id="password" class="form-control" name="password" placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;" aria-describedby="password" />
class="form-control @error('password') is-invalid @enderror" <label for="password">Password</label>
name="password"
placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;"
aria-describedby="password"/>
<label for="login-password">Password</label>
</div> </div>
<span class="input-group-text cursor-pointer"><i class="ri-eye-off-line"></i></span> <span class="input-group-text cursor-pointer"><i class="ri-eye-off-line"></i></span>
</div> </div>
@error('password')
<span class="invalid-feedback" role="alert">
<span class="fw-medium">{{ $message }}</span>
</span>
@enderror
</div> </div>
</div> </div>
<div class="mb-5 d-flex justify-content-between mt-5"> <div class="mb-5 d-flex justify-content-between mt-5">
@ -90,26 +77,15 @@ class="form-control @error('password') is-invalid @enderror"
Remember Me Remember Me
</label> </label>
</div> </div>
@if (Route::has('password.request')) <a href="{{url('auth/forgot-password-basic')}}" class="float-end mb-1 mt-2">
<a href="{{ route('password.request') }}" class="float-end mb-1 mt-2">
<span>Forgot Password?</span> <span>Forgot Password?</span>
</a> </a>
@endif
</div> </div>
<button class="btn btn-primary d-grid w-100"> <div class="mb-5">
Sign in <button class="btn btn-primary d-grid w-100" type="submit">Sign in</button>
</button> </div>
</form> </form>
<p class="text-center">
<span>New on our platform?</span>
@if (Route::has('register'))
<a href="{{ route('register') }}">
<span>Create an account</span>
</a>
@endif
</p>
<div class="divider my-5"> <div class="divider my-5">
<div class="divider-text">or</div> <div class="divider-text">or</div>
</div> </div>
@ -123,10 +99,6 @@ class="form-control @error('password') is-invalid @enderror"
<i class="tf-icons ri-twitter-fill"></i> <i class="tf-icons ri-twitter-fill"></i>
</a> </a>
<a href="javascript:;" class="btn btn-icon rounded-circle btn-text-github">
<i class="tf-icons ri-github-fill"></i>
</a>
<a href="javascript:;" class="btn btn-icon rounded-circle btn-text-google-plus"> <a href="javascript:;" class="btn btn-icon rounded-circle btn-text-google-plus">
<i class="tf-icons ri-google-fill"></i> <i class="tf-icons ri-google-fill"></i>
</a> </a>
@ -136,4 +108,5 @@ class="form-control @error('password') is-invalid @enderror"
<!-- /Login --> <!-- /Login -->
</div> </div>
</div> </div>
</div>
@endsection @endsection