@extends('web.layouts.container')

@section('content')

<div class="login section-padding">
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-6">

                <form method="POST" action="{{ route('password.update') }}" class="border-item">
                    @csrf

                    <div class="form-head text-center">
                        <h3>{{ __('Reset Password') }}</h3>
                    </div>

                    <input type="hidden" name="token" value="{{ $token }}">

                    <div class="form-group">
                        <label for="email" class="col-form-label text-md-right">{{ __('E-Mail Address') }}</label>

                        <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ $email ?? old('email') }}" required autocomplete="email" autofocus>

                        @error('email')
                            <span class="invalid-feedback" role="alert">
                                <strong>{{ $message }}</strong>
                            </span>
                        @enderror
                    </div>

                    <div class="form-group">
                        <label for="password" class="col-form-label text-md-right">{{ __('Password') }}</label>

                        <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="new-password">

                        @error('password')
                            <span class="invalid-feedback" role="alert">
                                <strong>{{ $message }}</strong>
                            </span>
                        @enderror
                    </div>

                    <div class="form-group">
                        <label for="password-confirm" class="col-form-label text-md-right">{{ __('Confirm Password') }}</label>
                        <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
                    </div>

                    <button class="butn mt-3"><span>{{ __('Reset Password') }}</span></button>
                </form>
            </div>
        </div>
    </div>
</div>
@endsection
