@php $current_user = Auth::user()->id; @endphp @if($current_user == $chat_thread->sender->id) @php $user_to_show = 'receiver'; @endphp @else @php $user_to_show = 'sender'; @endphp @endif @if ($chat_thread->$user_to_show->photo != null) @else @endif
{{ $chat_thread->$user_to_show->first_name.' '.$chat_thread->$user_to_show->last_name }} @if(Cache::has('user-is-online-' . $chat_thread->$user_to_show->id)) @else @endif
@if (count($chats) > 0)
@endif
@include('frontend.member.messages.messages_part',['chats' => $chats])
@if ($chat_thread->$user_to_show->photo != null) @else @endif

{{ $chat_thread->$user_to_show->first_name.' '.$chat_thread->$user_to_show->last_name }}

{{ translate('Age') }}: {{ \Carbon\Carbon::parse($chat_thread->$user_to_show->member->birthday)->age }}
{{ translate('Height') }} : @if(!empty( $chat_thread->$user_to_show->physical_attributes->height)) {{ $chat_thread->$user_to_show->physical_attributes->height }} @endif
@if(get_setting('member_spiritual_and_social_background_section') == 'on')
{{ translate('Religion') }} : @if(!empty($chat_thread->$user_to_show->spiritual_backgrounds->religion_id)) {{ $chat_thread->$user_to_show->spiritual_backgrounds->religion->name }} @endif
@endif @if(get_setting('member_present_address_section') == 'on')
{{ translate('Location') }} : @php $present_address = \App\Models\Address::where('type','present')->where('user_id', $chat_thread->$user_to_show->id)->first(); @endphp @if(!empty($present_address->country_id)) {{ $present_address->country->name }} @endif
@endif @if(get_setting('member_language_section') == 'on')
{{ translate('Mother Tongue') }} : @if($chat_thread->$user_to_show->member->mothere_tongue != null) {{ \App\Models\MemberLanguage::where('id',$chat_thread->$user_to_show->member->mothere_tongue)->first()->name }} @endif
@endif