51 lines
2.5 KiB
PHP
51 lines
2.5 KiB
PHP
@extends('layouts.app')
|
|
@section('title', 'Reset Password')
|
|
@section('content')
|
|
<div class="max-w-md mx-auto px-4">
|
|
<div class="bg-white rounded-2xl border border-gray-100 shadow-sm p-6">
|
|
<h1 class="text-2xl font-bold text-gray-900">Reset Password</h1>
|
|
<p class="text-sm text-gray-600 mt-1">Masukkan email dan password baru untuk akunmu.</p>
|
|
|
|
<form method="POST" action="{{ route('password.update') }}" class="mt-6 space-y-4">
|
|
@csrf
|
|
<input type="hidden" name="token" value="{{ $token }}">
|
|
|
|
<div>
|
|
<label for="email" class="block text-sm font-medium text-gray-700">Email</label>
|
|
<input id="email" name="email" type="email" value="{{ old('email', $email) }}" required class="mt-1 w-full rounded-lg border-gray-300 focus:border-[#edc039] focus:ring-[#edc039]">
|
|
@error('email')
|
|
<p class="text-sm text-red-600 mt-1">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label for="password" class="block text-sm font-medium text-gray-700">Password Baru</label>
|
|
<div class="password-field mt-1">
|
|
<input id="password" name="password" type="password" required class="w-full rounded-lg border-gray-300 focus:border-[#edc039] focus:ring-[#edc039]">
|
|
<button type="button" class="password-toggle" data-toggle-password="password" aria-label="Lihat password">
|
|
<i class="bi bi-eye"></i>
|
|
</button>
|
|
</div>
|
|
@error('password')
|
|
<p class="text-sm text-red-600 mt-1">{{ $message }}</p>
|
|
@enderror
|
|
</div>
|
|
|
|
<div>
|
|
<label for="password_confirmation" class="block text-sm font-medium text-gray-700">Konfirmasi Password Baru</label>
|
|
<div class="password-field mt-1">
|
|
<input id="password_confirmation" name="password_confirmation" type="password" required class="w-full rounded-lg border-gray-300 focus:border-[#edc039] focus:ring-[#edc039]">
|
|
<button type="button" class="password-toggle" data-toggle-password="password_confirmation" aria-label="Lihat password">
|
|
<i class="bi bi-eye"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<button type="submit" class="w-full btn-dark py-3 font-semibold hover:opacity-95">
|
|
Reset Password
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|