145 lines
3.9 KiB
PHP
145 lines
3.9 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Reset Password</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11.16.0/dist/sweetalert2.min.css">
|
|
<style>
|
|
body {
|
|
background-color: #00b894;
|
|
height: 100vh;
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.login-wrapper {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
padding: 0 15px;
|
|
}
|
|
|
|
.login-card {
|
|
background: white;
|
|
padding: 2rem;
|
|
border-radius: 15px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.login-header {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.login-header h3 {
|
|
color: #333;
|
|
}
|
|
|
|
.form-control {
|
|
border: 1px solid #ddd;
|
|
padding: 0.8rem;
|
|
margin-bottom: 1rem;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.btn-login {
|
|
background-color: #00b894;
|
|
border: none;
|
|
padding: 0.8rem;
|
|
border-radius: 8px;
|
|
width: 100%;
|
|
color: white;
|
|
font-weight: 500;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.btn-login:hover {
|
|
background-color: #00a38c;
|
|
}
|
|
|
|
.forgot-signup {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 1rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.forgot-signup a {
|
|
color: #00b894;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.forgot-signup a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="login-wrapper">
|
|
<div class="login-card">
|
|
<div class="login-header">
|
|
<h3 class="text-muted">Reset Password</h3>
|
|
</div>
|
|
|
|
<form method="POST" action="{{ url('reset-password') }}">
|
|
@csrf
|
|
<input type="hidden" name="token" value="{{ $token }}">
|
|
|
|
<div class="mb-3">
|
|
<input type="password" class="form-control @error('password') is-invalid @enderror" name="password"
|
|
placeholder="New Password" required>
|
|
@error('password')
|
|
<span class="invalid-feedback" role="alert">
|
|
<strong>{{ $message }}</strong>
|
|
</span>
|
|
@enderror
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<input type="password" class="form-control" name="password_confirmation"
|
|
placeholder="Confirm Password" required>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-login">Reset Password</button>
|
|
</form>
|
|
|
|
<div class="forgot-signup">
|
|
<a href="{{ url('login') }}">Back to Login</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.16.0/dist/sweetalert2.all.min.js"></script>
|
|
|
|
@if (session('success'))
|
|
<script>
|
|
Swal.fire({
|
|
icon: 'success',
|
|
title: 'Success',
|
|
text: '{{ session('success') }}',
|
|
});
|
|
</script>
|
|
@endif
|
|
|
|
@if (session('error'))
|
|
<script>
|
|
Swal.fire({
|
|
icon: 'error',
|
|
title: 'Error',
|
|
text: '{{ session('error') }}',
|
|
});
|
|
</script>
|
|
@endif
|
|
</body>
|
|
|
|
</html>
|