@extends('EcomAuthViews::layouts.authentication.layout' , ['title' => ___('authentication.reset_password')])

@section('content')
    @php


            @endphp
    <form class="twa-form disable-on-submit" style="gap:0" method="POST"  id="otp-form" >
        @csrf

{{--        @if($user->email)--}}
{{--            <div class="entered-email">--}}
{{--                @include('EcomAuthViews::icons.envelope')--}}
{{--                <span>{{$user->email }} </span>--}}
{{--            </div>--}}
{{--        @endif--}}

{{--        @if($user->phone)--}}
{{--            <div class="entered-email">--}}
{{--                @include('EcomAuthViews::icons.phone')--}}
{{--                <span>{{$user->phone }} </span>--}}
{{--            </div>--}}
{{--        @endif--}}

{{--        <div class="sep-15"></div>--}}



        @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "text", "label" => ___('authentication.password'). " *" ])
            <div class="password-group">
                <input name="new_password"  type="password" value="{{old('new_password')}}" required placeholder="{{___('authentication.password')}}"></input>
                <button type="button" onclick="togglePassword($(this))"> <i class="fa-solid fa-eye" ></i> </button>
            </div>
            <span class="invalid-field"> @error('new_password') {{$message}}  @enderror </span>
        @endcomponent

        @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "text", "label" => ___('authentication.confirm_password'). " *" ])
            <div class="password-group">
                <input name="confirm_password"  type="password" value="{{old('confirm_password')}}" required placeholder="{{___('authentication.confirm_password')}}"></input>
                <button type="button" onclick="togglePassword($(this))"> <i class="fa-solid fa-eye" ></i> </button>
            </div>
            <span class="invalid-field"> @error('confirm_password') {{$message}}  @enderror </span>
        @endcomponent


        @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "submit", "label" => "" ])
            <button class="submit" type="submit" > {{ ___('authentication.reset_password') }} </button>
        @endcomponent


        {{--        <div class="sep-30"></div>--}}
        {{--        <div class="seperator-line"> OR</div>--}}
        {{--        <div class="sep-30"></div>--}}
        {{--        <div class="other-auth-methods">--}}
        {{--            <div>--}}
        {{--                <span>Already have an account?</span> <a class="auth-link" href="{{route('account-auth')}}">Login</a>--}}
        {{--            </div>--}}
        {{--        </div>--}}

    </form>

@endsection

@section('scripts')



@endsection

