@extends('back.layout.auth-layout')
@section('pageTitle', isset($pageTitle) ? $pageTitle : 'Page Title here')
@section('content')
    <div class="login-box bg-white box-shadow border-radius-10">
        <div class="login-title">
            <h2 class="text-center text-primary">Passwort zurücksetzen</h2>
        </div>
        <h6 class="mb-20">Geben Sie Ihr neues Passwort ein, bestätigen Sie es und senden Sie es ab.</h6>
        <form method="POST" action="{{ route('admin.reset_password_handler', ['token' => $token]) }}">
            <x-form-alerts></x-form-alerts>
            @csrf

            <div class="input-group custom mb-1">
                <input type="text" class="form-control form-control-lg" placeholder="Neues Passwort" name="new_password" />
                <div class="input-group-append custom">
                    <span class="input-group-text"><i class="dw dw-padlock1"></i></span>
                </div>
            </div>
            @error('new_password')
                <span class="text-danger ml-1">{{ $message }}</span>
            @enderror
            <div class="input-group custom mb-1 mt-2">
                <input type="text" class="form-control form-control-lg" placeholder="Neues Passwort bestätigen"
                    name="new_password_confirm" />
                <div class="input-group-append custom">
                    <span class="input-group-text"><i class="dw dw-padlock1"></i></span>
                </div>
            </div>
            @error('new_password_confirm')
                <span class="text-danger ml-1">{{ $message }}</span>
            @enderror
            <div class="row align-items-center">
                <div class="col-5">
                    <div class="input-group mb-0">
                        <input class="btn btn-primary btn-lg btn-block" type="submit" value="Absenden">
                    </div>
                </div>
            </div>
        </form>
    </div>
@endsection
