@extends('frontend.layouts.UserMain') {{ translate('Humsafar - Partner Profile') }} @section('content')
@include('frontend.user.layouts.header')
@php if($user->userDetails){ if($user->userDetails->length_id != null){ $length=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->length_id)->first(); }else{ $length=null; } } else{ $length=null; } if($user->relation_status_id != null){ $relationStatus=App\Models\ProfileAttributeMeta::where('id', $user->relation_status_id)->first(); } else{ $relationStatus=null; } if($user->religion_id != null){ $religion=App\Models\ProfileAttributeMeta::where('id', $user->religion_id)->first(); } else{ $religion=null; } if($user->userDetails){ if($user->userDetails->eye_color_id != null){ $eye_color=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->eye_color_id)->first(); } else{ $eye_color=null; } } if($user){ if($user->cast != null){ $cast=App\Models\ProfileAttributeMeta::where('id', $user->cast)->first(); } else{ $cast=null; } } if($user){ if($user->sub_cast != null){ $sub_cast=App\Models\ProfileAttributeMeta::where('id', $user->sub_cast)->first(); } else{ $sub_cast=null; } } if($user->userDetails){ if($user->userDetails->body_type_id != null){ $body_type=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->body_type_id)->first(); } else{ $body_type=null; } } else{ $body_type=null; } if($user->userDetails){ if($user->userDetails->hair_color_id != null){ $hair_color=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->hair_color_id)->first(); } else{ $hair_color=null; } } else{ $hair_color=null; } if($user->userDetails){ if($user->userDetails->appearance_id != null){ $appearance=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->appearance_id)->first(); } else{ $appearance=null; } } else{ $appearance=null; } if($user->userDetails){ if($user->userDetails->clothing_style_id != null){ $clothing_style=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->clothing_style_id)->first(); } else{ $clothing_style=null; } } else{ $clothing_style=null; } if($user->userDetails){ if($user->userDetails->intelligence_id != null){ $intelligence=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->intelligence_id)->first(); } else{ $intelligence=null; } } else{ $intelligence=null; } if($user->userDetails){ if($user->userDetails->languages != null){ $language=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->languages)->first(); } else{ $language=null; } } else{ $language=null; } if($user->userDetails){ if($user->userDetails->sports != null){ $sports=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->sports)->first(); } else{ $sports=null; } } else{ $sports=null; } if($user->userDetails){ if($user->userDetails->music != null){ $music=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->music)->first(); } else{ $music=null; } } else{ $music=null; } if($user->userDetails){ if($user->userDetails->kitchen != null){ $kitchen=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->kitchen)->first(); } else{ $kitchen=null; } } else{ $kitchen=null; } if($user->userDetails){ if($user->userDetails->reading != null){ $reading=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->reading)->first(); } else{ $reading=null; } } else{ $reading=null; } if($user->userDetails){ if($user->userDetails->tv_shows != null){ $tv_shows=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->tv_shows)->first(); } else{ $tv_shows=null; } } else{ $tv_shows=null; } if($user->userDetails){ if($user->userDetails->diploma_id != null){ $diploma=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->diploma_id)->first(); } else{ $diploma=null; } } else{ $diploma=null; } if($user->userDetails){ if($user->userDetails->working_sector_id != null){ $working_sector=App\Models\ProfileAttributeMeta::where('id', $user->userDetails->working_sector_id)->first(); } else{ $working_sector=null; } } else{ $working_sector=null; } if($user->userDetails){ if($user->userDetails->known_languages != null){ $known_languages = $user->userDetails->known_languages ? App\Models\ProfileAttributeMeta::whereIn('id', explode(',', $user->userDetails->known_languages)) ->where('attribute_id', '19') ->pluck('name') ->implode(', ') : null; } else{ $known_languages=null; } } else{ $known_languages=null; } @endphp
@php $profileImageData = getProfileImage($user); $isLiked = $likedProfiles->contains('id', $user->id); @endphp

{{$user->name}}

{{--

Female, 18, United States, New York

--}}

{{$user->gender}}, {{$user->age}} {{ translate('Years Old') }} {{ $countryNames ?? '' }}

Profile Picture @if($profileImageData['is_blurred']) @endif
{{ translate('Send Message') }} @if ($isLiked) @else {{ translate('Send Wink') }} @endif @if($CheckBlock==null) {{ translate('Block User') }} @else {{ translate('Blocked User') }} @endif

{{ translate('Profile Details') }}

{{ translate('Relation Status') }}

{{$relationStatus->name ?? '' }}

{{ translate('Religion') }}

{{$religion->name ?? '' }}

{{ translate('Cast') }}

{{$cast->name ?? 'N/A' }}

{{ translate('Sub Cast') }}

{{$sub_cast->name ?? 'N/A' }}

{{ translate('Education & Career') }}

{{ translate('Diploma') }}

{{$diploma->name ?? 'N/A'}}

{{ translate('Working Sector') }}

{{$working_sector->name ?? 'N/A'}}

{{ translate('Known Languages') }}

{{$known_languages ?? 'N/A'}}

@php $words = explode(' ', $user->short_description); $chunks = array_chunk($words, 50); @endphp @foreach ($chunks as $chunk) {{ implode(' ', $chunk) }}
@endforeach

{{ translate('Personal Attitude & Behaviour') }}

@if($userDetails && $userDetails->personal_attitude) @foreach ($attitudeArray as $attitudeId) @php // Fetch the attitude name based on the ID $personalAttitude = App\Models\ProfileAttributeMeta::find($attitudeId); @endphp @if ($personalAttitude)
{{ $personalAttitude->name }}
@endif @endforeach @else
{{ translate('N/A') }}
@endif
{{--

{{ translate('Personal Attitude & Behaviour') }}

Attibute
Attibute
--}}

{{ translate('What do i look like') }}?

{{ translate('Length') }}

@if($length) {{$length->name}} @else N/A @endif

{{ translate('Eye Color') }}

@if(isset($eye_color)) {{ $eye_color->name}} @else N/A @endif

{{ translate('Body Type') }}

@if($body_type) {{ $body_type->name}} @else N/A @endif

{{ translate('Hair Color') }}

@if($hair_color) {{ $hair_color->name}} @else N/A @endif

{{ translate('Weight') }}

@if($user->userDetails) @if($user->userDetails->weight) {{$user->userDetails->weight}} @else N/A @endif @else N/A @endif

{{ translate('Appearance') }}

@if($user->userDetails) @if($user->userDetails->appearance_id) {{ $appearance->name}} @else N/A @endif @else N/A @endif

{{ translate('Clothing Styles') }}

@if($user->userDetails) @if($user->userDetails->clothing_style_id) {{ $clothing_style->name}} @else N/A @endif @else N/A @endif

{{ translate('Intelligence') }}

@if($user->userDetails) @if($user->userDetails->intelligence_id) {{ $intelligence->name}} @else N/A @endif @else N/A @endif

{{ translate('Languages') }}

@if($user->userDetails) @if($user->userDetails->language) {{ $language->name}} @else N/A @endif @else N/A @endif

{{ translate('Drink') }}

@if ($user->userDetails) @if($user->userDetails->drinking) {{ $user->userDetails->drinking }} @else N/A @endif @else N/A @endif

{{ translate('Going Out') }}

@if ($user->userDetails) @if($user->userDetails->going_out) {{ $user->userDetails->going_out }} @else N/A @endif @else N/A @endif

{{ translate('Smoke') }}

@if ($user->userDetails) @if($user->userDetails->smoke) {{ $user->userDetails->smoke }} @else N/A @endif @else N/A @endif

@endsection @push('scripts') @endpush