@if($partName == 'basics')
{{ Form::label('url_alias', __('messages.vcard.url_alias').':', ['class' => 'form-label required']) }}
{{ Form::text('url_alias', isset($vcard) ? $vcard->url_alias : null, ['class' => 'form-control ms-1', 'placeholder' => __('messages.form.my_vcard_url'), 'onkeypress' => 'return (event.charCode > 64 && event.charCode < 91 ) || (event.charCode >= 47 && event.charCode <= 57 ) || (event.charCode > 96 && event.charCode < 123) || (event.charCode == 45)']) }}
{{ Form::label('name', __('messages.vcard.vcard_name').':', ['class' => 'form-label required']) }} {{ Form::text('name', isset($vcard) ? $vcard->name : null, ['class' => 'form-control', 'placeholder' => __('messages.form.vcard_name'),'required']) }}
{{ Form::label('occupation', __('messages.vcard.occupation').':', ['class' => 'form-label']) }} {{ Form::text('occupation', isset($vcard) ? $vcard->occupation : null, ['class' => 'form-control', 'placeholder' => __('messages.form.occupation')]) }}
{{ Form::label('description', __('messages.vcard.description').':', ['class' => 'form-label']) }}
{{ Form::hidden('description', isset($vcard) ? $vcard->description : null, ['id' => 'vcardDescriptionData']) }}
@if(isset($vcard))

{{ __('messages.vcard.vcard_details') }}

{{ Form::label('first_name',__('messages.vcard.first_name').(':'), ['class' => 'form-label required']) }} {{ Form::text('first_name', isset($vcard) ? $vcard->first_name : null, ['class' => 'form-control', 'placeholder' => __('messages.form.f_name'),'required']) }}
{{ Form::label('last_name',__('messages.vcard.last_name').(':'), ['class' => 'form-label required']) }} {{ Form::text('last_name', isset($vcard) ? $vcard->last_name : null, ['class' => 'form-control', 'placeholder' => __('messages.form.l_name'),'required']) }}
{{ Form::label('email',__('messages.user.email').(':'), ['class' => 'form-label']) }} {{ Form::text('email', isset($vcard) ? $vcard->email : null, ['class' => 'form-control', 'placeholder' => __('messages.form.email')]) }}
{{ Form::label('phone', __('messages.user.phone').':',['class' => 'form-label']) }} {{ Form::text('phone', isset($vcard) ? (isset($vcard->region_code) ? '+'.$vcard->region_code.''.$vcard->phone : $vcard->phone) : null, ['class' => 'form-control', 'placeholder' => __('messages.form.phone'), 'id' => 'phoneNumber', 'onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")']) }} {{ Form::hidden('region_code',isset($vcard) ? $vcard->region_code : null,['id'=>'prefix_code']) }}
{{__('messages.placeholder.valid_number')}} Invalid Number
{{ Form::label('alternative_email',__('messages.vcard.alternate_email').(':'), ['class' => 'form-label']) }} {{ Form::text('alternative_email', isset($vcard) ? $vcard->alternative_email : null, ['class' => 'form-control', 'placeholder' => __('messages.vcard.alternate_email')]) }}
{{ Form::label('alternative_phone', __('messages.vcard.alternative_phone').':',['class' => 'form-label']) }} {{ Form::text('alternative_phone', isset($vcard) ? (isset($vcard->alternative_region_code) ? '+'.$vcard->alternative_region_code.''.$vcard->alternative_phone : $vcard->alternative_phone) : null, ['class' => 'form-control', 'placeholder' => __('messages.vcard.alternative_phone') , 'id' => 'alternativePhone', 'onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")']) }} {{ Form::hidden('alternative_region_code',isset($vcard) ? $vcard->alternative_region_code : null,['id'=>'alternative_prefix_code']) }}
{{__('messages.placeholder.valid_number')}} Invalid Number
{{ Form::label('location',__('messages.user.location').(':'), ['class' => 'form-label']) }} {{ Form::textarea('location', isset($vcard) ? $vcard->location : null, ['class' => 'form-control', 'placeholder' => __('messages.form.location'),'rows'=>'1']) }}
{{ Form::label('location_url',__('messages.setting.location_url').(':'), ['class' => 'form-label']) }} {{ Form::text('location_url', isset($vcard) ? $vcard->location_url : null, ['class' => 'form-control', 'placeholder' => __('messages.form.location_url')]) }}
{{ Form::label('dob', __('messages.vcard.date_of_birth').':', ['class' => 'form-label']) }} {{ Form::text('dob', isset($vcard) ? $vcard->dob : null, ['class' => 'form-control bg-white', 'placeholder' => __('messages.form.DOB')]) }}
{{ Form::label('company', __('messages.vcard.company').':', ['class' => 'form-label']) }} {{ Form::text('company', isset($vcard) ? $vcard->company : null, ['class' => 'form-control', 'placeholder' => __('messages.form.company')]) }}
@if(checkFeature('advanced')) @if(checkFeature('advanced')->hide_branding)
{{ Form::label('made_by', __('messages.made_by').':', ['class' => 'form-label']) }} {{ Form::text('made_by', isset($vcard) ? $vcard->made_by : null, ['class' => 'form-control', 'placeholder' => __('messages.made_by') ]) }}
{{ Form::label('made_by_url', __('messages.made_by_url').':', ['class' => 'form-label']) }} {{ Form::text('made_by_url', isset($vcard) ? $vcard->made_by_url : null, ['class' => 'form-control', 'placeholder' => __('messages.made_by_url')]) }}
@endif @endif
{{ Form::label('job_title', __('messages.vcard.job_title').':', ['class' => 'form-label']) }} {{ Form::text('job_title', isset($vcard) ? $vcard->job_title : null, ['class' => 'form-control', 'placeholder' => __('messages.form.job')]) }}
{{ Form::label('default_language', __('messages.setting.default_language').':', ['class' => 'form-label']) }}
{{ Form::select('default_language', getAllLanguage(), isset($vcard) ? $vcard->default_language : null, ['class' => 'form-control', 'data-control'=>'select2']) }}
{{ Form::label('language_enable', __('messages.vcard.language_enable').':', ['class' => 'form-label']) }}
{{ Form::checkbox('language_enable', 1, $vcard['language_enable'] ?? 0 , ['class' => 'form-check-input mt-0 ', 'id' => 'languageEnable']) }}
@endif
{{ Form::submit(__('messages.common.save'),['class' => 'btn btn-primary me-3', 'id'=>'vcardSaveBtn']) }} {{__('messages.common.discard')}}
@endif @if($partName == 'templates')
@foreach($templates as $id => $url)
Template
@endforeach
status) ? 'checked' : '' }}>
{{__('messages.common.discard')}}
@endif @if($partName === 'business-hours')
@foreach(\App\Models\BusinessHour::DAY_OF_WEEK as $key => $day)
{{ Form::select('startTime['.$key.']', getSchedulesTimingSlot(), isset($hours[$key]) ? $hours[$key]['start_time'] : null ,['class' => 'form-control', 'data-control'=>'select2']) }}
To
{{ Form::select('endTime['.$key.']', getSchedulesTimingSlot(), isset($hours[$key]) ? $hours[$key]['end_time'] : null,['class' => 'form-control', 'data-control'=>'select2']) }}
@endforeach
{{__('messages.common.discard')}}
@endif @if($partName == 'appointments')
@foreach(App\Models\BusinessHour::WEEKDAY_NAME as $day => $shortWeekDay) @endforeach
@include('vcards.appointment.slot',['day' => $day])
@if(isset($appointmentDetail->is_paid)) @else @endif
{{ Form::label('price',__('messages.subscription.amount').':', ['class' => 'form-label required']) }} @if(isset($appointmentDetail)) {{ Form::number('price',$appointmentDetail->price, ['class' => 'form-control', ($appointmentDetail->is_paid==1)?'required':'', 'id' => 'userPaymentAmount' , 'placeholder' => __('messages.subscription.amount'), 'min' => '0']) }} @else {{ Form::number('price', null, ['class' => 'form-control', 'id' => 'userPaymentAmount' , 'placeholder' => __('Amount') , 'onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")', 'min' => '0']) }} @endif
{{__('messages.common.discard')}}
@endif @if($partName == 'social-links')
{!! Form::text('website', isset($socialLink) ? $socialLink->website : null, ['class' => 'form-control', 'placeholder' => __('messages.form.website')]) !!}
{!! Form::text('twitter', isset($socialLink) ? $socialLink->twitter : null, ['class' => 'form-control', 'placeholder' => __('messages.form.twitter')]) !!}
{!! Form::text('facebook', isset($socialLink) ? $socialLink->facebook : null, ['class' => 'form-control', 'placeholder' => __('messages.form.facebook')]) !!}
{!! Form::text('instagram', isset($socialLink) ? $socialLink->instagram : null, ['class' => 'form-control', 'placeholder' => __('messages.form.instagram')]) !!}
{!! Form::text('reddit', isset($socialLink) ? $socialLink->reddit : null, ['class' => 'form-control', 'placeholder' => __('messages.form.reddit')]) !!}
{!! Form::text('tumblr', isset($socialLink) ? $socialLink->tumblr : null, ['class' => 'form-control', 'placeholder' => __('messages.form.tumblr')]) !!}
{!! Form::text('youtube', isset($socialLink) ? $socialLink->youtube : null, ['class' => 'form-control', 'placeholder' => __('messages.form.youtube')]) !!}
{!! Form::text('linkedin', isset($socialLink->linkedin) ? $socialLink->linkedin : null, ['class' => 'form-control', 'placeholder' => __('messages.form.linkedin')]) !!}
{!! Form::text('whatsapp', isset($socialLink) ? $socialLink->whatsapp : null, ['class' => 'form-control', 'placeholder' => __('messages.form.whatsapp')]) !!}
{!! Form::text('pinterest', isset($socialLink) ? $socialLink->pinterest : null, ['class' => 'form-control', 'placeholder' => __('messages.form.pinterest')]) !!}
{!! Form::text('tiktok', isset($socialLink) ? $socialLink->tiktok : null, ['class' => 'form-control', 'placeholder' => __('messages.form.tiktok')]) !!}
{{__('messages.common.discard')}}
@endif @if($partName == 'advanced')
@if(checkFeature('advanced')->password)
@endif @if(checkFeature('advanced')->custom_css)
{{ Form::label('custom_css', __('messages.vcard.custom_css').':', ['class' => 'form-label']) }} {{ Form::textarea('custom_css', isset($vcard) ? $vcard->custom_css : null, ['class' => 'form-control', 'placeholder' => __('messages.form.css'), 'rows' => '5']) }}
@endif @if(checkFeature('advanced')->custom_js)
{{ Form::label('custom_js', __('messages.vcard.custom_js').':', ['class' => 'form-label']) }} {{ Form::textarea('custom_js', isset($vcard) ? $vcard->custom_js : null, ['class' => 'form-control', 'placeholder' => __('messages.form.js'), 'rows' => '5']) }}
@endif @if(checkFeature('advanced')->hide_branding)
branding) ? 'checked' : '' }}>
@endif
{{__('messages.common.discard')}}
@endif @if($partName == 'custom-fonts')
{{ Form::label('font_family',__('messages.font.font_family').':', ['class' => 'form-label']) }} {{ Form::select('font_family', \App\Models\Vcard::FONT_FAMILY, \App\Models\Vcard::FONT_FAMILY[$vcard->font_family] , ['class' => 'form-select', 'data-control' => 'select2']) }}
{!! Form::label('font_size', __('messages.font.font_size').':', ['class' => 'form-label']) !!} {!! Form::number('font_size', $vcard->font_size , ['class' => 'form-control', 'min'=>'14', 'max' => '40', 'placeholder' => __('messages.font.font_size_in_px')]) !!}
{{__('messages.common.discard')}}
@endif @if($partName == 'seo')
{{ Form::label('Site title', __('messages.vcard.site_title').':', ['class' => 'form-label']) }} {{ Form::text('site_title', isset($vcard) ? $vcard->site_title : null, ['class' => 'form-control', 'placeholder' => __('messages.form.site_title')]) }}
{{ Form::label('Home title', __('messages.vcard.home_title').':', ['class' => 'form-label']) }} {{ Form::text('home_title', isset($vcard) ? $vcard->home_title : null, ['class' => 'form-control', 'placeholder' => __('messages.form.home_title')]) }}
{{ Form::label('Meta keyword', __('messages.vcard.meta_keyword').':', ['class' => 'form-label']) }} {{ Form::text('meta_keyword', isset($vcard) ? $vcard->meta_keyword : null, ['class' => 'form-control', 'placeholder' => __('messages.form.meta_keyword')]) }}
{{ Form::label('Meta Description', __('messages.vcard.meta_description').':', ['class' => 'form-label']) }} {{ Form::text('meta_description', isset($vcard) ? $vcard->meta_description : null, ['class' => 'form-control', 'placeholder' => __('messages.form.meta_description')]) }}
{{ Form::label('Google Analytics', __('messages.vcard.google_analytics').':', ['class' => 'form-label']) }} {{ Form::textarea('google_analytics', isset($vcard) ? $vcard->google_analytics : null, ['class' => 'form-control', 'placeholder' => __('messages.form.google_analytics')]) }}
{{__('messages.common.discard')}}
@endif @if($partName == 'privacy-policy')
{{ Form::hidden('id', isset($privacyPolicy) ? $privacyPolicy->id : null, ['id' => 'privacyPolicyId']) }} {{ Form::label('privacy_policy', __('messages.vcard.privacy_policy').':', ['class' => 'form-label required']) }}
{{ Form::hidden('privacy_policy', isset($privacyPolicy) ? $privacyPolicy->privacy_policy : null, ['id' => 'privacyData']) }}
{{__('messages.common.discard')}}
@endif @if($partName == 'term-condition')
{{ Form::hidden('id', isset($termCondition) ? $termCondition->id : null, ['id' => 'termConditionId']) }} {{ Form::label('term_condition', __('messages.vcard.term_condition').':', ['class' => 'form-label required']) }}
{{ Form::hidden('term_condition', isset($termCondition) ? $termCondition->term_condition : null, ['id' => 'conditionData']) }}
{{__('messages.common.discard')}}
@endif