@extends('frontend.layouts.app') @section('content')

{{ $user->first_name . ' ' . $user->last_name }} @php $present_address = \App\Models\Address::where('user_id', $user->id) ->where('type', 'present') ->first(); @endphp @php $profile_match = \App\Models\ProfileMatch::where('user_id', Auth::user()->id) ->where('match_id', $user->id) ->first(); if (!empty($profile_match) && Auth::user()->member->auto_profile_match == 1) { echo '(' . translate('Matched') . ' - ' . $profile_match->match_percentage . '%)'; } @endphp

{{ translate('Member ID: ') }} {{ $user->code }}

@if (!empty($present_address->country->name)) @endif
{{ !empty($user->member->birthday) ? \Carbon\Carbon::parse($user->member->birthday)->age : '' }} {{ translate('yrs') }} {{ !empty($user->physical_attributes->height) ? ', ' . $user->physical_attributes->height : '' }}
{{ $user->spiritual_backgrounds->religion->name ?? '' }} {{ !empty($user->spiritual_backgrounds->caste->name) ? ', ' . $user->spiritual_backgrounds->caste->name : '' }} {{ translate('Lives in') }} {{ $present_address->country->name ?? '' }}
@php $interest_class = 'text-white'; $do_expressed_interest = \App\Models\ExpressInterest::where('user_id', $user->id) ->where('interested_by', Auth::user()->id) ->first(); $received_expressed_interest = \App\Models\ExpressInterest::where( 'user_id', Auth::user()->id, ) ->where('interested_by', $user->id) ->first(); if (empty($do_expressed_interest) && empty($received_expressed_interest)) { $interest_onclick = 1; $interest_text = translate('Express Interest'); $interest_class = 'opacity-60 text-dark'; } elseif (!empty($received_expressed_interest)) { $interest_onclick = 'do_response'; $interest_text = $received_expressed_interest->status == 0 ? translate('Response to Interest') : translate('You Accepted Interest'); } else { $interest_onclick = 0; $interest_text = $do_expressed_interest->status == 0 ? translate('Interest Expressed') : translate('Interest Accepted'); } @endphp @if (Auth::user()->id != $user->id)
@if ( (empty($do_expressed_interest) && empty($received_expressed_interest)) || !empty($received_expressed_interest && $received_expressed_interest->status == 0))
{{ translate('Like this Profile ?') }}
@endif {{ $interest_text }}
@endif
@php $auth_user = Auth::user(); $profile_pic_privacy = get_setting('profile_picture_privacy'); $photo_view_request = \App\Models\ViewProfilePicture::where('user_id', $user->id) ->where('requested_by', $auth_user->id) ->first(); $avatar_image = $user->member->gender == 1 ? 'assets/img/avatar-place.png' : 'assets/img/female-avatar-place.png'; $profile_picture_show = show_profile_picture($user); @endphp @if (!$profile_picture_show)
@endif @if ( $user->photo != null && $user->photo_approved == 1 && $profile_pic_privacy == 'only_me' && ($photo_view_request == null || ($photo_view_request && $photo_view_request->status == 0))) @elseif( $user->photo != null && $user->photo_approved == 1 && $profile_pic_privacy == 'premium_members' && $auth_user->membership == 1) {{ translate('Update Your Package to See The Member Profile Picture.') }} @endif
{{ translate('Member ID: ') }} {{ $user->code }}

{{ $user->first_name . ' ' . $user->last_name }}

@if (Auth::user()->id != $user->id)
@php $shortlist = \App\Models\Shortlist::where('user_id', $user->id) ->where('shortlisted_by', Auth::user()->id) ->first(); if (empty($shortlist)) { $shortlist_onclick = 1; $shortlist_text = translate('Shortlist'); } else { $shortlist_onclick = 0; $shortlist_text = translate('Shortlisted'); } @endphp {{ $shortlist_text }}
@php $profile_reported = \App\Models\ReportedUser::where('user_id', $user->id) ->where('reported_by', Auth::user()->id) ->first(); if (empty($profile_reported)) { $report_onclick = 1; $report_text = translate('Report'); } else { $report_onclick = 0; $report_text = translate('Reported'); } @endphp {{ $report_text }}
@endif
@if (Auth::user()->member->auto_profile_match == 1) @endif
@if (!$profile_picture_show)
@endif @if ( $user->photo != null && $user->photo_approved == 1 && $profile_pic_privacy == 'only_me' && ($photo_view_request == null || ($photo_view_request && $photo_view_request->status == 0))) @elseif( $user->photo != null && $user->photo_approved == 1 && $profile_pic_privacy == 'premium_members' && $auth_user->membership == 1) {{ translate('Update Your Package to See The Member Profile Picture.') }} @endif
{{ translate('Member ID: ') }} {{ $user->code }}

{{ $user->first_name . ' ' . $user->last_name }}

@if (Auth::user()->id != $user->id)
@php $shortlist = \App\Models\Shortlist::where('user_id', $user->id) ->where('shortlisted_by', Auth::user()->id) ->first(); if (empty($shortlist)) { $shortlist_onclick = 1; $shortlist_text = translate('Shortlist'); } else { $shortlist_onclick = 0; $shortlist_text = translate('Shortlisted'); } @endphp {{ $shortlist_text }}
@php $profile_reported = \App\Models\ReportedUser::where('user_id', $user->id) ->where('reported_by', Auth::user()->id) ->first(); if (empty($profile_reported)) { $report_onclick = 1; $report_text = translate('Report'); } else { $report_onclick = 0; $report_text = translate('Reported'); } @endphp {{ $report_text }}
@endif
{{ translate('About ') }}{{ $user->first_name . ' ' . $user->last_name }} {{ translate('Member ID: ') }} {{ $user->code }} | {{ translate('On Behalf:') }} {{ $user->member->on_behalves->name ?? '' }}
{{ $user->member->introduction }}
{{ translate('Basic Information') }}
{{ translate('First Name') }} {{ $user->first_name }}
{{ translate('Gender') }} @if ($user->member->gender == 1) {{ translate('Male') }} @elseif($user->member->gender == 2) {{ translate('Female') }} @endif
{{ translate('Age') }} {{ \Carbon\Carbon::parse($user->member->birthday)->age ?? '' }}
{{ translate('Religion') }} {{ $user->spiritual_backgrounds->religion->name ?? '' }}
{{ translate('First Language') }} @if (!empty($user->member->mothere_tongue) && $user->member->mothereTongue != null) {{ $user->member->mothereTongue->name }} @endif
{{ translate('Annual Salary') }} {{ $user->member->annualSalaryRange != null ? single_price($user->member->annualSalaryRange->min_salary).' - '.single_price($user->member->annualSalaryRange->max_salary) : '' }}
{{ translate('Last Name') }} {{ $user->last_name }}
{{ translate('Height') }} {{ $user->physical_attributes->height ?? '' }}
{{ translate('Date of Birth') }} {{ date('d/m/Y', strtotime($user->member->birthday)) ?? '' }}
{{ translate('Caste') }} {{ $user->spiritual_backgrounds->caste->name ?? '' }}
{{ translate('Marital Status') }} {{ $user->member->marital_status->name ?? '' }}
{{ translate('No. of Children') }} {{ $user->member->children }}
@if (get_setting('member_present_address_section') == 'on')
{{ translate('Present Address') }}
{{ translate('Country') }} {{ $present_address->country->name ?? '' }}
{{ translate('State') }} {{ $present_address->state->name ?? '' }}
{{ translate('City') }} {{ $present_address->city->name ?? '' }}
{{ translate('Postal Code') }} {{ $present_address->postal_code ?? '' }}
@endif @php $view_contact = \App\Models\ViewContact::where('user_id', $user->id) ->where('viewed_by', Auth::user()->id) ->first(); @endphp
{{ translate('Contact Details') }}
@if (Auth::user()->id != $user->id) @if ($user->phone != null)
{{ translate('Contact Number') }}
@if (empty($view_contact))
+xx xxx xxx xxx
@else
{{ $user->phone }}
@endif
@endif @if ($user->email != null)
{{ translate('Email ID') }}
@if (empty($view_contact))
xxxxx@xxx.xx
@else
{{ $user->email }}
@endif
@endif @if (empty($view_contact)) {{ translate('View Contact Info') }}
@endif @else
{{ translate('Contact Number') }}
{{ $user->phone }}
{{ translate('Email ID') }}
{{ $user->email }}
@endif
@if (get_setting('member_education_section') == 'on')
{{ translate('Education') }}
@php $educations = \App\Models\Education::where('user_id', $user->id)->orderBy('is_highest_degree', 'desc')->get(); @endphp @foreach ($educations as $key => $education) @endforeach
{{ translate('Degree') }} {{ translate('Institution') }} {{ translate('Start') }} {{ translate('End') }} {{ translate('Status') }}
{{ $education->degree }} {{ $education->institution }} {{ $education->start }} {{ $education->end }} @if ($education->present == 1) {{ translate('Running') }} @else {{ translate('Completed') }} @endif
@endif @if (get_setting('member_career_section') == 'on')
{{ translate('Career') }}
@php $careers = \App\Models\Career::where('user_id', $user->id)->orderBy('present', 'desc')->get(); @endphp @foreach ($careers as $key => $career) @endforeach
{{ translate('designation') }} {{ translate('company') }} {{ translate('Start') }} {{ translate('End') }} {{ translate('Status') }}
{{ $career->designation }} {{ $career->company }} {{ $career->start }} {{ $career->end }} @if ($career->present == 1) {{ translate('Running') }} @endif
@endif @if (get_setting('member_physical_attributes_section') == 'on')
{{ translate('Physical Attributes') }}
{{ translate('Height') }} {{ $user->physical_attributes->height ?? '' }}
{{ translate('Eye Color') }} {{ $user->physical_attributes->eye_color ?? '' }}
{{ translate('Complexion') }} {{ $user->physical_attributes->complexion ?? '' }}
{{ translate('Body Type') }} {{ $user->physical_attributes->body_type ?? '' }}
{{ translate('Disability') }} {{ $user->physical_attributes->disability ?? '' }}
{{ translate('Weight') }} {{ $user->physical_attributes->weight ?? '' }}
{{ translate('Hair Color') }} {{ $user->physical_attributes->hair_color ?? '' }}
{{ translate('Blood Group') }} {{ $user->physical_attributes->blood_group ?? '' }}
{{ translate('Body Art') }} {{ $user->physical_attributes->body_art ?? '' }}
@endif @if (get_setting('member_language_section') == 'on')
{{ translate('Language') }}
{{ translate('Mother Tangue') }} @if (!empty($user->member->mothere_tongue) && $user->member->mothereTongue != null) {{ $user->member->mothereTongue->name }} @endif
{{ translate('Known Languages') }} @if (!empty($user->member->known_languages)) @foreach (json_decode($user->member->known_languages) as $key => $value) {{ optional(\App\Models\MemberLanguage::where('id', $value)->first())->name }}, @endforeach @endif
@endif @if (get_setting('member_hobbies_and_interests_section') == 'on')
{{ translate('Hobbies & Interest') }}
{{ translate('Hobbies') }} {{ $user->hobbies->hobbies ?? '' }}
{{ translate('Music') }} {{ $user->hobbies->music ?? '' }}
{{ translate('Movies') }} {{ $user->hobbies->movies ?? '' }}
{{ translate('Sports') }} {{ $user->hobbies->sports ?? '' }}
{{ translate('Cuisines') }} {{ $user->hobbies->cuisines ?? '' }}
{{ translate('Interests') }} {{ $user->hobbies->interests ?? '' }}
{{ translate('Books') }} {{ $user->hobbies->books ?? '' }}
{{ translate('TV Shows') }} {{ $user->hobbies->tv_shows ?? '' }}
{{ translate('Fitness Activities') }} {{ $user->hobbies->fitness_activities ?? '' }}
{{ translate('Dress Styles') }} {{ $user->hobbies->dress_styles ?? '' }}
@endif @if (get_setting('member_personal_attitude_and_behavior_section') == 'on')
{{ translate('Personal Attitude & Behavior') }}
{{ translate('Affection') }} {{ $user->attitude->affection ?? '' }}
{{ translate('Political Views') }} {{ $user->attitude->political_views ?? '' }}
{{ translate('Humor') }} {{ $user->attitude->humor ?? '' }}
{{ translate('Religious Service') }} {{ $user->attitude->religious_service ?? '' }}
@endif @if (get_setting('member_residency_information_section') == 'on')
{{ translate('Residency Information') }}
{{ translate('Birth Country') }} @if (!empty($user->recidency->birth_country_id)) {{ App\Models\Country::where('id', $user->recidency->birth_country_id)->first()->name }} @endif
{{ translate('Grow Up Country') }} @if (!empty($user->recidency->growup_country_id)) {{ App\Models\Country::where('id', $user->recidency->growup_country_id)->first()->name }} @endif
{{ translate('Residency Country') }} @if (!empty($user->recidency->recidency_country_id)) {{ App\Models\Country::where('id', $user->recidency->recidency_country_id)->first()->name }} @endif
{{ translate('Immigration Status') }} {{ !empty($user->recidency->immigration_status) ? $user->recidency->immigration_status : '' }}
@endif @if (get_setting('member_spiritual_and_social_background_section') == 'on')
{{ translate('Spiritual & Social Background') }}
{{ translate('Religion') }} {{ $user->spiritual_backgrounds->religion->name ?? '' }}
{{ translate('Sub Caste') }} {{ $user->spiritual_backgrounds->sub_caste->name ?? '' }}
{{ translate('Personal Value') }} {{ $user->spiritual_backgrounds->personal_value ?? '' }}
{{ translate('Community Value') }} {{ $user->spiritual_backgrounds->community_value ?? '' }}
{{ translate('Caste') }} {{ $user->spiritual_backgrounds->caste->name ?? '' }}
{{ translate('Ethnicity') }} {{ $user->spiritual_backgrounds->ethnicity ?? '' }}
{{ translate('Family Value') }} {{ $user->spiritual_backgrounds->family_value->name ?? '' }}
@endif @if (get_setting('member_life_style_section') == 'on')
{{ translate('Life Style') }}
{{ translate('Diet') }} {{ $user->lifestyles->diet ?? '' }}
{{ translate('Smoke') }} {{ $user->lifestyles->smoke ?? '' }}
{{ translate('Drink') }} {{ $user->lifestyles->drink ?? '' }}
{{ translate('Living With') }} {{ $user->lifestyles->living_with ?? '' }}
@endif @if (get_setting('member_astronomic_information_section') == 'on')
{{ translate('Astronomic Information') }}
{{ translate('Sun Sign') }} {{ $user->astrologies->sun_sign ?? '' }}
{{ translate('Time Of Birth') }} {{ $user->astrologies->time_of_birth ?? '' }}
{{ translate('Moon Sign') }} {{ $user->astrologies->moon_sign ?? '' }}
{{ translate('City Of Birth') }} {{ $user->astrologies->city_of_birth ?? '' }}
@endif @if (get_setting('member_permanent_address_section') == 'on')
{{ translate('Permanent Address') }}
@php $permanent_address = \App\Models\Address::where('user_id', $user->id) ->where('type', 'permanent') ->first(); @endphp
{{ translate('City') }} {{ $permanent_address->city->name ?? '' }}
{{ translate('Country') }} {{ $permanent_address->country->name ?? '' }}
{{ translate('State') }} {{ $permanent_address->state->name ?? '' }}
{{ translate('Postal Code') }} {{ $permanent_address->postal_code ?? '' }}
@endif @if (get_setting('member_family_information_section') == 'on')
{{ translate('Family Information') }}
{{ translate('Father') }} {{ $user->families->father ?? '' }}
{{ translate('Father Occupation') }} {{ $user->families->father_occupation ?? '' }}
{{ translate('Mother') }} {{ $user->families->mother ?? '' }}
{{ translate('Mother Occupation') }} {{ $user->families->mother_occupation ?? '' }}
{{ translate('No. of Brother') }} {{ $user->families->no_of_brothers ?? '' }}
{{ translate('No. of Sisters') }} {{ $user->families->no_of_sisters ?? '' }}
{{ translate('About Parents') }}

{{ $user->families->about_parents ?? translate('N/A ')}}

{{ translate('About Siblings') }}

{{ $user->families->about_siblings ?? translate('N/A') }}

{{ translate('About Relatives') }}

{{ $user->families->about_relatives ?? translate('N/A') }}

@endif {{-- Dynamic Profile Section --}} @if (get_setting('additional_profile_section') == 'on')
{{ get_setting('additional_profile_section_name') }}
@foreach($additional_attributes as $key=>$attribute)
{{ $attribute->title }}
{{ $attribute->additional_member_info()->where('user_id', $user->id)->first()->value ?? null}}
@endforeach
@endif
@if (get_setting('member_partner_expectation_section') == 'on')

{{ translate('Partner Expectation') }}

{{ translate('General') }} {{ $user->partner_expectations->general ?? '' }} {{ translate('Residence Country') }} @php $residence_country = $user->partner_expectations->residence_country_id ?? ''; if (!empty($residence_country)) { echo \App\Models\Country::where( 'id', $residence_country, )->first()->name; } @endphp
{{ translate('Height') }} {{ $user->partner_expectations->height ?? '' }} {{ translate('weight') }} {{ $user->partner_expectations->weight ?? '' }}
{{ translate('Marital Status') }} {{ $user->partner_expectations->marital_status->name ?? '' }} {{ translate('Children Acceptable') }} {{ !empty($user->partner_expectations->children_acceptable) ? attribute_text_format($user->partner_expectations->children_acceptable) : '' }}
{{ translate('Religion') }} {{ $user->partner_expectations->religion->name ?? '' }} {{ translate('Caste') }} {{ $user->partner_expectations->caste->name ?? '' }}
{{ translate('Sub Caste') }} {{ $user->partner_expectations->sub_caste->name ?? '' }} {{ translate('Language') }} {{ $user->partner_expectations->member_language->name ?? '' }}
{{ translate('Education') }} {{ $user->partner_expectations->education ?? '' }} {{ translate('Profession') }} {{ $user->partner_expectations->profession ?? '' }}
{{ translate('Smoking Acceptable') }} {{ !empty($user->partner_expectations->smoking_acceptable) ? attribute_text_format($user->partner_expectations->smoking_acceptable) : '' }} {{ translate('Drinking Acceptable') }} {{ !empty($user->partner_expectations->drinking_acceptable) ? attribute_text_format($user->partner_expectations->drinking_acceptable) : '' }}
{{ translate('Diet') }} {{ !empty($user->partner_expectations->diet) ? attribute_text_format($user->partner_expectations->diet) : '' }} {{ translate('Body Type') }} {{ $user->partner_expectations->body_type ?? '' }}
{{ translate('Personal Value') }} {{ $user->partner_expectations->personal_value ?? '' }} {{ translate('Manglik') }} {{ !empty($user->partner_expectations->manglik) ? attribute_text_format($user->partner_expectations->manglik) : '' }}
{{ translate('Preferred Country') }} @php $preferred_country = $user->partner_expectations->preferred_country_id ?? ''; if (!empty($preferred_country)) { echo \App\Models\Country::where( 'id', $preferred_country, )->first()->name; } @endphp {{ translate('preferred_state_id') }} @php $preferred_state = $user->partner_expectations->preferred_state_id ?? ''; if (!empty($preferred_state)) { echo \App\Models\State::where('id', $preferred_state)->first() ->name; } @endphp
{{ translate('Family Value') }} {{ $user->partner_expectations->family_value->name ?? '' }} {{ translate('complexion') }} {{ $user->partner_expectations->complexion ?? '' }}
@endif
@endsection @section('modal') @include('modals.package_update_alert_modal') @include('modals.confirm_modal') @endsection @section('script') @endsection