@extends('EcomAuthViews::layouts.authentication.layout')

@section('content')
@php
    $country_code = $verify['phone_country_code'];
    $phone_value = $verify['phone_original'];
    $email = $verify['email'];
    $config=config('ecom-auth');

@endphp
<form class="twa-form" action="{{route('account-update-profile')}}" method="POST"  id="otp-form" >



    @csrf
    <input type="hidden" name="user_id" value="{{$verify['id'] }}">
    @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "text", "label" => ___('authentication.first_name') ])
        <input name="first_name" required placeholder="{{ ___('authentication.first_name') }}"></input>
    @endcomponent

    @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "text", "label" => ___('authentication.last_name') ])
        <input name="last_name" required placeholder="{{ ___('authentication.last_name') }}"></input>
    @endcomponent
    @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "text", "label" => ___('authentication.email') ])
        <input name="email" required value="{{$email}}" placeholder="{{ ___('authentication.email') }}"></input>
    @endcomponent
    @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "text", "label" => ___('authentication.phone_number') ])
        <input class="phone-field" required
               data-custom-container="" data-allow-dropdown="true"
               data-autohide-dialcode="true" data-format="true" data-national-mode="true" placeholder=" "
               name="phone" data-initial-country="{{$country_code}}"

               @if(isset($phone_value) && $phone_value != '') value="{{$phone_value}}" @else  value="" @endif
        />
        <input type="hidden" name="phone_country_code" class="phone_country_code" value="{{$country_code}}" />
    @endcomponent
    @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "text", "label" => ___('authentication.password') ])
        <input type="password" name="password" required placeholder="{{ ___('authentication.password') }}"></input>
    @endcomponent
    @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "text", "label" => ___('authentication.confirm_password') ])
        <input type="password"  name="confirm_password" required placeholder="{{ ___('authentication.confirm_password') }}"></input>
    @endcomponent
    @component('EcomGeneralViews::components.form.input', [ "parentClass" => "", "size" => "full", "type" => "submit", "label" => "" ])
        <input type="submit" value="{{ ___('authentication.continue') }}" />
    @endcomponent
</form>

@endsection

