@extends('layouts.front-layout')
@section('title') Update Password
@endsection
@section('content')


    <div class="container mt-5">
        <div class="row  d-flex justify-content-center">
            <div class="col-lg-6 col-md-9 col-sm-10 col-10">

                <div class="card shadow">
                    <div class="card-body">
                        <h5 class="text-center text-muted">Update Password</h5>

                        <form method="POST" action="{{route('user.reset-update-password')}}">
                            @csrf
                            <input type="hidden" name="token" value="{{ $token }}">

                            <div class="col-lg-12 mb-3">
                                <lable> Email</lable>
                                <input type="email" name="email" class="form-control mt-2 mb-1"
                                       value="{{ $email ?? old('email') }}">
                                @error('email')
                                <span class="text-danger">{{$message}} </span>
                                @enderror
                            </div>


                            <div class="col-lg-12 mb-3">
                                <lable>Password</lable>
                                <input type="password" name="password" class="form-control mt-2 mb-1">
                                @error('password')
                                <span class="text-danger">{{$message}} </span>
                                @enderror
                            </div>

                            <div class="col-lg-12 mb-3">
                                <lable> Confirm Password</lable>
                                <input type="password" name="confirm_password" class="form-control mt-2 mb-1">
                                @error('confirm_password')
                                <span class="text-danger">{{$message}} </span>
                                @enderror
                            </div>

                            <div class='text-center'>
                                <button type="submit" class="btn btn-primary ">Update Password</button>

                                <a href="{{route('user.login')}}" class="btn btn-primary">Login</a>

                            </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
