@extends('layouts.app') @section('title') {{ __('messages.user.profile_details') }} @endsection @section('content')
@include('layouts.errors') @include('flash::message')
@csrf @method('PUT')
{!! Form::text('first_name', $user->first_name, ['class'=> 'form-control', 'placeholder' => __('messages.form.first_name'), 'required', 'id' => 'editProfileFirstName']) !!}
{!! Form::text('last_name', $user->last_name, ['class'=> 'form-control', 'placeholder' => __('messages.form.last_name'), 'required', 'id' => 'editProfileLastName']) !!}
{!! Form::email('email', $user->email, ['class'=> 'form-control', 'placeholder' => __('messages.user.email'), 'required', 'id' => 'isEmailEditProfile']) !!}
{{ Form::tel('contact', isset($user)? (isset($user->region_code) ? '+'.$user->region_code.''.$user->contact : $user->contact) :null, ['class' => 'form-control', 'placeholder' => __('messages.form.contact'), 'onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")','id'=>'phoneNumber']) }} {{ Form::hidden('region_code',isset($user) ? $user->region_code : null,['id'=>'prefix_code']) }} {{__('messages.placeholder.valid_number')}} Invalid Number
@endsection