All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 52s
53 lines
3.3 KiB
PHP
53 lines
3.3 KiB
PHP
<section>
|
|
<header>
|
|
<h2 class="text-xl font-black text-slate-800 dark:text-white tracking-tight">
|
|
{{ __('Update Password') }}
|
|
</h2>
|
|
|
|
<p class="mt-1 text-sm font-bold text-slate-400 dark:text-slate-400 uppercase tracking-widest">
|
|
{{ __('Ensure your account is using a long, random password to stay secure.') }}
|
|
</p>
|
|
</header>
|
|
|
|
<form method="post" action="{{ route('password.update') }}" class="mt-8 space-y-6">
|
|
@csrf
|
|
@method('put')
|
|
|
|
<div>
|
|
<x-input-label for="update_password_current_password" :value="__('Current Password')" class="text-xs font-black text-slate-500 uppercase tracking-widest mb-2 ml-1" />
|
|
<input id="update_password_current_password" name="current_password" type="password" class="py-3 px-4 block w-full border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-900 rounded-2xl text-sm font-bold text-slate-700 dark:text-slate-200 focus:ring-4 focus:ring-cyan-500/10 focus:border-cyan-500 transition-all outline-none" autocomplete="current-password" />
|
|
<x-input-error :messages="$errors->updatePassword->get('current_password')" class="mt-2" />
|
|
</div>
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
<div>
|
|
<x-input-label for="update_password_password" :value="__('New Password')" class="text-xs font-black text-slate-500 uppercase tracking-widest mb-2 ml-1" />
|
|
<input id="update_password_password" name="password" type="password" class="py-3 px-4 block w-full border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-900 rounded-2xl text-sm font-bold text-slate-700 dark:text-slate-200 focus:ring-4 focus:ring-cyan-500/10 focus:border-cyan-500 transition-all outline-none" autocomplete="new-password" />
|
|
<x-input-error :messages="$errors->updatePassword->get('password')" class="mt-2" />
|
|
</div>
|
|
|
|
<div>
|
|
<x-input-label for="update_password_password_confirmation" :value="__('Confirm Password')" class="text-xs font-black text-slate-500 uppercase tracking-widest mb-2 ml-1" />
|
|
<input id="update_password_password_confirmation" name="password_confirmation" type="password" class="py-3 px-4 block w-full border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-900 rounded-2xl text-sm font-bold text-slate-700 dark:text-slate-200 focus:ring-4 focus:ring-cyan-500/10 focus:border-cyan-500 transition-all outline-none" autocomplete="new-password" />
|
|
<x-input-error :messages="$errors->updatePassword->get('password_confirmation')" class="mt-2" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex items-center gap-4 pt-4">
|
|
<button type="submit" class="btn-luxury-primary px-8">
|
|
<span>{{ __('Update') }}</span>
|
|
</button>
|
|
|
|
@if (session('status') === 'password-updated')
|
|
<p
|
|
x-data="{ show: true }"
|
|
x-show="show"
|
|
x-transition
|
|
x-init="setTimeout(() => show = false, 2000)"
|
|
class="text-xs font-black text-emerald-500 dark:text-emerald-400 uppercase tracking-widest"
|
|
>{{ __('Saved.') }}</p>
|
|
@endif
|
|
</div>
|
|
</form>
|
|
</section>
|