@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
{{ !empty($user->member->birthday) ? \Carbon\Carbon::parse($user->member->birthday)->age : '' }}
{{ translate('yrs') }}
{{ !empty($user->physical_attributes->height) ? ', ' . $user->physical_attributes->height : '' }}
{{ !empty($user->member->marital_status->name) ? $user->member->marital_status->name : '-' }}
{{ $user->spiritual_backgrounds->religion->name ?? '' }}
{{ !empty($user->spiritual_backgrounds->caste->name) ? ', ' . $user->spiritual_backgrounds->caste->name : '-' }}
@php
$address_parts = [];
if (!empty($present_address->address)) {
$address_parts[] = strlen($present_address->address) > 20 ? substr($present_address->address, 0, 20) . '...' : $present_address->address;
}
if (!empty($present_address->city_id)) {
$address_parts[] = $present_address->city->name;
}
if (!empty($present_address->state_id)) {
$address_parts[] = $present_address->state->name;
}
if (!empty($present_address->country_id)) {
$address_parts[] = $present_address->country->name;
}
if (!empty($present_address->postal_code)) {
$address_parts[] = $present_address->postal_code;
}
@endphp
@if (!empty($present_address->country->name))
@endif
{{ implode(', ', $address_parts) }}
@if(!$profile_picture_show)
{{ $user->first_name . ' ' . $user->last_name }}
@if (Auth::user()->id != $user->id)
{{ translate('First Name') }}
{{ $user->first_name }}
{{ translate('Gender') }}
@if ($user->member->gender == 1)
{{ translate('Male') }}
@elseif($user->member->gender == 2)
{{ translate('Female') }}
@endif
Age
{{ \Carbon\Carbon::parse($user->member->birthday)->age ?? '' }}
{{ translate('Religion') }}
{{ $user->spiritual_backgrounds->religion->name ?? '' }}
Mother Tongue
@if(!empty($user->member->mothere_tongue) && $user->member->mothereTongue != null)
{{ $user->member->mothereTongue->name }}
@endif
{{ translate('No. of Children') }}
{{ $user->member->children }}
{{ 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 ?? '' }}
Marital Status
{{ $user->member->marital_status->name ?? '' }}
Street Address
{{ $present_address->address ?? '' }}
{{ translate('State') }}
{{ $present_address->state->name ??'' }}
{{ translate('Postal Code') }}
{{ $present_address->postal_code ?? '' }}
{{ translate('City') }}
{{ $present_address->city->name ?? '' }}
{{ translate('Country') }}
{{ $present_address->country->name ?? '' }}
Street Address
{{ $permanent_address->address ?? '' }}
{{ translate('State') }}
{{ $permanent_address->state->name ?? '' }}
{{ translate('Postal Code') }}
{{ $permanent_address->postal_code ?? '' }}
{{ translate('City') }}
{{ $permanent_address->city->name ?? '' }}
{{ translate('Country') }}
{{ $permanent_address->country->name ?? '' }}
Native Place
{{ $permanent_address->native_place ?? '' }}
@endif
@else
@php $educations = \App\Models\Education::where('user_id', $user->id)->get(); @endphp
@foreach ($educations as $key => $education)
{{ translate('Degree') }}
{{ translate('Institution') }}
{{-- {{ translate('Start') }}
{{ translate('End') }} --}}
{{ translate('Status') }}
@endforeach
{{ $education->degree }}
{{ $education->institution }}
{{-- {{ $education->start }}
{{ $education->end }} --}}
@if ($education->present == 1)
{{ translate('Running') }}
@else
{{ translate('Completed') }}
@endif
@php $careers = \App\Models\Career::where('user_id', $user->id)->get(); @endphp
@foreach ($careers as $key => $career)
Designation
{{ translate('company') }}
{{-- {{ translate('Start') }}
{{ translate('End') }} --}}
{{ translate('Status') }}
@endforeach
{{ $career->designation }}
{{ $career->company }}
{{-- {{ $career->start }}
{{ $career->end }} --}}
@if ($career->present == 1)
{{ translate('Active') }}
@else
{{ translate('Deactive') }}
@endif
{{-- {{ 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 ?? '' }}
Mother Tongue
@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
{{-- {{ 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 ?? '' }}
{{ translate('Affection') }}
{{ $user->attitude->affection ?? '' }}
{{ translate('Political Views') }}
{{ $user->attitude->political_views ?? '' }}
{{ translate('Humor') }}
{{ $user->attitude->humor ?? '' }}
{{ translate('Religious Service') }}
{{ $user->attitude->religious_service ?? '' }}
{{ 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 : '' }}
{{--
{{ translate('Diet') }}
{{ $user->lifestyles->diet ?? '' }}
--}}
{{ translate('Smoke') }}
{{ $user->lifestyles->smoke ?? '' }}
Eating Habits
{{ $user->lifestyles->eating_habits ?? '' }}
{{ translate('Drink') }}
{{ $user->lifestyles->drink ?? '' }}
{{ translate('Living With') }}
{{ $user->lifestyles->living_with ?? '' }}
{{--
--}}
{{ 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 ?? '' }}
{{ translate('Father') }}
{{ $user->families->father ?? '' }}
Grand Father
{{ $user->families->grand_father ?? '' }}
Father Occupation
{{ $user->families->father_occupation ?? '' }}
Father Mobile No.
{{ $user->families->father_mobile_no ?? '' }}
Samaj
{{ $user->families->samaj ?? '' }}
No. of Sibling
{{ $user->families->sibling ?? 0 }}
{{ translate('Mother') }}
{{ $user->families->mother ?? '' }}
Grand Mother
{{ $user->families->grand_mother ?? '' }}
Mother Occupation
{{ $user->families->mother_occupation ?? '' }}
Mother Mobile No.
{{ $user->families->mother_mobile_no ?? '' }}
Gotra
{{ $user->families->gotra ?? '' }}
Sibling Details
@endif
@foreach($user->families->siblings as $index => $sibling)
#
Name
Education
Occupation
Relation
@endforeach
{{ $index + 1 }}
{{ $sibling->name }}
{{ $sibling->education }}
{{ $sibling->occupation }}
{{ $sibling->relation }}
{{ 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 ?? '' }}
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
Preferred State
@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 ?? '' }}
{{ translate('Gallery') }}
@php
$gallery_image_show = true;
$gallery_image_privacy = get_setting('gallery_image_privacy');
@endphp
@if ($gallery_image_privacy == 'only_me')
@php $gallery_image_show = false;
$profile_picture_show = false;
$gallery_view_request = \App\Models\ViewGalleryImage::where('user_id', $user->id)->where('requested_by',$auth_user->id)->first();
if($gallery_view_request != null && $gallery_view_request->status == 1){
$gallery_image_show = true;
}
@endphp
@elseif($gallery_image_privacy == 'premium_members')
@if ($auth_user->membership == 1)
@php $gallery_image_show = false; @endphp
@endif
@endif