@extends('vendor.layouts.frontend')
@section('content')
    <form method="POST" action="{{ route('vendor.password.update') }}" class="account-form">
        @csrf
        <input type="hidden" name="email" value="{{ $email }}">
        <input type="hidden" name="token" value="{{ $token }}">
        <div class="account-form__body">
            <h4 class="text-center mb-4">{{ __($pageTitle) }}</h4>
            <div class="mb-4">
                <p>@lang('Your account is verified successfully. Now you can change your password. Please enter a strong password and don\'t share it with anyone.')</p>
            </div>
            <div class="row gy-3">
                <div class="form-group">
                    <label>@lang('Password')</label>
                    <div class="position-relation">
                        <input class="form-control form--control h-45 @if (gs('secure_password')) secure-password @endif" type="password" name="password" required>
                    </div>
                </div>
                <div class="form-group">
                    <label>@lang('Confirm Password')</label>
                    <input class="form-control form--control h-45" type="password" name="password_confirmation" required>
                </div>
            </div>
            <button type="submit" class="w-100 btn btn--base mt-4">@lang('Submit')</button>
        </div>
    </form>
@endsection

@if (gs('secure_password'))
    @push('script-lib')
        <script src="{{ asset('assets/global/js/secure_password.js') }}"></script>
    @endpush
@endif
