Skip to content

Commit

Permalink
Admin authentication layout editing: complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Slymee committed Dec 26, 2023
1 parent 476052f commit b0df8fe
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 108 deletions.
26 changes: 5 additions & 21 deletions resources/views/backend/adminLogin.blade.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
<title>Dashboard-Login</title>

@vite(['resources/css/admin-login.css'])
@extends('backend.layouts.login-template')

</head>
<body>
<section class="main-section">
<div class="form-banner">
<div class="img-place">
<img class="image" src="{{ URL('images/authenticate.jpg') }}" alt="Authenticate" srcset="">
</div>
@section('content')
<div class="form-place">
<span class="login-dashboard-text">Login to Dashboard</span>
<form action="/admin-validate" method="POST" autocomplete="off">
Expand Down Expand Up @@ -48,7 +33,6 @@
</span>

</div>
</div>
</section>
</body>
</html>
@endsection


64 changes: 23 additions & 41 deletions resources/views/backend/forgotPassword.blade.php
Original file line number Diff line number Diff line change
@@ -1,44 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
@extends('backend.layouts.login-template')

<title>Forgot Password</title>
@vite(['resources/css/admin-login.css'])
</head>
<body>
<section class="main-section">
<div class="form-banner">
<div class="img-place">
<img class="image" src="{{ URL('images/authenticate.jpg') }}" alt="Authenticate" srcset="">
</div>
<div class="form-place">
<span class="login-dashboard-text">Forgot Password</span>
<form action={{ route('admin.forgot.password') }} method="POST" autocomplete="off">
@csrf
<label for="email">Email</label><br>
<input type="text" name="email" id="" placeholder="Enter Email">
<br>
<input type="submit" value="Send Reset Link">
</form>
<span class="error-message">
@if(session('message'))
{{ session('message') }}
@endif
@section('content')
<div class="form-place">
<span class="login-dashboard-text">Forgot Password</span>
<form action={{ route('admin.forgot.password') }} method="POST" autocomplete="off">
@csrf
<label for="email">Email</label><br>
<input type="text" name="email" id="" placeholder="Enter Email">
<br>
<input type="submit" value="Send Reset Link">
</form>
<span class="error-message">
@if(session('message'))
{{ session('message') }}
@endif

@if($errors->any())
@foreach ($errors->all() as $error)
{{ $error}} <br>
@endforeach
@endif
</span>
@if($errors->any())
@foreach ($errors->all() as $error)
{{ $error}} <br>
@endforeach
@endif
</span>

</div>
</div>
</section>

</body>
</html>
</div>
@endsection
23 changes: 23 additions & 0 deletions resources/views/backend/layouts/login-template.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
<title>Dashboard-Login</title>

@vite(['resources/css/admin-login.css'])

</head>
<body>
<section class="main-section">
<div class="form-banner">
<div class="img-place">
<img class="image" src="{{ URL('images/authenticate.jpg') }}" alt="Authenticate" srcset="">
</div>
@yield('content')
</div>
</section>
</body>
</html>
74 changes: 28 additions & 46 deletions resources/views/backend/passwordReset.blade.php
Original file line number Diff line number Diff line change
@@ -1,51 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
@extends('backend.layouts.login-template')

<title>Forgot Password</title>
@vite(['resources/css/admin-login.css'])
</head>
<body>
<section class="main-section">
<div class="form-banner">
<div class="img-place">
<img class="image" src="{{ URL('images/authenticate.jpg') }}" alt="Authenticate" srcset="">
</div>
<div class="form-place">
<span class="login-dashboard-text">Reset Password</span>
<form action={{ route{{ 'admin.new.password' }} }} method="POST" autocomplete="off">
@csrf
<label for="new-password">New Password</label><br>
<input type="password" name="new-password" id="" placeholder="Enter New Password">
<br>
<label for="confirm-password">Confirm Password</label><br>
<input type="password" name="confirm-password" id="" placeholder="Confirm New Password">
@section('content')
<div class="form-place">
<span class="login-dashboard-text">Reset Password</span>
<form action={{ route('admin.new.password') }} method="POST" autocomplete="off">
@csrf
<label for="new-password">New Password</label><br>
<input type="password" name="new-password" id="" placeholder="Enter New Password">
<br>
<label for="confirm-password">Confirm Password</label><br>
<input type="password" name="confirm-password" id="" placeholder="Confirm New Password">

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

<input type="submit" value="Confirm Password">

</form>
<span class="error-message">
@if(session('message'))
{{ session('message') }}
@endif

</form>
<span class="error-message">
@if(session('message'))
{{ session('message') }}
@endif

@if($errors->any())
@foreach ($errors->all() as $error)
{{ $error}} <br>
@endforeach
@endif
</span>
@if($errors->any())
@foreach ($errors->all() as $error)
{{ $error}} <br>
@endforeach
@endif
</span>

</div>
</div>
</section>

</body>
</html>
</div>
@endsection

0 comments on commit b0df8fe

Please sign in to comment.