@extends('layouts.guest')

@section('title', 'New password')

@section('content')
    <h1>Set new password</h1>
    <form method="POST" action="{{ route('password.store') }}">
        @csrf
        <input type="hidden" name="token" value="{{ $request->route('token') }}">
        <div class="form-group">
            <label for="email">Email</label>
            <input id="email" class="form-control" type="email" name="email" value="{{ old('email', $request->email) }}" required>
            @error('email')<div class="error-text">{{ $message }}</div>@enderror
        </div>
        <div class="form-group">
            <label for="password">Password</label>
            <input id="password" class="form-control" type="password" name="password" required autocomplete="new-password">
            @error('password')<div class="error-text">{{ $message }}</div>@enderror
        </div>
        <div class="form-group">
            <label for="password_confirmation">Confirm</label>
            <input id="password_confirmation" class="form-control" type="password" name="password_confirmation" required autocomplete="new-password">
        </div>
        <button type="submit" class="btn btn-primary">Reset password</button>
    </form>
@endsection
