@php $dark = ($theme ?? 'light') === 'dark'; $labelClass = $dark ? 'ti-label' : 'mb-1.5 block text-xs font-semibold text-foreground'; $inputClass = $dark ? 'ti-input ti-input-pw' : 'h-11 w-full rounded-xl border border-input bg-white px-3.5 pr-11 text-[16px] outline-none transition focus:border-ring focus:ring-4 focus:ring-ring/20 sm:text-sm'; $admin = (bool) auth()->user()?->isAdmin(); @endphp
@foreach ([['current', 'password.current', 'current-password'], ['password', 'password.next', 'new-password'], ['confirmation', 'password.confirm', 'new-password']] as [$field, $label, $autocomplete])
@if ($dark)@endif
@endforeach

{{ __('password.hint', ['min' => \App\Support\PasswordPolicy::minLength($admin)]) }}

@if ($error) @elseif ($done)

{{ __('password.done') }}

@endif