@extends('auth.app')

@section('content')
    <h3 class="mb-4">Reset Password</h3>
    <form method="POST" action="{{ route('password.update') }}">
        @csrf
        <div class="row">
            <input type="hidden" name="token" value="{{ $token }}">
            <div class="col-md-12 mb-3">
                <label for="email" class="mb-2">Email 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="col-md-12 mb-3">
                <label for="password" class="mb-2">{{ __('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="col-md-12 mb-3">
                <label for="password-confirm" class="mb-2">{{ __('Confirm Password') }}</label>
                <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
            </div>
            <div class="col-md-12 mb-0">
                <input type="submit" value="Reset Password" class="btn btn-sm btn-success">
            </div>
        </div>
    </form>
@endsection
