68 lines
3.9 KiB
PHP
68 lines
3.9 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title', ' - Reset Password')
|
|
|
|
@section('content')
|
|
<div class="min-h-screen flex items-center justify-center p-4 pt-28 md:pt-32">
|
|
<div class="max-w-md w-full">
|
|
<div style="border-radius: 32px;" class="bg-white dark:bg-gray-800 shadow-xl overflow-hidden p-6">
|
|
<!-- Logo
|
|
<div class="flex justify-center mb-4">
|
|
<a href="/" class="text-2xl font-bold text-gray-800 dark:text-white">Recaje</a>
|
|
</div> -->
|
|
|
|
<!-- Heading -->
|
|
<h1 class="text-2xl font-bold text-center mb-8 text-gray-800 dark:text-white">Reset Password</h1>
|
|
|
|
<!-- Form -->
|
|
<form method="POST" action="{{ route('password.update') }}" class="space-y-6">
|
|
@csrf
|
|
<input type="hidden" name="token" value="{{ $token }}">
|
|
|
|
<!-- Email -->
|
|
<div class="relative">
|
|
<input id="email" type="email" name="email" value="{{ $email ?? old('email') }}" required readonly
|
|
class="w-full px-4 py-3 rounded-lg border border-gray-300 dark:border-gray-600 dark:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-gray-800 dark:text-white bg-gray-100 dark:bg-gray-600 cursor-not-allowed"
|
|
placeholder="Email">
|
|
@error('email')
|
|
<span class="text-red-500 text-sm mt-1">{{ $message }}</span>
|
|
@enderror
|
|
</div>
|
|
|
|
<!-- Password -->
|
|
<div class="relative">
|
|
<input id="password" type="password" name="password" required
|
|
class="w-full px-4 py-3 rounded-lg border border-gray-300 dark:border-gray-600 dark:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-gray-800 dark:text-white"
|
|
placeholder="Password Baru">
|
|
@error('password')
|
|
<span class="text-red-500 text-sm mt-1">{{ $message }}</span>
|
|
@enderror
|
|
</div>
|
|
|
|
<!-- Confirm Password -->
|
|
<div class="relative">
|
|
<input id="password_confirmation" type="password" name="password_confirmation" required
|
|
class="w-full px-4 py-3 rounded-lg border border-gray-300 dark:border-gray-600 dark:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-gray-800 dark:text-white"
|
|
placeholder="Konfirmasi Password Baru">
|
|
</div>
|
|
|
|
<!-- Submit Button -->
|
|
<div class="relative mb-3">
|
|
<button type="submit" class="w-full bg-gradient-to-r from-blue-500 to-purple-600 text-white py-3 rounded-lg hover:from-blue-600 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-all duration-300 font-medium cursor-pointer">
|
|
Reset Password
|
|
</button>
|
|
</div>
|
|
</form>
|
|
|
|
<!-- Login Link -->
|
|
<div class="mt-8 text-center">
|
|
<p class="text-gray-600 dark:text-gray-400">
|
|
<a href="{{ route('login') }}" class="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 font-medium">
|
|
Kembali ke halaman login
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|