@extends('plugins/member::themes.dashboard.layouts.master')
@section('content')
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-6">
                <div class="card login-form">
                    <div class="card-body">
                        <h4 class="text-center">{{ trans('plugins/member::dashboard.reset-password-title') }}</h4>
                        <br>
                        <form
                            method="POST"
                            action="{{ route('public.member.password.update') }}"
                        >
                            @csrf
                            <input
                                type="hidden"
                                name="token"
                                value="{{ $token }}"
                            >
                            <div class="mb-3">
                                <input
                                    id="email"
                                    type="email"
                                    class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}"
                                    name="email"
                                    value="{{ $email or old('email') }}"
                                    required
                                    autofocus
                                    placeholder="{{ trans('plugins/member::dashboard.email') }}"
                                >
                                @if ($errors->has('email'))
                                    <span class="invalid-feedback">
                                        <strong>{{ $errors->first('email') }}</strong>
                                    </span>
                                @endif
                            </div>
                            <div class="mb-3">
                                <input
                                    id="password"
                                    type="password"
                                    class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}"
                                    name="password"
                                    required
                                    placeholder="{{ trans('plugins/member::dashboard.password') }}"
                                >
                                @if ($errors->has('password'))
                                    <span class="invalid-feedback">
                                        <strong>{{ $errors->first('password') }}</strong>
                                    </span>
                                @endif
                            </div>
                            <div class="mb-3">
                                <input
                                    id="password-confirm"
                                    type="password"
                                    class="form-control{{ $errors->has('password_confirmation') ? ' is-invalid' : '' }}"
                                    name="password_confirmation"
                                    required
                                    placeholder="{{ trans('plugins/member::dashboard.password-confirmation') }}"
                                >
                                @if ($errors->has('password_confirmation'))
                                    <span class="invalid-feedback">
                                        <strong>{{ $errors->first('password_confirmation') }}</strong>
                                    </span>
                                @endif
                            </div>
                            <div class="form-group mb-0">
                                <button
                                    type="submit"
                                    class="btn btn-blue btn-full fw6"
                                >
                                    {{ trans('plugins/member::dashboard.reset-password-cta') }}
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
