@extends('frontend::layouts.user')
@section('title')
    {{ __('Change Password') }}
@endsection
@section('content')
    <div class="td-dashboard-content-box-profile">
        <div class="td-dashboard-content-box-profile-title">
            <h3>{{ __('Change Password') }}</h3>
        </div>
        <form action="{{ route('user.new.password') }}" method="post">
            @csrf
            <div class="td-dashboard-content-box-profile-inputs common-form">
                <div class="row g-4">
                    <div class="col-lg-6">
                        <div class="form-floating common-form-item">
                            <input type="password" class="form-control" id="floatingInput" placeholder="Current Password"
                                name="current_password">
                            <label for="floatingInput">{{ __('Current Password') }}</label>
                        </div>
                        @error('current_password')
                            <span class="text-danger">{{ $message }}</span>
                        @enderror
                    </div>
                    <div class="col-lg-6">
                        <div class="form-floating common-form-item">
                            <input type="password" class="form-control" id="floatingInput2" placeholder="New Password"
                                name="new_password">
                            <label for="floatingInput2">{{ __('New Password') }}</label>
                        </div>
                        @error('new_password')
                            <span class="text-danger">{{ $message }}</span>
                        @enderror
                    </div>
                    <div class="col-lg-12">
                        <div class="form-floating common-form-item">
                            <input type="password" class="form-control" id="floatingInput3" placeholder="Confirm Password"
                                name="new_confirm_password">
                            <label for="floatingInput3">{{ __('Confirm Password') }}</label>
                        </div>
                        @error('new_confirm_password')
                            <span class="text-danger">{{ $message }}</span>
                        @enderror
                    </div>
                </div>
                <div class="td-dashboard-content-box-profile-inputs-btn">
                    <button class="td-btn">
                        <span class="td-btn-wrap">
                            <span class="td-btn-y-1">{{ __('Save Change') }}</span>
                            <span class="td-btn-y-2">{{ __('Save Change') }}</span>
                        </span>
                        <i></i>
                    </button>
                </div>
            </div>
        </form>
    </div>
@endsection
